That’s not “a fix”, that’s called “a practical workaround” which is used in the real world all the time.
- 0 Posts
- 14 Comments
Kache@lemmy.zipto
Programming@programming.dev•Can kids under 10 be possibly taught coding, without even mentioning the word syntax to them ??🤔🤔🤔
2·1 month agoWhat aspects of coding?
Turing Tumble is a marble run puzzle game that’s Turing complete, i.e. in the abstract sense, it can compute anything a computer could. It implements bit flippers, logic gates, and memory using falling marbles and levers. Completely mechanical and very tactile.
For textual programming, check out Hedy, a language designed for the classroom. It stands out vs others like Scratch or Snap because Hedy is gradual. A presentation by its creator
If “natural immunity” is playing a sport and winning against an opponent (pathogens), then vaccination is practicing beforehand.
And this is not a game you want to lose.
Here: https://fsharpforfunandprofit.com/rop/
A very practical and tangible walkthrough
Yeah, that explanation is missing the critical point of generically applying external functions through
flat_map/bindI think this is a good explanation: https://fsharpforfunandprofit.com/rop/
Kache@lemmy.zipto
Programming@programming.dev•Code comments should apply to the state of the system at the point the comment “executes”
4·2 months agoIn the short term, I would:
isVibrating = waveformParameters != null // may have just started if (isVibrating) { waveformParameters.Shape = WaveformShape.Square; widget.UpdateWaveformParameters(waveformParameters); }In the longer term, unless there’s a good reason not to, I’d nudge the implementation towards having the code read more like:
widget.update(waveformParameters);
South Park made a good satire of exactly this, where Cartman immediately realized it meant he could continue being offensive and “safe space” away anything he didn’t want to acknowledge
Classier than listing every program individually?
Kache@lemmy.zipto
Programming@programming.dev•BeatTheHash - A Hash Guessing Game Inspired by xkcd
2·3 months agoI mean… Isn’t that?
It’s “~~beat~ [guess] the hash [with distributed gamified brute force]”
Kache@lemmy.zipto
Asklemmy@lemmy.ml•what questions do you have but don't feel you can ask trans people?
5·3 months agoRe: “wrongness” and “accepting yourself”, how much do you think it has to do with how society/others regard the identity you present? I.e. how much do you think the path you’ve taken is an internal development vs a response to society?
In order to describe what I’m thinking: Today, you’ve found a place/role within society where you’re more comfortable than the places/roles you’ve taken in the past. However, a completely different culture/society would have had different available “options”.
Sorry if I’m being way too abstract/hypothetical. Even as a “more conventional normal person”, I’ve long wondered how different I might be had I grown up in a completely different society.
Kache@lemmy.zipto
Asklemmy@lemmy.ml•in what proportions do you mix beer (pale lager) and apple juice?
31·4 months agoEither 1:0 or 0:1, depending on my mood
I’ve read that Brita elite filters do capture some PFAs. However, it is well known that Brita filters and the like aren’t as efficient and effective as more dedicated solutions.
That is to say, no, they’re not bullshit – they’re better than nothing, but they’re just a marginal improvement. From my limited research so far I think it’s correct to say that you’re paying Brita more for a convenient system than for efficient and high quality filtration.
Kache@lemmy.zipto
Technology@lemmy.ml•Why does Asia seem to have a monopoly on chip design and production?
6·4 months agoAnd there are inflection points where it’s going it be easier to cut out the middlemen.

Yeah, this should be common software engineering problem for a senior engineer
In the beginning, there is only one data model used both externally and internally, to keep things simple. Now that they’re diverging, it’s time to draw an abstraction boundary that translates between internal and external models.
I’m not super strong with Java, but subclassing to handle v1/v2/vX doesn’t sound like the right thing to do. I’d detach the old model from the API while otherwise keeping it unchanged, implement a new pathway to connect with the new API, then translate in/out of the old model before it passes into the existing system. This way, the surface area of change and of integration is isolated and decoupled from everything else.