Comment on
I'm going to the grocery store tomorrow. What food should I buy that has the lowest chance to be recalled for listeria contamination?
Whiskey
Comment on
I'm going to the grocery store tomorrow. What food should I buy that has the lowest chance to be recalled for listeria contamination?
Whiskey
Comment on
How would you teach digital literacy to 13-18 year old students?
I think your ideas are too non-practical/specialized/advanced/low-level for your stated goal of 'digital literacy". They read more like college intro/followup course material and are too esoteric to be readily absorbed, esp by generic teenagers, even if they've self-selected to be "lightly interested".
Comment on
theFutureOfCommunication
Reply in thread
In my experience, LLMs aren't really that good at summarizing
It's more like they can "rewrite more concisely" which is a bit different
Comment on
Republican presidential candidate Nikki Haley targeted in swatting incident
Reply in thread
But surely there's a practical middle between "shoot first, ask later" and "sit and wait an hour"
Comment on
What is OOP, really? Why so many different definitions?
You're getting a lot of conceptual definitions, but mechanically, it's just:
keeping state (data) and behavior (functions) that operate on that state, together
At minimum, that's it. All the other things (encapsulation, message passing, inheritance, etc) are for solidifying that concept further or for extending the paradigm with features.
For example, you can express OOP semantics without OOP syntax:
foo_dict.add(key, val) # OOP syntax
dict_add(foo_dict, key, val) # OOP semantics
Comment on
single binary executable and dlls
Reply in thread
That route already exists today as "the web", where the "latest" JavaScript source is downloaded and JIT-ed by browsers. That ecosystem is also not the greatest example of stable and secure software.
Comment on
How common is it to code review like this?
If you were reviewing a "non-trivial" PR from me, I'd recommend not squashing because I would've broken it up into readable atomic commits.
Comment on
TIFU by not using objects in my object-oriented programming coursework
Reply in thread
If you used good objects, you'll only have to make the change in one place
IMO that's generally a retroactive statement because in practice have to be lucky for that to be true. An abstraction along one dimension -- even a good one, will limit flexibility in some other dimension.
Occasionally, everything comes into alignment and an opportunity appears to reliably-ish predict the correct abstraction the future will need.
Most every other time, you're better off avoiding the possibility of the really costly bad abstraction by resisting the urge to abstract preemptively.
Comment on
Git Things
A title as uninformative as the single . commit messages he suggests writing.
Bare minimums of typo, refactor, whitespace, comments are barely any effort -- less than the thought it takes to name variables and functions.
I really can't agree with completely meaningless messages like minor and .
Comment on
California Senate Passed SB 799; The bill's (which give strikers the right to collect unemployment) fate lies in Newsom's hands.
Reply in thread
Unfair how? It's paid by employers, so kinda makes sense to me, i.e. employer caused the loss of livelihood, so they pay for the benefit to the recently unemployed.
Comment on
Do I need a new phone for 2FA? (Tad Long)
Reply in thread
Must be proprietary, bc TOTP shouldn't be blocked by age of the device
Comment on
It's probably time to stop recommending Clean Code @ Things Of Interest
Reply in thread
I really dislike code like that. Code like that tends to lie about what it says it does and have non-explicit interactions/dependencies.
The only thing I can really be certain from that is:
doAnything();
if(doAnything2()) {
doAnything3();
}
I.e. almost nothing at all because the abstractions aren't useful.
Comment on
US Facebook Users Can Claim Share Of $725 Million Lawsuit Settlement, But Only Until Friday
This claim site's privacy policy seems to reserve their right to use your submitted data for marketing and promotional purposes...
to improve our marketing and promotional efforts
We want to provide you information that is valuable to you. If at any time you wish to be taken off our mailing lists ...
Comment on
ISPs can charge extra for fast gaming under FCC’s Internet rules, critics say
speed up certain types of applications as long as application providers don't have to pay for special treatment
Maybe they mean by doing things like giving slight priority to real-time application traffic like VOIP over streaming over websites vs file transfers, like how home routers can?
Don't think that should be something to charge people more for, though. They're not even able to deliver on their own advertised speeds.
Comment on
Push Ifs Up And Fors Down
Seems more applicable to an imperative style, and IMO even still the advice is too dependent on special/actual case details to be generally applicable as a "rule of thumb".
This is just one specific example amongst many of how redundant logic could be simplified because sometimes the branch is an implementation detail and you want to push it down, and sometimes it's not and you want to push it up.
Comment on
Communities can't recycle or trash disposable e-cigarettes. So what happens to them?
Sounds like an externality that should be paid for as these things are manufactured
Comment on
I love programming but I hate the programming industry
Reply in thread
Good code is code that's easy to delete.
I'm not a game dev, but it's got a reputation for being more of a software engineering shit show than other software industries, which your story only reinforces.
Comment on
It's probably time to stop recommending Clean Code @ Things Of Interest
Reply in thread
All methods? Of course not. Just methods like these.
Comment on
1 hour in Java
Reply in thread
I find it's possible to operate Python as a statically typed language if you wanted, though it takes some setup with external tooling. It wasn't hard, but had to set up pyright, editor integration, configuration to type check strictly and along with tests, and CI.
I even find the type system to be far more powerful than how I remembered Java's to be (though I'm not familiar with the newest Java versions).
Comment on
College students are still struggling with basic math. Professors blame the pandemic
Reply in thread
Except it does, which is why so many people are so bad with money.
I could agree with criticisms of outdated teaching methodologies or uninteresting course material, but saying math is irrelevant is totally misguided.