Load-bearing paint (alt: structural paint) is a term that I've heard in relation to house remodeling where the existing structure is, shall we say, questionable. Things are so poorly constructed, or more often, modified (shoddy repairs on top of shoddy remodeling on top of more shoddy remodeling) that what seems to be purely cosmetic is in fact an integral part of what is holding things together. It works - for now, just barely, as long as you don't stress it too hard - but to do anything reasonably with it you need to tear the whole thing out and start fresh. And that takes time and money... so why not just add a new coat of paint, to strengthen it up a little?
Now imagine this as a piece of software.
Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts
Nov 24, 2014
May 30, 2011
The difference
The difference between perl programmers and java programmers, presented with the same problem:
The perl programmer thinks, "I can solve that in one line with regexp".
The java programmer thinks, "I can solve that by adding in a new framework."
The perl programmer thinks, "I can solve that in one line with regexp".
The java programmer thinks, "I can solve that by adding in a new framework."
Mar 18, 2010
Of bicycles and go-karts
In the realm of small transportation, there are (among many other choices) bicycles and go-karts. They are different beasts, built different ways for different purposes. Some may consider bicycles more elegant and precision machines, and go-karts can sometimes be a bit sloppy, held together with duct tape and baling wire, but they can go pretty fast. (Yes, bicycles can go quite fast also but there are different approaches to making them fast and they can be quite variable)
So, if you take someone who is a decent bike builder and show them a go-kart, explain the basic principles of operation, give them the parts to build a go-kart, and suggest that they use the parts to build a go-kart and expect that their general mechanical knowledge from building bikes will be sufficient to let them actually handle the building process, then you would expect them to build a go-kart, right?
NO.
They will use the parts you gave them to try and build a bicycle. However, go-kart parts are not bicycle parts, so they will try to make do.
A bicycle has 2 wheels, but their parts box has 4 (that are qiute different). So they'll put one in front and one in back, and then since there's 2 extra, they'l put those in the back too.
A bike doesn't have an engine, so they won't quite know what to do with it. But it has to be there, so they'll strap it to the front. Not connected to anything, just strapped there. For propulsion, a bike uses pedals and a chain; there's a chain drive from the engine that looks like a bike chain (only a lot shorter), so that will work. And the brake and gas pedals look can double as bike pedals in a pinch, so those get strapped onto the chain somehow.
A go-kart frame is rather square-ish compared to a bike frame, but that'll have to do. Stuff can get bolted onto it somehow. The seat goes sort of sideways in the middle, right?
The steering wheel is a common enough thing that they realize it's for turning the wheels, even if it's different than bike handlebars. It gets bolted in there too and wired up to the single front wheel.
So after all this you have a go-kart frame all bent out of shape in such a way as to sort of resemble a bicycle, that you have to pedal very ineffectively, with no brakes, that you can barely control, and carrying the extra weight of a useless engine, that you can't make go very fast. But it DOES go.
And the builder?
They complain that the parts you gave them don't make a very good bicycle.
So, if you take someone who is a decent bike builder and show them a go-kart, explain the basic principles of operation, give them the parts to build a go-kart, and suggest that they use the parts to build a go-kart and expect that their general mechanical knowledge from building bikes will be sufficient to let them actually handle the building process, then you would expect them to build a go-kart, right?
NO.
They will use the parts you gave them to try and build a bicycle. However, go-kart parts are not bicycle parts, so they will try to make do.
A bicycle has 2 wheels, but their parts box has 4 (that are qiute different). So they'll put one in front and one in back, and then since there's 2 extra, they'l put those in the back too.
A bike doesn't have an engine, so they won't quite know what to do with it. But it has to be there, so they'll strap it to the front. Not connected to anything, just strapped there. For propulsion, a bike uses pedals and a chain; there's a chain drive from the engine that looks like a bike chain (only a lot shorter), so that will work. And the brake and gas pedals look can double as bike pedals in a pinch, so those get strapped onto the chain somehow.
A go-kart frame is rather square-ish compared to a bike frame, but that'll have to do. Stuff can get bolted onto it somehow. The seat goes sort of sideways in the middle, right?
The steering wheel is a common enough thing that they realize it's for turning the wheels, even if it's different than bike handlebars. It gets bolted in there too and wired up to the single front wheel.
So after all this you have a go-kart frame all bent out of shape in such a way as to sort of resemble a bicycle, that you have to pedal very ineffectively, with no brakes, that you can barely control, and carrying the extra weight of a useless engine, that you can't make go very fast. But it DOES go.
And the builder?
They complain that the parts you gave them don't make a very good bicycle.
Feb 6, 2009
Kickin it old school
Early this week I found myself writing a CGI script. An old-style CGI script.
Ok, I'm not talking like Matt's Script Archive full of security-holes
Nowadays I mostly use HTML::Mason for anything interesting, it's just so much more natural to type the needed HTML code as ... well, HTML. And, to complete the circle, yesterday when I needed to extend the functionality of my hack, I rewrote it in Mason. I feel better now.
Ok, I'm not talking like Matt's Script Archive full of security-holes
&format(*INFO); old-style; I at least use-d CGI.pm. But it was still chock-full of print "<tr><td>"; and the like. Did we really build the early web on this crap? (although I bet a lot of java servlets are still written this way...)Nowadays I mostly use HTML::Mason for anything interesting, it's just so much more natural to type the needed HTML code as ... well, HTML. And, to complete the circle, yesterday when I needed to extend the functionality of my hack, I rewrote it in Mason. I feel better now.
Subscribe to:
Posts (Atom)