- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
*think
Admin
It needs to be synchronized as I'm sure that, with spaghetti like that, connectionManager is used by different threads at once, and "synchronized" is the only string of hope that's keeping it together.
Edit Admin
I was going to write that they had clearly separated their concerns, but only with line feeds. The first line is presentation layer. The second line is (excluding
try {
) database layer.But then things fell apart with the
while
loop.Edit Admin
Speaking of languages, I can't figure out what language the author of this code speaks. Even with lots of non-English clues like StocTotGest, den, Denumire, Cant, PretVanz, um, pret_vinz, stmarfzi_poli, and teo, I can't find a language where all of these words have meaningful translations, at least if Google Translate is to be trusted.
Addendum 2024-12-03 08:49: teo is probably just a typo for two, given that we have
threeDecimalPlacesFormat
right aboveteoDecimalPlacesFormat
Admin
He could be multi lingual. There is more of us that speak 5+ languages than you'd think.
Admin
Looks like abbreviated German to me.
Admin
Sorry, doesn't even remotely match anything German one could abbreviate (and that still makes a little bit of sense)... "Stoc" could be short for "Stock", so maybe "StocTotGest" = Stocktotengestein, den, yes, Denumire... un-numerate or (d)enumerate, poor Latin, Cant... there aren't german words starting that way... Cantrullalla, the name of the product we're selling, Pretnisolonwanzenmittel, um... um was zu tun? To do what? Pretnisolon-Winzer, Starkmarzipanfolienzieh-Politur, and finally Theo. And it's actually Prednisolon, but they who writes "two" as "teo" might also have further interesting spelling preferences.
Edit Admin
If you're going in that direction, you might as well criticize the lack of THEAD and TBODY elements as well.
Admin
I've also seen this type of stuff in the .net asp.net world, both .net framework (web forms) and the new stuff (core and .net8). And wiht the new MVC (model view controller) paradigm, many young devs are skipping the layers altogether as the examples don't even bother doing that anymore.
Admin
Never mind about the SQL injection vulnerability!
Admin
It seems to be a mix of German and French, actually.
Edit Admin
PHP is bad because you can write bad code. Java is good because you can write good code.
Next week we'll talk about women drivers.
Admin
Ah, but has Linus made them into a kernel module yet?
Edit Admin
I believe, based on the submitter, that it's Romanian.
Admin
"Denumire" is Romanian for "name", but "stmarfzi_poli" has me stumped.
Admin
Yeah, that kick against PHP was really uncalled for.
Edit Admin
Haven't seen HTML like this since the 90ies! Though, I am disappointed, the code didn't also contain JavaScript to be run at the "presentation level"... preferably in seven layers of wrapped iframes! I've been to the seventh layer, and I'm not sure that I'm back yet...
Edit Admin
Now you mention it, I worked in a project like 2 or 3 years ago that heavily used JSP to emit JavaScript code that would in turn produce the final HTML. It was worse than the worst classic ASP you could find 25 years ago, but having to wait several minutes to compile and see the results.
Admin
"Such a fun and creative way to layer outfits! The ‘spaghetti’ style is playful yet stylish. Any tips on how to balance different textures when trying this look?"
https://jiyubjj.com/