Posts Tagged with "software"

Simplicity Rules the Day

February 27th, 2007 at 9:16 pm by Mark
Tags: , , , , , ,

     Before I start this little rant, I just wanna say, this is not to ridicule Chris — he’s certainly worth his salt.  This was just an example — and a rather basic one, at that, given that this was more of an oversight than a faux pas — of something that’s been getting on my nerves for years.

     Every once in a while, someone’ll do something, semi-cool with a piece of software, but their execution makes it appear that they’ve forgotten why a given function works the way it does.  It happens a lot these days, and I’m glad I’m old enough to remember “why” things are like they are.

     A case in point — and Chris is a brilliant guy, mind you, and again, I’m not bashing him — was the beginnings of a WordPress plugin (blog software, for the initiated) to show extra formatting buttons in the Text Editor.

function st_addAdvanced($buttons) {
    unset($buttons[22]);
    array_push($buttons, ‘wp_adv’);
    return $buttons;
}

     It’s a pretty elegant little function.  It takes an array called $buttons, and changes the last value to ‘wp_adv’ and returns it.  Unfortunately, it makes things look ugly because of the way the $buttons array is used elsewhere in the code.
     He says, “Ahh, there are some formatting issues to take care of.”

     I’ve always had this bizarre K.I.S.S. approach to programming anyway.  I mean, hey, why bother calling two other functions, unset() and array_push() when I can do what I need with a single, local variable?

function st_addAdvanced($buttons) {
    $x=$buttons[21];
    $buttons[21]=’wp_adv’;
    $buttons[22]=$x;
    return $buttons;
}

     Sure, I could’ve used two, and said, “$a=$buttons; $x=a[21]; $a[21]=’wp_adv’; $a[22]=$x; return $buttons;” to save keystrokes…. but… I’d be wasting as much memory as I gained CPU by foregoing the functions.

     But that’s basically my argument about most Developers these days.  It’s a pretty serious can of worms for me to open, because I know I’ll have developers coming from all over to tell me I’m full of it…  Even though I was writing Assembler before their parents ever met, and have some pretty cool — working, useful, debugged — software under my belt…. Joke ’em if they can’t take a f… *shh*

     Seriously, it’s no wonder our CPU and Memory requirements are so ridiculously high these days.  There’s an API or a DLL or a Library for freaking everything!  Layers upon layers, upon more layers, with repositories and snippets and widgets and scripts galore!

     Our Universities teach this method, often telling people, “Do it this way!” without telling people “Why it should be done this way.”  The “simpler” things get, the more abstract they become.
     They’re not churning out programmers and problem solvers.  They’re churning out memorize-and-regurgitate linkers who can’t write code without the assistance of a Visual Integrated Development Environment.

     Hey … Wasn’t the whole point of all this Link Library, Visual garbage to make software development easier?  Faster?  More bug free?

     I used to sit down with vi, edit or Notepad and it’d take me a couple of days to write a program.

     I can use all these neato-keen, new-fangled hooks and VIDEs, and it’ll still take me a couple of days to write a program…
     But it might take weeks to debug.

     Most developers do the same thing… And spend a lot of time setting up their VIDE.  Or getting a bit of code they copied off the internet to work.  Or…

     But, hey … I’m probably full of it, right?

     As employers, educators and policy makers, we need to get back to basics.  Yes, teach how.  But teach why, as well.

Death Toll Rises Due to Firefox

August 24th, 2006 at 6:24 pm by Mark
Tags: , , , , ,

     Nonsense title?  Check this out

     This week, we had Firefox cozying up to Microsoft in order to make a Windows Vista version of their product.

When Microsoft’s open source lab offered to help the Mozilla foundation with getting Firefox to run well on Vista, reactions ranged from skeptical and suspicious to surprised and excited. But in fact, the two teams have already been quietly working together. In this thread, Mike Schroepfer wrote “we are already in contact with your team via email”. The lab time would be helpful, though, according to Mozilla developer Mike Beltzner, who added “yes, we’d definitely be interested in getting some 1:1 support”.

It just goes to show that developers from organizations that are outwardly fiercely competitive are often quite civil with each other when nobody is looking. Perhaps that’s why projects like Apache and Eclipse are so successful.

     Which led me to do the following cartoon…

     Wonder if it’ll chew off its leg when it wakes up in the morning?

Robinhood: Free Stocks for your Referrals!

Sober.Y? No, Probably Inebriated

December 20th, 2005 at 3:25 pm by Sam
Tags: , , , , ,

According to a Reuters news report from early this morning, a 20-year-old German child-porn offender surrendered to Police after getting one of those annoying, fake e-mails from the Sober.Y virus. The message clearly stated that he was being investigated by the German Federal Criminal Police Office, and scared him badly enough that he decided to just go ahead, confess, and turn himself in.

Quoth a spokesman from the Paderborn police: “It just goes to show that computer worms aren’t always destructive … Here it helped us to uncover a crime which would otherwise probably have gone undetected.”

Of course, he failed to mention that blatent stupidity and severe paranoia played the biggest part. Yay!

