Kache

joined 2 years ago
[–] [email protected] 1 points 7 months ago

What did you go over?

[–] [email protected] 7 points 7 months ago* (last edited 7 months ago)

No so much that YAGNI falls short, but more like "When YAGNI means 'You Are Gonna Need It'"

[–] [email protected] 0 points 7 months ago* (last edited 7 months ago)

Bad abstraction is worse than no abstraction

If the code is going to poorly organized, I'd prefer it to just be one single gigantic standalone script than some wrong and misleading arrangement of objects or functions that adds more complexity than they solve

[–] [email protected] 13 points 7 months ago* (last edited 7 months ago)

That depends, people can be smart but malicious, non-coorperative, or selfish.

The prisoner's dilemma shows that there are systems where individually, the "smart" individual thing to do is globally non-optimal.

Even smartness and altruism alone isn't enough. Medical professionals are smart and out to help others, but any ER doc/nurse will tell you they have limited trust in their patients (rightly so in the real world).

Does "everyone is smart" also include both "altruism and cooperative trust in others"?

[–] [email protected] 1 points 7 months ago (1 children)

Can that barrel hold fluids? B/c then what about the ocean or even the atmosphere? (Though it would take a while)

[–] [email protected] 3 points 7 months ago* (last edited 7 months ago) (1 children)

Could've held one rod end in each hand, letting middle of rope ladder hang down for standing on, like stirrups

Alternate left/right and you can step in any direction into the air

[–] [email protected] 5 points 7 months ago* (last edited 7 months ago)

"never see addressed"? What do you think currently happens in (real, non-hypothetical) cities with good bike infrastructure?

https://www.youtube.com/watch?v=j2dHFC31VtQ&t=365

Oh look, emergency vehicles work even better on bike infrastructure than on car infrastructure

Bicylists and pedestrians can't hard block a firetruck the way car traffic can

[–] [email protected] 15 points 7 months ago (13 children)

Feel like some states should coalition together and organize their own agencies

[–] [email protected] 2 points 7 months ago

absolute beginner? Start at https://www.hedycode.com/

Which will ultimately lead into vanilla Python. This is the creator explaining why Hedy is uniquely designed for learning: https://www.youtube.com/watch?v=fmF7HpU_-9k

[–] [email protected] 3 points 7 months ago* (last edited 7 months ago) (1 children)

inheritance to avoid code duplication

What no, inheritance is not for code sharing

Sound bite aside, inheritance is a higher level concept. That it "shares code" is one of several effects.

The simple, plain, decoupled way to share code is the humble function call, i.e. static method in certain langs.

[–] [email protected] 23 points 7 months ago (3 children)

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.

[–] [email protected] 3 points 7 months ago* (last edited 7 months ago)

I've never seen these "express code/tests in natural language" ever work well. Your non-coders need lawyer-like skills to wield English very precisely, or it falls to coders that would be better off using code directly.

view more: ‹ prev next ›