"I can't deallocate memory from a C process if you kill it from the OS, we should do this in Java since it has a garbage collector".
Best posts made by dstopia
-
💩 Shit I just heard in my office
-
RE: 💩 Shit I just heard in my office
I just had an argument with the same guy. We told him he had to build a dynamic call to a stored procedure and he would retrieve the SP's name from the database, since it was related to the ID of the task the program has to execute.
He came to me and showed me a switch() statement where he hardcoded the sample stored procedures that we gave him, and proceeded to argue with me because he didn't understand what I meant by "dynamic". Kept insisting I "show him in code" what I meant, and the idea that I had to show him how to concatenate a string in C sounded so fucking ludicrous in my mind that I spent extra time trying to explain the concept of what we're trying to achieve here.
He finally understood, but I thought I was going to have an aneurysm, jesus christ. This is a guy who supposedly has about 15 years of experience in programming, far more than I have.
-
RE: Code review malediction
Jesus.
Are you staying with Samsung? You sound like a competent programmer from your other posts on this debacle, and I wouldn't want to touch Tizen with a 100 foot pole after all you've said about it.
-
The Abyss
I think the fact that it ends on a break, it's not even correctly indented and has superfluous newlines is the perfect punchline for this piece of fucking shit.
-
RE: Just... I don't know anymore man.
One of the best tidbits of this application: It parses an XML file for input. Now, I can barely call this parsing: It iterates over every single XML element, and stores the tag on a string array, and the value of the element in another string array. The way to "find" a particular value is to search the tag array, fetch the index, and get the value from the value array using that same number.
I have no fucking clue who the hell thought this was a good idea. Holy shit.
-
Just... I don't know anymore man.
This is Java code.
Presented without further comment.
-
RE: Bugzzzzz
There's a point to what Blakey says and I mostly agree with it, but at some point, users need to realize that just because you can take a screwdriver and gouge your own eye out with it doesn't mean that the screwdriver has a design flaw, or that the screwdriver specification is wrong.
Otherwise we should just all surround ourselves in packing bubble wrap and be done with it.
-
RE: Visual Studio Code
True story: I broke a productive app once while doing that. It stopped ALL the truck deliveries on their tracks for an hour or two.
I didn't get fired but I learned an incredible important lesson: NEVER EVER UNZIP/UNTAR STUFF WITHOUT MAKING A SEPARATE DIRECTORY FIRST
-
RE: Oh, you wanted to get off the train? Tough shit, GPS is out.
I'm dealing with the opposite: A codebase where every single statement, no matter how innocuous or self-explanatory, is commented.
This is a small sample:
for ( int idx = 0; idx < theEnum.length; idx++ ) { // -----> Do we have a match? if ( theEnum[ idx ].getIndex() == index ) { // -----> Assign and bail out of the loop. theView = theEnum[ idx ].getView(); break; } } // -----> Not a valid view? (A bit redundant, but you never know...) if ( theView == null ) return; // -----> Declare the argument type in order to find the constructor of the view. Class[] args = new Class[] { CustomMainFrame.class }; // -----> Initialize the parameter for the constructor. CustomMainFrame param = this; // -----> Create an array of arguments for the constructor. Object[] argObj = new Object[] { param }; // -----> The panel to be instantiated. CustomAbstractView thePanel = null; // -----> Empty constructor. Constructor defaultConstruct = null;
And it all uses that fucking dumb // ----> format for comments.
If the function or class is doing weird stuff I'm very appreciative of a bunch of text explaining what it does at the top, with particular comments in touchy areas. But every single line? Come on.
-
RE: 💩 Shit I just heard in my office
Oh believe me, he wasn't talking about that. He literally thought malloc() memory doesn't get deallocated by Unix. He didn't even know what SIGTERM and SIGKILL are.
-
RE: Helvetical Fronting
Honestly the theme isn't so much a problem but the fact that you're coding with non-fixed width fonts makes me think you're insane.
-
RE: Do you hate HATEOAS?
Having had to deal with Oracle's OAS I find the name endlessly amusing.
-
RE: 💩 Shit I just heard in my office
Ugh, it's kind of a long story.
I recently started working for a Big Local Telcoâ„¢. Said telco bought a billion different Expensive Billing Enterprise Software Packagesâ„¢ in the 90s, and over time, as it usually happens around these parts, the IT department started suffering budget cuts after budget cuts, and the whole thing fell into a mess of different systems interacting in weird ways with one another.
My whole team is dedicated to solving the various errors that crop up from the interaction between these different billing systems. As soon as I joined, about a month and a half ago, I got put in charge of a Java EE application that is basically a frontend that allows a subset of IT users to visualize the gazillion different errors that arise every day from the whole thing's regular operation.
One of the things the users of this application do is solve issues by way of executing SQL queries, except they don't actually have the privileges to execute queries on the production DB, so there's this whole complicated chain of change requests they have to go through. The brillant idea some random fuckwad of a manager had is to automate the process of going through this bureaucracy by having our application upload SQL query files to be executed by a batch daemon running on a Unix server (the idea being that only a subset of approved queries would be allowed). This last bit was the idea of my predecessor, who wanted multithreaded access to the DB written in an ancient Oracle C preprocessor language called Pro-C. The phrase in the OP was just uttered this morning by the guy who was assigned the task of writing the Unix daemon.
I can't even begin to count the number of WTFs there are here. I wouldn't even know where to begin. Sadly, this is only my second gig as a programmer (I worked for six years for a consulting agency for an Oracle ERP and that's its own set of WTFs) and I'm still learning a lot here, so I'm not ready to leave yet. But holy shit am I dreading my future here.
-
RE: 💩 Shit I just heard in my office
It is pretty insane. The app in itself is a WTF of UX and general design principles. It's getting worse as it slowly becomes this jack of all trades bullshit app for whatever purpose Mr. Manager wants the app to behave in order to fill up some stupid presentation for Mr. Chief Manager prior to budgeting meetings starting.
Fuck corporations.
-
RE: Enlightened
I thought the whole company name the OP and @eskel were skirting around (blueish hell, Asian company, Tizen) was Samsung.
-
RE: Bugzzzzz
Literally everything is buggy, then. I can assure you there is no implement ever made on the face of the earth that can't be used for something beyond what the specification implies, and there will never be. Otherwise we would have solved the universe, and that's impossible.
Like I said, there's a point where you stop the reductionist charade of "I can make anything do something that's not covered by the spec" or we end up wrapped in plastic bubble wrap. And that's not something I want out of the software I use or I develop.
-
RE: The Abyss
The point was the 2.5k lines of code inside the if, yeah. This piece of shit was programmed by people who never knew anything about Java and had been coding in (shitty) C for like 30 years or something.
The entire thing has no packages. Every class attribute and method is static. Variables are global for no good reason, variables get declared like old K&R C used to work, and this thing opens transactions with no rhyme or reason. I fixed an issue today where it was opening a connection to a service being opened while a connection was already opened, for absolutely no reason at all, if only that whoever slapped that piece of code in there had no idea there was a connection available at that point. Also this connection was being opened and closed at a detail-level processing inside a for loop. It was easy to miss because the code is a jumbled mess. To add insult to injury, this connection was opened in an openConnection() private method that was used EXACTLY ONCE, in that function, and the reason I had to fix it was because it was manually throwing an exception between opening and closing the connection. No try clause or anything. Golly gee.
This whole thing needs to be burned to the ground. I think cargo culture pushed this piece of shit so far no one ever wanted to take a minimal step back to look at it and see what they were actually working on. They just did patches upon patches for years on end.
I hate software.
-
RE: DICSS - Directly injected CSS
Do these people know joy? Do they ever smile or be happy? Or do they wish for everyone else to be as miserable as they seem to be.
-
RE: The minor rants thread.
Maybe I'm a product of the new ways of visual design but I understood instantly that it's a widget it's meant to be clicked and not an actual slider.
What I actually found unacceptable is that it's incredibly hidden in the UI and the feature is on by default without even a warning that it was added, so I spent a minute or two digging through the (now practically barren) youtube user settings in an effort to deactivate something so fucking useless and annoying.
If I want to watch a series of videos I'd start watching a playlist. Who actually thinks I want to watch random videos that might have nothing to do with what I actually watched just now? (Just kidding, I know who -- their marketing department).
-
RE: Just... I don't know anymore man.
piss-poor C programmer
That's my guess for who coded this piece of shit, too.
Oh, and this is only a small part of a "Java" application that has about 5 different files, all over 1k LOC. This one in particular has over 8k, no packages declared, no concept of classes, total disregard for any kind of exception handling, a fucking mess. Inside each if you see there there are about 200 or 300 lines of code.
It's infuriating. At least there's a project to replace it being negotiated with the client. This is what happens when non-tech companies leave their incompetent IT staff to their own devises for years and years.
-
RE: Getting the database name, the WTF way
die("The query executed successfully. I'm confused!");
That's definitely the highlight of the code. It's so fucking tempting to create the obelix table it's looking for...
-
RE: On Alarms and waking up
When I was just starting my new job I routinely woke up on time. I slowly began slipping and today was the first day I completely dozed over my alarm, though I managed to wake up right on time to get up and leave.
I'm terrible about going to sleep early though, and I don't think I'm going to change that. Going to sleep means waking up and going to work, fuck that.
-
RE: On Alarms and waking up
I am utterly unable to be productive until about 10:30. I wish I could put that into my contract clause somewhere so I wouldn't need to get here before that time.
-
RE: The Official Status Thread
Status update: Completely stunned. I've just been told that every application that uses these HP-UX servers has been required to strip or replace every non-ASCII character, including irreplaceable characters like Ñ. This is the biggest telco in the country. And none of their invocing systems are capable of displaying our language's full character set in a printed sheet of paper.
I've never seen something this retarded in my life. The worst part is that IT'S A FUCKING USER SETTING. Any competent sysadmin should be able to switch the default character set of your Unix users. I'm sure I could with a few minutes of googling.
I'm not gonna stay long in this company, that's for fucking sure.
-
RE: How One Stupid Tweet Blew Up Justine Sacco’s Life (article)
Not even in a democracy you get mob justice. There's actual people appointed to judge others, and they're usually trusted to be exemplary people who study a lot. You know why? Because mobs are fucking dumb.
-
RE: Bugzzzzz
You know what's killing you as you breathe? Oxygen. Oxygen has the side effect of slowly murdering us, tiny explosion after tiny explosion inside our cells. If we keep going in this reductionist charade, you'll eventually arrive at the conclusion that the best move is not to play -- not doing anything at all, ie, a fate worse that killing yourself.
Maybe if you'd actually understand why I chose the screwdriver metaphor in the first place you'd realize what is the point of discriminating actual bugs and fantasy bugs for the sake of looking for shit to complain about.
-
RE: On Alarms and waking up
As a corollary, I actually like waking up early on weekends. The smell of coffee in a sunny, mild autumn morning at 8 am, sitting at my desktop feels fucking amazing.
It's the I-need-to-go-to-work part of the whole deal that sucks ass.
-
RE: Office Stereotypes
I had a Company Man/Weirdo mix in my old company that I would addend with utterly inept at his job. The worst part is that he thought he knew better than anybody else and felt the need to butt into any conversation where he thought we might need his (nonexistent) expertise.
He was the company's second or third full time employee, in 2002 or something like that. He only stayed because he would be utterly useless anywhere else. Fuck that guy.
-
RE: 💩 Shit I just heard in my office
Hey, at least that's Java and seems to be using a rather sane variable naming scheme. You haven't felt pain until you need to deal with JD Edwards C functions with their stupid Hungarian notation, cryptic API you can only look up in 800 pages long Oracle PDFs plus its special preprocessor functions.
Fuck Oracle.
-
RE: You merely adopted the 500. I was born in it, molded by it. I didn't see a fully rendered Discourse page until I was already a man
Is that feature even useful to anyone?
-
RE: Unit testing - where do I start?
Uh.
You have bigger problems than missing unit tests. Refactor that shit, yo! Unit tests won't do you any good until you have units to test in any case.
QFT. What the hell.
Sounds like the Java batch app on our servers I got to peek at the other day and it seemed written by someone who thought he was programming in BASIC or something. 100K LOC monstrosity absolutely impossible to keep track of in a single file, "run.java". No classes, nothing, just a main method and a billion different private methods. Like fuck off dude, I wish I could fucking kill the guy who got put in charge of that.
-
RE: Empty Stadium
It is really common to have at least one or two "closed doors" football/soccer matches here in my country a year due to several reasons (usually riots during games that lead to a match cancellation, but sometimes it's matches that get cancelled midgame due to weather issues like excessive rains, and they're not going to set up the whole match infrastructure to squeeze 15 minutes of play).
They're really funny sometimes, because you can hear almost everything that's yelled at in the dugout and such. I guess it's kind of sad? I dunno. It's just not something that happens everyday so it's always kinda interesting to see.
-
RE: Jeffed Car Talk - Now with Trainwrecks, Formerly with Manual Gearboxes
I wouldn't say it has to be regularly replaced, but it's a part that can get worn out if you're not careful with it thus an extra expense in case it does wear out.
-
RE: Why (most) High Level Languages are Slow (article)
I made the distinction between selling and high complexity graphics in the very first post I made in this thread.
I know you like to insult people randomly, but you might as well read the replies to your own posts, too.
-
RE: Enlightened
Is it really on a consumer device cost level though?
I'm not trying to play the devil's advocate, but I sort of understand what the point of EFL is, though I'm still trying to figure out if there's an actual, real use case. Tizen is supposed target EVERYTHING embedded, which might be TRWTF here.
-
RE: Why (most) High Level Languages are Slow (article)
Bonus points for missing the whole point.
People in the old days did 2D games because they couldn't do any better. They were doing exactly what state of the art 3D guys are doing right now: push the hardware to the limits to achieve better graphical fidelity -- ie, to make their stuff resemble life more and more, to get away from simple abstractions (Spacewar!) to something that connects far more directly with the player. That's exactly the same thing big bad evil AAA game making companies are doing. The fantastic games people have nostalgia for nowadays? They were the Call of Duty of the hayday. Big bad evil AAA game developers pouring enormous resources into making bigger and better games.
Indie developers nowadays do it either because they can't do 3D graphics (because they don't have the knowledge or the resources at hand to do a good 3D game) or sometimes as a marketing ploy to sell nostalgia (bad nostalgia at it -- most of the indie nostalgia platformers get the 16 bit look entierly wrong). I'm not judging -- I like game development and I would pounce at the opportunity of making my own shit. They put a lot of effort into their stuff and it's absolutely commendable. Is it cuttin edge state of the art videogames? Most certainly not.
(And now that 3D engines are far more widely available, 3D indie games are booming. Coincidence? Not at all. It's all a matter of the resources at hand to realize your vision, not an artistic statement).
-
RE: My new 4k monitor-- God I wish I had taken notes while setting up this thing
That's why you should use a separate audio component to line out your PC audio. I've been using an early 90's Panasonic minicomponent since forever and it works wonders.
-
RE: My new 4k monitor-- God I wish I had taken notes while setting up this thing
This sort of thing is why I'm always wary of early adoption of new hardware standards. I'll stick with my two 1080p monitors until all of these kinks are ironed out.
Also do you prefer running at 4K and 30Hz? I'm pretty sure 30Hz would make my head hurt on extended use, not to mention the loss of FPS in videogames...
-
RE: Valve now allows selling of mods
To be honest, it's their IP and they're allowing modders to do something that would be outright illegal as of five days ago. The DayZ dev came out and said that 25% is actually a fairly good number.
-
RE: 💩 Shit I just heard in my office
Standard operating procedure for a service that listens on a port though, it's really one of the best ways to quickly troubleshoot infrastructure issues from almost anywhere since the telnet client is so ubiquitous.
This bit me in the ass so hard though when Microsoft disabled it by default in Windows Vista or so, especially when I didn't have admin access to the machine I was trying to test from.
-
RE: Just because you're a neurosurgeon doesn't mean you're sane
I never understood the conundrum between sexuality being a choice or being natural. I don't understand if it's a reaction from a minority trying to protect itself or an oppressive action from the other side of the fence, because I've heard the argument from both sides.
If I was gay, I'd sure as fuck be proud to be the way I am, maybe even going as far as to saying I've chosen that path. Otherwise it seems to me I would be asking for pity or understanding or something.
No, fuck you! I'm gay because I want to be gay. Or something like that.
(I'm not actually gay).
-
RE: The Abyss
@UndergroundCode said in The Abyss:
And all of the data was stored in global fixed-size arrays with other global variables for the size, as if there wasn't a perfectly good dynamic List<> class already.
Oh YEAH! That totally happens here as well. It's mindblowing.
-
RE: In which @Minkovsky applies for a student loan
Pitching simply to state FUCK SECRET QUESTION / ANSWER PASSWORD RECOVERY SYSTEMS. I HAVE AN EMAIL FOR A REASON YOU DUMB FUCKS.
-
RE: My Adventures as an Only Developerâ„¢: Fun with third party integration.
JAXB generates boilerplate Java classes from the WSDL schema. Maybe they have no idea what to do with them?
I also suffered from having to consume web services with badly built schemas that generated a garbage class structure on my end, but I don't think that's the case here. At least it doesn't justify building the XML manually.
-
RE: Look before you paste.
I've always typed stuff. Even when looking up code snippets for stuff I don't know how to do, unless I'm super constrained by time I type it down instead of copy-pasting. It really helps committing it to memory, and it's how I learned how to program as well.
I never thought much of it other than the fact that I liked typing stuff when I was learning to code, but years later, when I came across the "Learn the Hard Way" series of books by Zed Shaw, his request to never copy-paste anything in order to help you understand what you're doing made a lot of sense and explained my behavior as a kid.