AdNecrias

joined 3 months ago
[–] [email protected] 2 points 2 days ago (1 children)

Among all of them at least python is the choice generically people learn when they don't want to learn programming, just want to program stuff as a helper tool to manage data. For those, python is just fine and the learning material around is tailored to for that.

That's how you trick people into programming. You then see people making scripts that take days to run, but it's fine, they're only going to use it twice and are busy enough to be able to wait

[–] [email protected] 4 points 1 week ago

Wasn't that the genie's suggestion?

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

I'm like you. But didn't find it cool. I inherited some, so my count is two.

[–] [email protected] 5 points 2 weeks ago

3 months... Are you including weekends?

[–] [email protected] 32 points 3 weeks ago
[–] [email protected] 12 points 3 weeks ago (1 children)

I like tokyotosho.inf but I think they all track the same

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

The junk replies, that's something propped up by the users no? When we bump up posts that we like instead of relevant ones, those things get the visibility. I think.

As in, I don't see what would be done besides tons of moderation or short post restrictions. Something I don't find feasible

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

What would you have done differently, if you had the chance now?

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

I hope they get paid per line of code.

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

Reminds me of a job I had where c# summaries were mandatory and people used a documentation generator just like that.

/// Ages the Category. public int AgeCategory (...)

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

I'm with you but sometimes you don't have the chance in low level. Max you can do is create local variables just so the bits you're XORing are more obvious. And whenever you're working with something where that'd be wasteful and the compiler doesn't rid if it, you're better off with comments (which you need to maintain, ugh)

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

Good code is self documenting as in you don't need to describe what it is doing and it is clear to read. Whoever says that and isn't just repeating what they heard understands that whenever you are doing something not explicit in the code it should be on a comment.

Workarounds and explaining you need to use this structure instead of another for some reason are clear examples, but business hints are another useful comment. Or sectioning the process (though I prefer descriptive private functions or pragma regions for that).

It also addresses the hint that the code should be readable because you're not going to have comments to explain spaghetti. Just a hint, doesn't prevent it. Others also said it, comments are easier to get outdated as you don't have the compiler to assist. And outdated comments lead to confusion.

view more: next ›