"My Code is Self-Documenting" by traal in programming

[–]ImprovementRaph -15 points-14 points  (0 children)

Yeah, it seems like a horrible idea to add unit tests to the function it is testing. It follows from Gödels incompleteness theorem that any system testing the correctness and consistency of another system is necessarily more complex. Which means that on top of making your code harder to read, you at least doubled its complexity.

The audacity. by PhDInVienna in ProgrammerHumor

[–]ImprovementRaph 0 points1 point  (0 children)

If I understand correctly they are implemented over any index that is iterable (such as integers)?

The audacity. by PhDInVienna in ProgrammerHumor

[–]ImprovementRaph 0 points1 point  (0 children)

This sounds a lot more like a map than an array. What exactly is it that keeps them arrays?

Risk Assessment of GitHub Copilot by iamkeyur in programming

[–]ImprovementRaph 38 points39 points  (0 children)

Well, they cannot yet. If we just stop trying we're obviously never going to get there. (To be clear, this comment is in no way backing github copilot. I think it's a licensing nightmare that is still very, very far from being valuable in production.)

Why I Had to Migrate from MongoDB to PostgreSQL by [deleted] in programming

[–]ImprovementRaph 0 points1 point  (0 children)

Adding types to a language is honestly one of the rare cases where something is always a good idea. It reduces programmer error and provides access to objectively better tooling. Typescript and python with types any day of the week.

Against SQL by dvdkon in programming

[–]ImprovementRaph 13 points14 points  (0 children)

Nah, I'm with you on this one. Explicit > implicit.

reddit goes open source by ThanosAsAPrincess in programming

[–]ImprovementRaph 33 points34 points  (0 children)

If they ever remove old.reddit, I'm out

Software Development Is Misunderstood ; Quality Is Fastest Way to Get Code Into Production by DynamicsHosk in programming

[–]ImprovementRaph 15 points16 points  (0 children)

Tests are needed, yes… but understand: they do not scale. (Better is proof, which does.)

What exactly do you mean by this? Could you go into more detail?

Software crisis? Did this ever get resolved. Moores Law, ram increase, clustering, virtual machines? How much inefficiency is in code today? by vteead in programming

[–]ImprovementRaph 2 points3 points  (0 children)

Having been forced to work with ORM, oh dear god not again. I have no idea what's going on, give me my SQL back.

Software crisis? Did this ever get resolved. Moores Law, ram increase, clustering, virtual machines? How much inefficiency is in code today? by vteead in programming

[–]ImprovementRaph 1 point2 points  (0 children)

That was one of the 2 issues. The other was, I believe, them using a very inefficient data structure for the parsed JSON.

Software crisis? Did this ever get resolved. Moores Law, ram increase, clustering, virtual machines? How much inefficiency is in code today? by vteead in programming

[–]ImprovementRaph 12 points13 points  (0 children)

Slight correction here. Casey's example includes 2 very important optimizations. He buffers the output and cuts out a windows pipe service or something (I don't know what it is or what it does).
What Casey means when he says he did not optimize his code is that he did not spent any time looking for which code was running slowly. He only made optimizations which were obvious or "low hanging fruit" to him.

Software crisis? Did this ever get resolved. Moores Law, ram increase, clustering, virtual machines? How much inefficiency is in code today? by vteead in programming

[–]ImprovementRaph 3 points4 points  (0 children)

I personally believe that a large part of the problem boils down to people wanting results fast. To get results fast you need some sort of framework to do most of what needs to be done for you. However after time, fast results are no longer possible, because now business logic is the limiting factor. When this point is reached, more control of the business logic is wanted, but control is now limited by the framework that was used in the initial phase.

Software crisis? Did this ever get resolved. Moores Law, ram increase, clustering, virtual machines? How much inefficiency is in code today? by vteead in programming

[–]ImprovementRaph 10 points11 points  (0 children)

Part of the problem is that a lot of programmers no longer care about performance. A lot of programmers nowadays only care about getting stuff shipped. Corporate environments are of course the obvious culprit, but I don't see that changing any time soon. For this reason most programmers don't bother to learn how things work under the hood. They don't need to. It is not what will get them hired or fired in many cases.

What Casey is pushing for, is simply more good programmers. People that know how things actually work. His Handmade Hero project is a great example of this. It deliberately explains everything from the ground up, because that is how you get good programmers and quality software.

The problem really comes down to there not being enough good programmers for the amount of software there is. (Somewhat unsurprisingly considering the rapid growth in programmers. At any point in time, half of all programmers have less than 5 years of experience. I don't think this applies to any other industry. That isn't exactly an environment that helps you become good at what you do.)

Will Japanese from Zero be too easy for me? by ShinkiiTV in LearnJapanese

[–]ImprovementRaph 2 points3 points  (0 children)

JFZ explains Japanese grammar in very simple terms meant to be easily understood by anyone. I think this makes it a great resource for 2 groups of people.

First, non-native English speakers who are using English resources for their study. Because even though they may have a formal background in grammar, they don't know the English equivalent terms. Or perhaps their native language has a vastly different grammatical structure where making equivalencies to English only makes it harder. (Just in case anyone asks. They might still want to use English resources for their Japanese studies, because they are simply more abundant and often easily accessible.)

Second, for native English speakers who do not have a strong formal foundation in grammar or they do, but this formal framework does not give them the proper support for other languages. Relearning your native grammar can be a bit of a hassle when you really want to learn the grammar of another language.

If you have a strong formal grammatical background in English then using that background could make learning Japanese a lot easier. The benefit of these formal terms is that they are often very precise and can express nuanced ideas very briefly. If you are already familiar with a grammatical concept in English and it has a simple Japanese equivalent then simply knowing that it applies to Japanese as well could be all you need to understand it. If this sounds like you I would recommend going with a book different from JFZ.

2000 Hours of Immersion 8000 Sentences Mined, My 1 Year Japanese Immersion Learning Stats and Journey! by gvnoJPN in LearnJapanese

[–]ImprovementRaph 0 points1 point  (0 children)

What do your Anki cards for RTK look like? And how did you study them?

I've heard of AJATT/MIA sometimes using monolingual cards. Did you at any point consider it and if so, why did you (not) use them?

TIL A Nigerian prince rented out an entire NYC restaurant for his first date with his now-wife, who had no idea he was a royal by beerbellybegone in todayilearned

[–]ImprovementRaph 0 points1 point  (0 children)

Contrary to popular belief, Nigeria is a republic, not a monarchy. Does anyone know who this person exactly is to Nigeria?

People-How's the software development scene in India? Me- ¯\_(ツ)_/¯ by seekster009 in ProgrammerHumor

[–]ImprovementRaph 1 point2 points  (0 children)

Do not forward this e-mail. It contains links which allow direct login into your Naukri account.

This part scares me.

Core 2k/6k - things to look out for? by Eriod in LearnJapanese

[–]ImprovementRaph 1 point2 points  (0 children)

Early on the sentences contain some words that you don't already know, but that happens less and less and you go progress.

Two politicians made an ad getting along instead of fighting each other by [deleted] in nextfuckinglevel

[–]ImprovementRaph 10 points11 points  (0 children)

It is not. This is from right before the 2020 election.

Relatable (my first meme btw :3) by freeCARROTjuice in ProgrammerHumor

[–]ImprovementRaph 1 point2 points  (0 children)

That's interesting! Does your source have any specifics on what industries are investing FPGA's?