inherited-code

The best way to familiarize yourself with an inherited codebase

Stacker Nobody asked about the most shocking thing new programmers find as they enter the field. Very high on the list, is the impact of inheriting a codebase with which one must rapidly become acquainted. It can be quite a shock to suddenly find yourself charged with maintaining N lines of code that has been clobbered together for who ...

What inherited code has impressed or inspired you?

I've heard a ton of complaining over the years about inherited projects that us developers have to work with. The WTF site has tons of examples of code that make me actually mutter under my breath "WTF?" But have any of you actually been presented with code that made you go, "Holy crap this was well thought out!" or "Wow, I never thoug...

What to do with over-complicated inherited code

Ever since I gained experience at a software house I have found it difficult to tolerate code not neatly structured, without any form of architecture or beauty or clarity whether or not it works i.e. does what its supposed to do. I find I am always caught up in refactoring code like this sometimes "at my own expense" is where my comfor...

How to find the Javascript that is not contained in a function?

I have a really, really nasty bit of JS code that I've inherited. The code is quite long, and quite obtrusive. The functions defined are all about a thousand or so lines each... Anyway, since there isn't a call to anything as elegant as onload, I am trying to figure out how what is on the screen gets on the screen. Thus I need a way t...