[-] balder1993@programming.dev 4 points 1 year ago* (last edited 1 year ago)

Also AWK is made to be fast, right? I suppose doing something in CPython in a non efficient way might not be noticeable with a bit of text, but would show up with a large enough data stream.

[-] balder1993@programming.dev 4 points 1 year ago* (last edited 1 year ago)

This is a troll’s or a teenager’s line of thinking.

Kinda reminded me back in college I had a friend who I’d describe as a genius in computer science and programming. I was always so jealous how he was so knowledgeable about everything teachers talked about to the point of correcting them sometimes (and hurting the ego of some of them, which isn’t very smart).

He was like a C++ nuts to the point of having some of his code on the Boost library (which was impressive for a 20yo), but when Rust started getting popular back then, he really got into it and quickly became an “evangelist”. For some years, everything was about Rust, if you stopped to talk to him.

I met him year later and asked if he was still working with Rust, and he said after using it for enough different use-cases, he actually started to dislike it and pointed out a lot of problems and flaws that I wouldn’t possibly remember. I think he also said the community was very toxic and was taking the language to a direction he didn’t like. I suspect nowadays he is just another fella using Lua and C++ for his personal projects.

[-] balder1993@programming.dev 4 points 2 years ago

This is why technically software is a liability. The less code you need, the better, since every line of code is a potential vulnerability and something to maintain, update, etc.

[-] balder1993@programming.dev 4 points 2 years ago

Only chatGPT has these kinds of comments as if you’re seeing code for the first time. 😆

I’m not against adding comments where is needed: in the company I work for (a big bank) my team takes care of a few modules and we added comments on one class that is responsible to make some very custom UI component with lots of calculations and low level manipulations. It’s basically a team of seniors and no one was against that monster having comments to explain what it was doing in case we had to go back and change something.

For 99% of the code you just need to have good names though.

[-] balder1993@programming.dev 4 points 2 years ago* (last edited 2 years ago)

Also Windows has a button similar to “don’t update this week” or similar.

[-] balder1993@programming.dev 4 points 2 years ago* (last edited 2 years ago)

At the same time, I feel like nowadays there's less forums or places people can ask help with, although today ChatGPT can be a good help with newbie questions.

[-] balder1993@programming.dev 4 points 2 years ago* (last edited 2 years ago)

That’s what I do, except I straight up create the python venv in a folder, activate it and then do pip install yt-dlp. No messing up with my system.

[-] balder1993@programming.dev 4 points 2 years ago

If I was gonna make a suggestion, it would be to use some formatting tool such as black to make sure your code is styled in a standard way.

[-] balder1993@programming.dev 4 points 3 years ago

Just as an example, I worked as a contractor with the biggest bank in Latin America before and basically all their server code is Java (with new code in Kotlin nowadays).

[-] balder1993@programming.dev 4 points 3 years ago

I’d go as far as saying you should know what every line of code does or you’re risking the whole thing to have unexpected side effects. When you understand what the code is doing, you know what parts you should test.

[-] balder1993@programming.dev 4 points 3 years ago

I like how monorepo is at the bottom.

[-] balder1993@programming.dev 4 points 3 years ago* (last edited 3 years ago)

I don’t use it that much for programming in the project directly, but sometimes to ask for input about ideas I have and pros/cons and follow up questions.

But just this week I used ChatGPT to help me write some git hooks I didn’t know were possible.

view more: ‹ prev next ›

balder1993

0 post score
0 comment score
joined 3 years ago