Adobe Completes Acquisition of Macromedia

December 7th, 2005 at 9:21 pm by Sam
Tags: , , , , ,

On Monday, Adobe released a press release that it had completed its acquisition of Macromedia, Inc. on December 3rd, 2005. This week, they’re starting to actually integrate their product suites, Creative Studio and Studio 8.

So today, it’s time for us to reflect on a few of Macromedia’s crowning achievements…

They single-handedly destroyed ColdFusion after purchasing it from Allaire by forsaking the “small, robust footprint” mentality and adding an antisocial, schizophrenic feature set which didn’t like to get along with itself. This they did instead of fixing its core issue: instability, which prevented its widespread proliferation and acceptance in Enterprise environments. Not to be outdone, they eventually scrapped CF, and released a new “MX” — no doubt a short-hand version George Carlin’s sixth dirty word, adopted by its developers who typed “I hate this new mx!!” in company e-mail — version based on Sun’s ill-gotten, red-headed, bastard-child: JavaServer…

Machine after machine has succumbed to the quagmire that is Macromedia Studio: an obese application which insists on digesting more than its share of the file types you use most — from the tiniest of GIFs and JPEGs to the simplest of JavaScripts and HTML files that you’d quickly open in the Picture Viewer or Notepad — into its esurient entrails, not to be seen for up to ten minutes while its associated application finally opens with a multitude of windows asking you what you’d like to do next. I’d like to see the damn file I tried to open, thank you…

They destroyed a number of popular websites by creating chromeless Flash animations which give you full-page Advertisements inside your current browser window, effectively blocking the majority of content you’re trying to read, and not even your pop-up blocker can stop them…

Good riddance.

It’s pretty clear that Adobe’s going to focus on the creative side, especially merging PDF and Flash. With any luck, they’ll get rid of that ravenous, mangy dog, ColdFusion-MX, and open the door for someone else to write a real CFML server (better yet, a binary interpreter like CLI-PHP!) that doesn’t cost upwards of $1300 Startup and $90K/year in staffing to support it.

Get $20 of bonus stock when you make a deposit on Stash!

CSS & The Whine of the Uberdork

November 17th, 2005 at 6:30 pm by Sam
Tags: , , , ,

Man! While Monty’s on the subject of zealots (which, let’s be honest, is always a great topic), why am I getting so many e-mail complaints and comment spams dogging this site for nothing other than its lack of CSS?

Firstly, I simply don’t care if you’re running the latest piece of animal dung with a name stolen from a deplorable 1982 movie starring Clint Eastwood. You’re a 7% minority by our statistics.

Secondly, if you consider yourself a web designer and you can’t make a page that looks right in all browsers, you need to find another form of employment. Or maybe find a form of employment — the real world detests your kind of attitude.

Thirdly, we have no intention of validating with XHTML 4.01 Strict. Why bother, when what we’re doing works? The page you’re looking at looks exactly the same in every single browser that comes here save for Lynx.

Fourthly, if you have no other complaint about this site than its lack of CSS, then obviously we’re doing something right.

CSS has become the Whine of the Uberdork: “Technical people can be creative, too!”

Regardless of what an Uberdork can do making a Round CSS Layout, it still won’t give them any sense of design skill or color coordination. It expands their possibilities, yes, but for the most part, their sites are still going to be ugly. Form & Function will most always be at odds.

It’s a fact that the *vast* majority of sites carrying those “CSS Certified!” banners DO NOT conform the specification they’re carrying the banner for. I’m one of those freaks who clicks it on every site I see it on, and I rarely hit a single site that conforms with no errors — and I’ve only ever seen two sites at all that got no errors, and no warnings.

With the majority of the published Templates, Skins and Designs out there using CSS, at least 50% of them will not work in one browser or another. Commonly, those designs carry the banner, “Your browser sucks! Download TPFKAN Now!” Logic dictates that they should instead read:

“I don’t like your browser because I’m too much of a zealot to believe real-world statistics showing a super-high IE market share, and thus the entire market share is using an inferior product which does not conform to specifications, and even though 50% of the people in the world are using IE, the specification is what is standard and not what people are using. Therefore, you should go and download TPFKAN because I’m too much a lazy prick to fix my code which is most probably based on an RFC rather than an actual, certified standard.”

 

Thus far, the majority of the CSS styles you see out there are written by Technical Programmers who do it just so they can complain about the limitations of the most popular browser by far (kudos to Mr. Bill).

I have no problem with CSS, but some common sense needs to be used when designing pages with it. We do make use of CSS — a lot of it! We have a tabular structure, all decked out with CSS inside. It’s relatively tidy, and people seem to think it’s a decent design, aside from complaining that it’s not in such-and-such DTD.

As for TPFKAN, I hate it. The best way to screw up IE forever is to install TPFKAN. Actually, an even better way is to uninstall TPFKAN, which will take half of the settings and HKLMClasses with it, just like its mother product did.

People love to complain about how bad Netscape was, and forget that Firefox is just a new version of the same old junk.