▼
下葉二ちゃんねる

Links from /cc/27

[HOME] [Frames] [Archive] [About] [Rules] [News]


Posts: 1,4
from thread /cc/27

»
1 guest@cc 1969-12-31T17:00:00
Here's an example of what's wrong with software today.

* https://github.com/laneb/congruence_solver

Some guy made a program that takes an equation and tries x=1,x=2,x=3,.. up to some limit to check if it can solve it.

Like, the entire computation is literally a for loop.

That's fine but let's see what he did to acheive this goal...
»
4 guest@cc 1969-12-31T17:00:00
I mean here's what the program does

INPUT: x^2 + 2x + 1 = x^3 + 3x^5 mod 49
OUTPUT: 1, 8, 15, 22, 26, 29, 36, 43

but how many fucking lines code is there to do this? You could make this in a half page in any high level language yourself.
What's the point of all the bloat and frameworks and just general needless garbage all around the place.
I would rate this code very low. It's all written fine but there's so much there that shouldn't be. Perfect is when there is nothing left to take away. What this does can be acheived in 1/200th the amount of code. That will mean less space for bugs to creep in too.
[Return to thread]

▲ ♦ Contact
⇥ Show Menu
Stylesheet:
/all/ ・ /listed/ ・ /unlisted/ ・ /a/ ・ /ni/ ・ /d/ ・ /cc/ ・ /f/ ・ /v/ ・ /ho/