Kache

joined 1 year ago
[–] [email protected] 53 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

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".

[–] [email protected] 6 points 3 weeks ago* (last edited 3 weeks ago)

One of the best tutorials on really "grokking" git concepts, and it's online and interactive: https://learngitbranching.js.org

For programming, start with buildings things for yourself. Be practical, start small, and iterate, regardless if you consider the previous iteration was a success or failure. I've heard good things about https://automatetheboringstuff.com/ (in Python) in this regard.

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

Can address it by writing code that doesn't depend much on indentation, which also makes code more linear and easier to follow.

[–] [email protected] 1 points 1 month ago

wanted to add something to the end of a for-loop, but had too little indentation

To address this, I prefer reducing length & depth of nested code, so the for/while is rarely ever not visible along with everything inside it. Others have success with editors that draw indentation lines.

opening up new/anonymous scopes

I occasionally use Python nested functions for this purpose

[–] [email protected] 10 points 1 month ago (1 children)

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).

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

All methods? Of course not. Just methods like these.

[–] [email protected] 19 points 1 month ago* (last edited 1 month ago) (9 children)

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.

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

I agree with the author overall, and I think it can be more straightforwardly stated. IMO it's the idea that wrong abstractions are even worse than other ills like duplication or god classes/modules. It's also reminiscent of "modules should be deep".

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

That's only because the former already implies much of the latter, so they don't need to repeat it

[–] [email protected] 6 points 3 months ago

In a sense, money represents all the future goods and services it can buy, and those goods and services ultimately resolve down to someone's time and effort. Money was conceived as a formalization of IOU's, after all.

So it's similar to asking whether there's a limit to how much time and effort from (i.e. influence over) others one would want.

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

If it takes 1+ hours of work to remove a feature flag branch in an area of code, I wouldn't trust the correctness of anything the AI writes and would be super skeptical about anything the humans had written.

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

The synchronization problem (flakiness and all the waits) is tricky to get right. Browsers are concurrent systems, and programming around one is specialized enough that many devs don't do it well, e.g. IMO if you're adding ad-hoc waits or nesting timeouts, you've already lost.

 

Thanks for the app.

I like how Connect is fairly good at embedding previews, e.g. https://lemmit.online/post/2476390

However, Connect is currently unable to embed Lemmy posts of Reddit galleries.

For example: https://lemmit.online/post/1045136
Points to: https://www.reddit.com/gallery/172hfko
(Old Reddit): https://old.reddit.com/r/whatisthisthing/comments/172hfko/what_are_these_swans_i_found_at_a_flea_market/

Also looking forward to open-sourcing & F-Droid release!

view more: next ›