Earlier quoted context omitted.
Code like this makes me think of the famous line from the film version of Hellraiser: "I have such sights to show you..." Contrast PostgreSQL or... uhh... virtually any other database. Oracle's mess is clearly a result of bad management, not a reflection of the intrinsic difficulty of the problem domain.
Nonsense. The problem domain you dismiss is hideously complicated. Oracle DB and PostgreSQL are entirely different classes of products. No airline runs its reservation system on PostreSQL. That's not a coincidence.
Ask HN: What's the largest amount of bad code you have ever seen work?
551–560 of 601 posts
Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#552Earlier quoted context omitted.
The real risk is for people who are too young to know what to ask
I'd hope they wouldn't even consider somebody for this sort of job who's too young to know what to ask.
Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#553Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#554Earlier quoted context omitted.
You've violated the terms of service of Oracle Database by insinuating the codebase quality is in any way not superior to any and all competitors. No benchmarks or comparisons may be performed on the Oracle Database Product under threat of grave bodily harm at the discretion of our very depraved CEO.
I doubt the competition (e.g. IBM or Microsoft) has any better code quality. Even PostgreSQL is 1.3M lines of code, so let's get something deliberately written for simplicity. SQLite is just 130k SLoC, so another order of magnitude simpler. And yet, even SQLite has an awful amount of test cases. https://www.sqlite.org/testing.html
Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#555Earlier quoted context omitted.
I doubt the competition (e.g. IBM or Microsoft) has any better code quality. Even PostgreSQL is 1.3M lines of code, so let's get something deliberately written for simplicity. SQLite is just 130k SLoC, so another order of magnitude simpler. And yet, even SQLite has an awful amount of test cases. https://www.sqlite.org/testing.html
It's because software LOC scales linerarly with the amount of man-months spent: a testament to the unique ability of our species to create beautiful, abstract designs that will stand the test of time.
Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#556Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#557I took over a Perl project where every SQL call was an exec to a java program which would make the query. The largest madness was a J2EE mess where persistence was achieved by taking your current object, sending a message bean to the server, it would touch the database and return the result which was being polled for (making it synchronous). The amazing thing is that the client and the server were the same J2EE insta…
and
"Oh, and at the same time, none of this was in source control."
Owwww, that's painful! 12 people spaghetti Perl that did its DB lookups via Java and non of it in source control?
Owwww, owwww, owwww....
Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#558Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#559Re: Ask HN: What's the largest amount of bad code you have ever seen work?
#560Oracle Database 12.2. It is close to 25 million lines of C code. What an unimaginable horror! You can't change a single line of code in the product without breaking 1000s of existing tests. Generations of programmers have worked on that code under difficult deadlines and filled the code with all kinds of crap. Very complex pieces of logic, memory management, context switching, etc. are all held together with thousand…