Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Other People's Code

Other People's Code

Scheduled Pinned Locked Moved The Lounge
csswpf
34 Posts 19 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H honey the codewitch

    That's a superpower! You can do some proper damage if you're strategic about it.

    Real programmers use butterflies

    N Offline
    N Offline
    Nelek
    wrote on last edited by
    #22

    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.

    D 1 Reply Last reply
    0
    • L Lost User

      I dislike your opinion (but like you still). Others people code is great; yours is, innit? For me, your code is. I don't like VB6; but there was a German company paying money for this brownfield (an existing [succesful] project) nearby. Best lunches ever, by the way. We had German meats, and cheap. And lots of coffee. I learned a lot from others people code', and happy with that; the project was several years old, containing code of several (intelligent, but not know-it-all) people. Accumulated knowledge of ten people, over several years. A brownfield in every way, but success written all over it. Our company made money and I learned from other's mistakes and their sometimes brilliant ideas (no sarcasm, YET). Then there's this monthly report, relying on "bits" encoded as strings. So a 0 for no, 1 for yes, but as a VARCHAR string. Putting that in a (Crystal) report, asking why it is slow. Most of out code was like that, but users found it workable. Reason was one of our programmers had the idea that it'd be efficient to store bits as a string. That idiot was my boss. He knew better than the accumulated knowledge of the codebase, because his title was "manager". He made the judgement to do a total rewrite, instead of a gradual migration. Within a two years the company died. I've not become less judgmental, but a lot more. If I don't like your code, I'll delete it and commit the improvement. No explanation either. Those who want to learn will ask what they did wrong; all the others don't deserve to be writing code in the first place. As you could guess, he was promoted and I was fired, and I made it pretty clear to be happy with that situation. Others' people code is mostly a learning experience; it contains the combined efforts of all programmers involved in the years it existed - so respect the brownfield, you may learn from it. You may prefer a greenfield, but it will never be as mature as a brownfield. Existing products with a predictive revenue are to be treasured. If you new to the field, go for a brownfield and learn. Dis years ago. Do we hold a grudge? Aw, we do. Aw, yes, we do. CodeProject knows our temperament. It harsh, but honest. We don't forgive. We don't forget. And we need not be anonymous, we sign with our name and be proud. Bismallah, pray to us. Pray to us; if you include enough silver, we might actually answer which Allah would not. AND IF THERE ANY GODS LEFT TO CHALLENGE US, BISMALLAH, THEY BETTER LEARN QUICKLY.

      Bastard Programmer from Hell :

      D Offline
      D Offline
      Daniel Pfeffer
      wrote on last edited by
      #23

      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.

      L 1 Reply Last reply
      0
      • D Daniel Pfeffer

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #24

        Not a quote; I just have weird dreams. Currently reading "Small Gods" from Pratchett.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

        1 Reply Last reply
        0
        • H honey the codewitch

          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

          U Offline
          U Offline
          User 10303838
          wrote on last edited by
          #25

          My first bosses advice was "Write code like it will be maintained by a psychopath that knows where you live"

          B 1 Reply Last reply
          0
          • U User 10303838

            My first bosses advice was "Write code like it will be maintained by a psychopath that knows where you live"

            B Offline
            B Offline
            BryanFazekas
            wrote on last edited by
            #26

            ditto -- I was told the same exact quote

            1 Reply Last reply
            0
            • N Nelek

              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.

              D Offline
              D Offline
              davecasdf
              wrote on last edited by
              #27

              But it is a very valuable ?skill?. Frank got Ed to try out his database program -- then fixed it -- repeat. Made a good team.

              N 1 Reply Last reply
              0
              • H honey the codewitch

                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

                A Offline
                A Offline
                agolddog
                wrote on last edited by
                #28

                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.

                H 1 Reply Last reply
                0
                • A agolddog

                  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.

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #29

                  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

                  1 Reply Last reply
                  0
                  • H honey the codewitch

                    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

                    M Offline
                    M Offline
                    Matt McGuire
                    wrote on last edited by
                    #30

                    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.

                    H 1 Reply Last reply
                    0
                    • M Matt McGuire

                      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.

                      H Offline
                      H Offline
                      honey the codewitch
                      wrote on last edited by
                      #31

                      sounds frustrating. kind of makes me glad i left the field

                      Real programmers use butterflies

                      M 1 Reply Last reply
                      0
                      • D davecasdf

                        But it is a very valuable ?skill?. Frank got Ed to try out his database program -- then fixed it -- repeat. Made a good team.

                        N Offline
                        N Offline
                        Nelek
                        wrote on last edited by
                        #32

                        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.

                        1 Reply Last reply
                        0
                        • Z ZurdoDev

                          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.

                          C Offline
                          C Offline
                          charlieg
                          wrote on last edited by
                          #33

                          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

                          1 Reply Last reply
                          0
                          • H honey the codewitch

                            sounds frustrating. kind of makes me glad i left the field

                            Real programmers use butterflies

                            M Offline
                            M Offline
                            Matt McGuire
                            wrote on last edited by
                            #34

                            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.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups