SamC Posted October 31, 2017 Share Posted October 31, 2017 https://javascript.info/ninja-code Quite enjoyed reading this one. Thought I'd share 3 Link to comment Share on other sites More sharing options...
dragan Posted October 31, 2017 Share Posted October 31, 2017 Don't forget the classic https://github.com/Droogans/unmaintainable-code https://goo.gl/xAt1P2 2 Link to comment Share on other sites More sharing options...
BitPoet Posted October 31, 2017 Share Posted October 31, 2017 Nice article. Made me remember the good old days of Perl golf. 1 Link to comment Share on other sites More sharing options...
SamC Posted October 31, 2017 Author Share Posted October 31, 2017 Haha, great links! Link to comment Share on other sites More sharing options...
BitPoet Posted October 31, 2017 Share Posted October 31, 2017 Oh, and it also reminds me of my most favorite "inheritance" at work. Someone, long before I joined the company and no longer available (their luck!), created an Approach database for test run data, and I was asked to "import it into a real database system and make it work offline". It had a few tables named X123 or X345 so you could easily identify their contents. Not. Every table had fields with descriptive names like F1 to F98 or B1 to B45, etc. It also had lots and lots of formulas on the form fields, using expressive variables named a, x, ab, ac... you get it. To make matters not too easy, the database fields could contain different semantic data depending on what kind of machine the report was for, i.e. what form was used to enter the data, and not all forms limited the accessible rows accordingly. Formatting of values was done by copying them back and forth between the database and hidden fields on sometimes unrelated forms. This was still something I could wrap my head around to a degree, but I soon discovered (by trial and error with a copy, since the code was bound individually to each of the 300+ form fields) thrilling little rules like "If the report is in German, then field F68 contains the description of the setup and F92 contains the English translation, but if the report is in English, F68 contains the internal addendum and F70 contains the English setup description, and the German translation can be found in F69." A true blessing when you want to use a standard reporting package to generate the PDF output. And did I mention that the charset could differ between rows without any indication in the data or record metadata? It think this was the first time that I had actual tears in my eyes after looking at a piece of software. 1 3 Link to comment Share on other sites More sharing options...
SamC Posted October 31, 2017 Author Share Posted October 31, 2017 11 minutes ago, BitPoet said: It think this was the first time that I had actual tears in my eyes after looking at a piece of software. Lol, I have no idea what you just described but it sounds BAD! Link to comment Share on other sites More sharing options...
tpr Posted October 31, 2017 Share Posted October 31, 2017 That has something to do with the famous Turbo Entabulator®, hasn't it? 1 Link to comment Share on other sites More sharing options...
dragan Posted October 31, 2017 Share Posted October 31, 2017 1 hour ago, SamC said: 1 hour ago, BitPoet said: It think this was the first time that I had actual tears in my eyes after looking at a piece of software. I think in my case it was Typo3 4 1 Link to comment Share on other sites More sharing options...
DaveP Posted November 1, 2017 Share Posted November 1, 2017 12 hours ago, dragan said: I think in my case it was Typo3 I tried sooo many times to understand Typo3. And failed miserably every time. 1 Link to comment Share on other sites More sharing options...
SamC Posted November 1, 2017 Author Share Posted November 1, 2017 8 hours ago, DaveP said: I tried sooo many times to understand Typo3. And failed miserably every time. Never heard of it. Which is a good thing by the sounds of it 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now