Onno (VK6FLAB)
Anything and everything Amateur Radio and beyond. Heavily into Open Source and SDR, working on a multi band monitor and transmitter.
#geek #nerd #hamradio VK6FLAB #podcaster #australia #ITProfessional #voiceover #opentowork
- 1 Post
- 6 Comments
Onno (VK6FLAB)@lemmy.radioto
Programming@programming.dev•Parameter Object: count the commas backwards and you have your answer
0·3 days agoHow is your code sample for an object any different from a function definition?
In both cases you need to read the documentation, consult the source, or have an IDE that does.
Onno (VK6FLAB)@lemmy.radioto
Programming@programming.dev•Parameter Object: count the commas backwards and you have your answer
0·3 days agoThat depends entirely on how the object is constructed. Plenty of implementations use object.new() and you’re expected to fill in the blanks.
Besides, even if you have a constructor that takes parameters, it’s essentially the same as calling a function. Get it wrong and stuff breaks.
Onno (VK6FLAB)@lemmy.radioto
Programming@programming.dev•Parameter Object: count the commas backwards and you have your answer
0·3 days agoWhich bit isn’t possible?
As far as data types goes, you can apply the same logic to function parameters.
Onno (VK6FLAB)@lemmy.radioto
Programming@programming.dev•Parameter Object: count the commas backwards and you have your answer
0·3 days agoIn my experience, naming the elements in an object requires exactly the same documentation as naming the elements in a function call and it makes things worse if you forget to assign a value to one of them, since the object constructor will likely assign an unknown default value.
Onno (VK6FLAB)@lemmy.radioto
Programming@programming.dev•Anecdotally, programmers dislike "reduce"
0·6 days agoWith explanations like this, who can blame them 😁
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce


This is not limited to CompSci graduates and gets worse the older you get.
It’s also not limited to CompSci.
https://www.theguardian.com/money/2026/sep/17/over-50s-reveal-trying-to-get-a-job-applications-interviews