• 1 Post
  • 174 Comments
Joined 1Y ago
cake
Cake day: Aug 10, 2023

help-circle
rss

Based, too bad it’s not as easy to find jobs to feed the family (me) with better languages usually simply by virtue of them being newer and having less adoption


Tell me about it, when the roles are reversed and nor the manager ex-dev nor the older dev care about good programming practices it’s a far west where the junior desperately tries to become the dictator of a ruleless country


That’s true, I don’t know how it could be described as a hard rule though



Yes, I feel like some kind of bell should ring in your brain when something needs to be commented, most often if you struggled to write out the solution or you had to do a lot of digging from various places to achieve the final resulting piece of code, it doesn’t make a lot of sense to pressure yourself into thinking you should comment everything, because some knowledge has to be assumed, nowadays you could even add that if someone completely extraneous to the codebase entered without any knowledge, they could feed the parts of code they need to understand into some LLM to get a feel for what they’re looking at, with further feedback from actual devs though, you never know what random bs they might write.
Good one on the variables to store results of expressions, I agree with that method, though I always forget to do that because I get so lost in the pride of writing that convoluted one-liner that I think, “oh yeah, this is perfectly beautiful and understandable 😇”, I have to check myself more on that.

complex portions in some of my projects that would appreciate similar simplification

So I’m not alone on that haha.

This is why […] better

Sorry, what’s the subject of that?


Making up an example on the spot is kinda difficult for me, but I’d look at it this way with a bold statement, you should hope that most code won’t need comments. Let’s exclude documentation blocks that are super ok to be redundant as they should give a nice, consistent, human readable definition of what x thing does (function, constant, enum, etc.) and maybe even how to use it if it’s non-intuitive or there are some quirks with it.
After that, you delve in the actual meat of the code, there are ways to make it more self explanatory like extracting blocks of stuff into functions, even when you don’t think it’ll be used again, to be used with care though, as not to make a million useless functions, better is to structure your code so that an API is put into place, enabling you to write code that naturally comes out high level enough to be understood just by reading, this thing is very difficult for me to pinpoint though, because we think of high level code as abstractions, something that turns the code you write from describing the what rather than the how, but really, it’s a matter of scope, a print statement is high level if the task is to print, but if the task is to render a terminal interface then the print becomes low level, opposite is also true, if you go down and your task is to put a character onto stdout, then the assembly code you’d write might be high level. What I mean to say is that, once you have defined the scope, then you can decide what level of knowledge to expect of the reader when looking at your code, from there, if some process feels fairly convoluted, but it doesn’t make sense to build an abstraction over it, then it is a good place to put a comment explaining why you did that, and, if it’s not really clear, even what that whole block does



Syntax error on line 1, column 53: expected object for predicate `get`


Non c’è scelta, se l’ultimo italiano dovesse lasciarci, allora anche questa informazione dovrà lasciare l’umanità


Rememeber, whenever you break one spaghetto you break one heart 💔


You may not understand, but we do.
Questo segreto rimarrà custodito gelosamente dalla stirpe italica. ◉‿◉



Here’s a short list I made some time ago: https://codeberg.org/quazar-omega/awesome-yt-dlp

For desktop I suggest Parabolic, now it’s on Windows too!
Don’t know about Mac OS though, if you find one, do send a PR, I’d be happy to add it to the list :)



As long as you don’t switch them around with the days, it’ll be fine




A shitload? I thought it was just:

  • GitLens
  • Git Graph
  • ???
  • Profit

Programmers when they’re outside the scope of the eclipse: uncanny pic

Programmers when they’re inside the scope of the eclipse: uncanny pic



That’s one area where LLMs can come in handy. If you describe something, they can usually come out with what you were thinking about in another, maybe more correct way, then you search what they gave you






Yes, that’s really nice! Even though I haven’t touched it in a long time, I remember messing around with it out as soon as it came out a few years ago. There’s also nest.land between the alternative repositories, I find their concept interesting




You mean npm duplicates even if the the two dependency versions are compatible?

you can only have one version of the same package on your system.

That couldn’t be, right? Otherwise, if you installed two packages that rely on different incompatible versions of another package, one of the two would break. Reading a bit they should check for “satisfiability”, I found some really interesting things on the topic looking around:



The standard library thing is a really valid point, but how do you avoid recursive dependencies? Do you just not allow library packages to depend on anything?

pip is saner

Is it? It is very bare bones in my experience, I could never bring myself to use it until they make it a more fully fledged tool, such as the cargo you mentioned, yes



This is hilarious, but now I’m wondering, what would a saner package manger look like?






Thanks for not leaving out the lucky 10 000 <3

spoiler (for another lucky 10 000)

Ten Thousand XKCD comic

source



Me and my friend when we have to SYN for a screenshot
cross-posted from: https://lemy.lol/post/3995572 > > ::: spoiler (I hope the video link works, otherwise) > > ![Genshin TCP](https://files.catbox.moe/y3m6zg.mp4) > ::: >
fedilink