@LunaDragofelis @nixCraft it already is...
Oh Java is an OOP language, I should write OOP all the time (not). When you treat it a little more like C, it can work nice and lean.@nixCraft "We're all mad here and it's okay."
https://sjtucker.bandcamp.com/track/cheshire-kitten-were-all-mad-here
from the album Mischief
The whole humanity is inclined towards evil and on its own is oriented towards bad end. Or how NodeJS made me more Calvinist … ;)
@nixCraft If you didn't write a meme...
The inability to distinguish between totally different systems means:
They don't know 'man command'
They are inept to use DuckDuckGo
They can't write a 'hello world' in a new language
When all programmers of current languages are gone, they will become COBOLized
#bash #sh #zsh #ksh #csh #100DaysOfCode #Linux #POSIX #Programming #COBOL
@nixCraft NodeJS *with TypeScript* is a pretty decent toolkit, but maybe not for all the same things Java is used for. I find it a lot nicer for writing AWS Lambdas, for example.
Yes I do know what I'm talking about, I've been a Java programmer for 28 years.
@nixCraft What a nonsensical offering. Stuff that is still running in COBOL is doing so, because huge amounts of money is at risk and not the slightest mistake can be made.
Everyone who has used AI for coding help knows that it can create everything but not code that you can trust without having to check it completely and extensively.
If that was an option, the code in question would have already been rewritten in another language.
@nixCraft People make fun of COBOL. It's the language I used COBOL my college degree and I have never written a line of production code in it.
You know what? It's really a pretty solid language if you use it for what it was designed. Textual UI, reports, transformation. Otherwise, GTFO. I think it will outlive us all.
@nixCraft ooh, i have a relevant anecdote!
About 15 years ago, my employer has been spending a decade trying to modernize their flagship product. It was written in Natural, which is very similar to COBOL, and this was hurting sales. Several projects to rewrite this massive ancient code base in something more modern had failed.
Then we found a company from Hungary which had a magic tool that would do a machine translation from Natural/adabas to Java/sql.
The most incredible thing is, it worked and they delivered on time. Obviously a lot of manual fixes to deal with bits of code that confused their tools, but it actually worked.
But it didn't work well. It was painfully slow, the whole system would lock up on the most trivial actions (like querying a customer's balance), but that was because natural and Java are conceptually VERY different. The correct logic of one is totally stupid and clumsy on the other. And that's before we get to the database... Adabas predates relational databases. That account query that took so long? It was doing something like iterating through the entire table till it found the correct record because adabas commands were very low level and that was the correct and most efficient way to do things. But in a SQL db, that command logic translated to SELECT * FROM TABLE; and then doing a for loop on each line of output till you find the record you want. DB server thrashing, app server suffering memory exhaustion, and nobody can do a thing till the query ends.
The magic translator tool could not optimise for stuff like that.
Anyway, this AI tool is facing an almost identical task and I bet it will have the same problem.
@nixCraft It was offered at the college I went to and some just begged and begged me to tutor them until I relented. I didn't know COBOL at all but I was able to help them through...at great personal cost. Migraine is putting it lightly and it lasted for hours after.
It's not particularly hard...it's just tedious and I think you can only like it if you like filling out the original punch cards it was used for but on a screen. AI deserves it. I'm not sorry. I hope it can feel pain.
@nixCraft On the one hand, translating COBOL to another programming language using an LLM is likely to lead to disastrous results.
On the other hand, I disagree about generative AI being a short-lived fad. I think there's something useful there, and after the hype and the rush to add generative AI to everything die down, that useful core will remain.
@nixCraft keeping COBOL around is the lower cost option, and certainly lower risk, and not due to the difficulty of the translation itself
also, LLMs cannot translate code. that is a lie. lolsob.