The OFFICIAL programming thread
-
@Gators1 about 40% of the work I’ve been doing for the last year and a half is optimizing horrendous code.
The first one I was tasked with was an app that was taking 6+ minutes to load in production. It was a hella stressful task because I’d never done that kind of programming before so it was pretty much learning a new language and the dev tools. The business were fed up with dealing with other outsourced IT resources that were in over their head so I came into it with time pressure and no goodwill left.
Anyway, I got it down to a few seconds so it paid off and is probably one of the reasons why I’ve still got work there.
-
@Gators1 said in The OFFICIAL programming thread:
I blame Hog.
Pretty simple, cost of programming goes down with automated gen tools and no incentive to optimize and hardware horsepower can make your shit product tolerable.
-
-
-
-
This made me laugh. In 2012, someone wrote an example for the smallest possible window manager you could write. If you don’t know what a window manager is, think the part of Windows that does the actual windows. Anyway, he did it in only 50 lines of C code. It is barely usable but works as a proof of concept and the author hasn’t touched it since.
Then 8 years later, someone raises an issue on the GitHub repo reporting that, when using this window manager, right-click in Firefox is broken:
-
Oops
-
Tits?
-
Passwordz
-
Boring
-
Could be passwordz to porn collections?
-
Reminds me, I read yesterday that the guy is who was responsible for Mali’s top level domain “.ml” is some guy in Europe who had a ten year contract for it that finished yesterday. Over ten years he has gotten thousands of emails meant for US military email addresses that end in “.mil”. Since his contract finished yesterday, now the government of Mali are going to be getting them.
-
“This private method you wrote that I’ve just went ahead and made public doesn’t work the way I want it to when I call it from outside of the class”
Are you fucking kidding me? The reason it was private to begin with was that it has baked in assumptions about how it is used from within the owner class that you aren’t even using. That’s the whole fucking purpose of visibility to begin with - to signify what can be safely reused / called from outside of the class and what can’t.
/rant
-
@Hog said in The OFFICIAL programming thread:
“This private method you wrote that I’ve just went ahead and made public doesn’t work the way I want it to when I call it from outside of the class”
Are you fucking kidding me? The reason it was private to begin with was that it has baked in assumptions about how it is used from within the owner class that you aren’t even using. That’s the whole fucking purpose of visibility to begin with - to signify what can be safely reused / called from outside of the class and what can’t.
/rant
Coworker or random internet idiot?
-
@Gators1 said in The OFFICIAL programming thread:
@Hog said in The OFFICIAL programming thread:
“This private method you wrote that I’ve just went ahead and made public doesn’t work the way I want it to when I call it from outside of the class”
Are you fucking kidding me? The reason it was private to begin with was that it has baked in assumptions about how it is used from within the owner class that you aren’t even using. That’s the whole fucking purpose of visibility to begin with - to signify what can be safely reused / called from outside of the class and what can’t.
/rant
Coworker or random internet idiot?
An coworker provided by one of the big management services companies.
I wouldn’t have been so pissed but he changed code I’ve written that I’m still responsible for (ie it hasn’t been through QA yet) and it was a really dumb and reckless change. Encapsulation and visibility is like Object Oriented programming 101.
-
@Hog said in The OFFICIAL programming thread:
@Gators1 said in The OFFICIAL programming thread:
@Hog said in The OFFICIAL programming thread:
“This private method you wrote that I’ve just went ahead and made public doesn’t work the way I want it to when I call it from outside of the class”
Are you fucking kidding me? The reason it was private to begin with was that it has baked in assumptions about how it is used from within the owner class that you aren’t even using. That’s the whole fucking purpose of visibility to begin with - to signify what can be safely reused / called from outside of the class and what can’t.
/rant
Coworker or random internet idiot?
An coworker provided by one of the big management services companies.
I wouldn’t have been so pissed but he changed code I’ve written that I’m still responsible for (ie it hasn’t been through QA yet) and it was a really dumb and reckless change. Encapsulation and visibility is like Object Oriented programming 101.
Even i know that and I have never written a class in my life.
-
@Gators1 would you move to Hyderabad and take an Indian salary? We’re hiring.
-
@Hog said in The OFFICIAL programming thread:
@Gators1 would you move to Hyderabad and take an Indian salary? We’re hiring.
That explains it. Working with offshore has made me racis against Indians.
-
@Gators1 said in The OFFICIAL programming thread:
@Hog said in The OFFICIAL programming thread:
@Gators1 said in The OFFICIAL programming thread:
@Hog said in The OFFICIAL programming thread:
“This private method you wrote that I’ve just went ahead and made public doesn’t work the way I want it to when I call it from outside of the class”
Are you fucking kidding me? The reason it was private to begin with was that it has baked in assumptions about how it is used from within the owner class that you aren’t even using. That’s the whole fucking purpose of visibility to begin with - to signify what can be safely reused / called from outside of the class and what can’t.
/rant
Coworker or random internet idiot?
An coworker provided by one of the big management services companies.
I wouldn’t have been so pissed but he changed code I’ve written that I’m still responsible for (ie it hasn’t been through QA yet) and it was a really dumb and reckless change. Encapsulation and visibility is like Object Oriented programming 101.
Even i know that and I have never written a class in my life.
So you admit you have no class.
-
@Gators1 said in The OFFICIAL programming thread:
@Hog said in The OFFICIAL programming thread:
@Gators1 would you move to Hyderabad and take an Indian salary? We’re hiring.
That explains it. Working with offshore has made me racis against Indians.
Been working with Indian outsource since the 90s. Some are very good, most are overspecialized and thus useless outside of the one thing they do. It’s mostly programming by human wave attack.
Computer Speed Gains Erased By Modern Software

