Blackthorn

joined 1 year ago
[–] Blackthorn@programming.dev 1 points 4 months ago

The things he asks to do are the reasons why I find no joy anymore working in coding. Hammering my thumbs seems to be more interesting than doing most of these actions. I swear, I got so bored I couldn't finish the read. Specifically "if you find yourself commenting on every line of code" the right thing to do is to setup a meeting with te hiring department.

[–] Blackthorn@programming.dev 3 points 8 months ago

I'd say it suggests it's "legally" the wrong thing to do.

[–] Blackthorn@programming.dev 1 points 8 months ago

Code review can't fix incompence though. I lost count of how many times my boss told me "review that PR well because X is not very good". Also my point is that they are overrated, not that they are useless.

[–] Blackthorn@programming.dev 1 points 8 months ago (5 children)

Probably unpopular opinion, but peer reviews are overrated. If coders are good AND know the project, the only thing you can do in a PR is nitpicking. They are more useful for open source collaborators because you want to double-check their code fits with the current architecture. But people here are reacting as if peer reviews could actually spot bugs that tests can't catch. That happens rarely unless the contributor is junion/not good.

[–] Blackthorn@programming.dev 1 points 8 months ago

I would fire you for incompetence and sabotage. Problem solved.

[–] Blackthorn@programming.dev 5 points 8 months ago

Lol I feel so old reading these replies... I learnt copying BASIC games from magazines and typing them manually on the computer.

But jokes apart, when it comes to learning, I think the best thing is to tinker with weather language you choose and don't worry about making the "right choices" since the start. Forget about writing "pythonic" code and don't worry about being "idiomatic": just build something. Building good software is not just constructs, but also knowning which subsystem to improve and when. That's what makes experience.

When it comes to improving, you can dig deep into the language.

[–] Blackthorn@programming.dev 4 points 8 months ago

Yeah, this is also useful when learning a new programming language, even when you are an experienced coder, already.

[–] Blackthorn@programming.dev 3 points 9 months ago* (last edited 9 months ago) (1 children)

Sometimes I wonder if this pure search for being "idiomatic" is worth the effort. On paper yes, more idiomatic code is almost always a good thing, it feels more natural to create code in a way the language was designed to be used. But it practice, you don't get any points for being more idiomatic and your code isn't necessarily going to be safer either (smart pointers are often "good enough"). I'm fine using references to pass parameters to function and I love the idea to "force" the programmer to organize objects in a tree way (funny enough I was already doing that in C++), but I'll take a Rc rather than a lifetimed reference as a field in a structure any day. That shit becomes unreadable fast!

EDIT: but I love cargo clippy! It tells me what to change to get more idiomatic points. Who knows why an if/then/else is better than a match for two values, but clippy says so, and who am I to question the idiomatic gods?

[–] Blackthorn@programming.dev 1 points 9 months ago

Ofc I knew! Yeah, (neo)vim takes time to adjust. Personally I only use a bunch of commands, never bothered with the advanced stuff.

[–] Blackthorn@programming.dev 6 points 9 months ago (6 children)

Personally, I mostly use neovim, both at home and at work. My reasons are:

  1. I hate any kind of screen cluttering. The minimap comes straight from hell.
  2. it's very responsive. I don't even bother using language servers as they occasionally introduce micro delays that I hate.
  3. it helps me in organizing the code better. No minimap means I keep the file size manageable, not seeing the definition of the function straight away means I keep the static complexity of the code in check (tend to reduce the number of delegates). It doesn't help when I have to read cose from legacy codebase, but I don't care too much about that.
[–] Blackthorn@programming.dev 2 points 10 months ago (1 children)

I can't not upvote someone who brings Clipper to the table :)

[–] Blackthorn@programming.dev 6 points 10 months ago

"intuitive" is extremely subjective, and based on your past experiences. I've coded in C++ for years, and some Python, too and was able to grasp many Rust concepts very quickly, while for others I struggled (and still am). I'd say that if you are looking for "intuitive", Rust ain't it. It's a system language, so it requires planning, it's definitely not the ideal language to slap a prototype quickly together, expecially as a beginner.

 

I have been reading about this new language for a while. It's a C competitor, very slim language with very interesting choices, like supporting cross platform compilation out of the box, supports compiling C/C++ code (and can be used as a drop in replacement for C) to the point in can be used as replacement of (c)make and executables are very small.

But, like all languages, adoption is what makes the difference. And we don't know how it goes.

Is anyone actually using Zig right now? Any thoughts?

view more: next ›