Other People's Code
-
Eddy Vluggen wrote:
AND IF THERE ANY GODS LEFT TO CHALLENGE US, BISMALLAH, THEY BETTER LEARN QUICKLY.
OT: is this a quote from somewhere? I'd be interested in knowing the source.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
Maybe you feel similar about it as I do - before approaching Other People's Code, poke it with a stick from a distance. As I've coded I've become less judgmental of other styles, but not of lack of craft (code with anti-patterns, obvious bugs, or just rube goldberg contraptions) Still at the end of the day, if you build something, you should be forced to use it/rely on it. Suddenly software would be a lot less rickety. :laugh:
Real programmers use butterflies
My first bosses advice was "Write code like it will be maintained by a psychopath that knows where you live"
-
My first bosses advice was "Write code like it will be maintained by a psychopath that knows where you live"
ditto -- I was told the same exact quote
-
honey the codewitch wrote:
You can do some proper damage if you're strategic about it.
I can't be stratetgic with things that seem random. If I could I would play lottery. :rolleyes: :-D
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
Maybe you feel similar about it as I do - before approaching Other People's Code, poke it with a stick from a distance. As I've coded I've become less judgmental of other styles, but not of lack of craft (code with anti-patterns, obvious bugs, or just rube goldberg contraptions) Still at the end of the day, if you build something, you should be forced to use it/rely on it. Suddenly software would be a lot less rickety. :laugh:
Real programmers use butterflies
Disagree with your assertion. For the most part, people who write obtuse software which isn't fault-tolerant think their code is fine. Herp-derp, I'll just hard-code this value, won't attempt to handle any exceptions, etc, etc, etc. Generally, it's not that these people even understand how bad their code/designs are. Yes, there are occasions where somebody understands that (sometimes with "this feels wrong, couldn't figure out the right way, here's what I'm trying to do"-type comments), but that's the exception to the rule. Thus, most people will think their code is just fine, because it kinda-sorta works given the exact right conditions.
-
Disagree with your assertion. For the most part, people who write obtuse software which isn't fault-tolerant think their code is fine. Herp-derp, I'll just hard-code this value, won't attempt to handle any exceptions, etc, etc, etc. Generally, it's not that these people even understand how bad their code/designs are. Yes, there are occasions where somebody understands that (sometimes with "this feels wrong, couldn't figure out the right way, here's what I'm trying to do"-type comments), but that's the exception to the rule. Thus, most people will think their code is just fine, because it kinda-sorta works given the exact right conditions.
I know my code is not fine for others. For starters, my methods are too long. My post is tongue in cheek.
Real programmers use butterflies
-
Maybe you feel similar about it as I do - before approaching Other People's Code, poke it with a stick from a distance. As I've coded I've become less judgmental of other styles, but not of lack of craft (code with anti-patterns, obvious bugs, or just rube goldberg contraptions) Still at the end of the day, if you build something, you should be forced to use it/rely on it. Suddenly software would be a lot less rickety. :laugh:
Real programmers use butterflies
I kid you not, I worked on someone else c# code base that was trying to run dependence injection at every level, everything was an interface, even if there was one concrete class implementing the interface. I mapped one API call through 14 layers of calls to get to the root code that was hard coded to return "True" (not a bool, but a string). It would take me hours to find where the call's implantation wound up. The project solution consisted of 60+ DLL projects, some of which had no code and was only a stub out for an interface implementing another interface referenced in another project. every function had a try/catch with a logger that did not log the error or any variables, just the function name where the error occurred and a time stamp, nothing else. so when you have say 10 functions called "Update" in each of the 60+ projects, which one did it crash on, and why? tried to map it out, gave up after a week. Hair pulling time.
-
I kid you not, I worked on someone else c# code base that was trying to run dependence injection at every level, everything was an interface, even if there was one concrete class implementing the interface. I mapped one API call through 14 layers of calls to get to the root code that was hard coded to return "True" (not a bool, but a string). It would take me hours to find where the call's implantation wound up. The project solution consisted of 60+ DLL projects, some of which had no code and was only a stub out for an interface implementing another interface referenced in another project. every function had a try/catch with a logger that did not log the error or any variables, just the function name where the error occurred and a time stamp, nothing else. so when you have say 10 functions called "Update" in each of the 60+ projects, which one did it crash on, and why? tried to map it out, gave up after a week. Hair pulling time.
sounds frustrating. kind of makes me glad i left the field
Real programmers use butterflies
-
But it is a very valuable ?skill?. Frank got Ed to try out his database program -- then fixed it -- repeat. Made a good team.
Yeah, in that cases yes. I agree. But it annoys the hell out of me when I got hit by things that nobody in my range can repair and I have to call the IT Hotline to open a ticket. 99% of the time, they don'T believe what I say. They have to remote log in, then try some stuff (that 99% of the times bring nothing), then I have to show them what is or how comes (at least most of the times I can repeat the problems) the problem, then they try another bunch of "pre-compiled" steps and then say... "I will pass the ticket to the level 2 support"... and then start over again. I have had tickets that went up to level 4 and I was still being more informed that the supposed specialist. The problem is... I have almost no rights to do things that could be done to fix it.
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
honey the codewitch wrote:
if you build something, you should be forced to use it/rely on it.
I'm glad that's not the case for home builders. :-D
Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
lol, actually "builder's own home" in a sales description should make you run. I learned the hard way (a long time ago) it was his first house. We both learned much.
Charlie Gilley <italic>Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
sounds frustrating. kind of makes me glad i left the field
Real programmers use butterflies
I ended up moving on to a different company. apparently I was eventually going to be the main dev for that code base, so the dev that wrote it could work on higher level ideas, and that's when I knew I had to move on.