Author Archive for ‘ Michael Herndon’

PHP is the new PERL, 22 reasons PHP is hard to work with

Posted Thursday, June 5th, 2008 by Michael Herndon

PHP was one of the first languages that I learned when web design was my primary focus as a career. It seemed to be simple with plenty of examples on how to use it as well as plenty of code to grab to use on the fly in order to get the job done so that I could concentrate on what I loved the most, doing design. However along the way, I somehow got sucked into the programmer paradigm and ended up being a professional code monkey.

As such, my exposure to quite a few other languages, features, and coding paradigms have drastically increased as I’m a sucker for new technology and things of the geekified nature minus star trek, dungeons & dragons, and obsessions with super models. Now PHP seems to be more of a thorn in my side as a programmer than anything. Since I do have working knowledge of the language, especially its Object Oriented Features, magic methods, its various editors, extensions, and its limitations and quirks, I tend to get drawn into PHP projects. Working on a PHP project makes me long for a good rails or asp.net project because PHP just makes me feel dirty as a programmer.

PHP has gone the way of PERL: somewhat usable, a few good features and scripts, but stagnating with its ability to push the language itself to compete with other modern languages.

So what makes PHP so bad to work with? (more…)

Apple iTouch, the New PDA

Posted Friday, March 28th, 2008 by Michael Herndon

Let’s get crazy for a moment and declare the iPod touch the New Breed of PDA, a personal digital assistant, not to be confused with public display of affection, even though there are few zealous Apple proponents who might blend the two for their obsession with Apple devices. The iPod touch or iTouch is essentially the iPhone, minus the phone and things like Edge, but keeping the cool touch screen and allowing for connectivity not just through iTunes, but Wi-Fi as well. With the iTouch having the strength of the new iPhone SDK, the tech savvy jailbreak applications ranging from NES (Nintendo Entertainment System) emulators to Apollo Im, and even possible enterprise support similar to its cousin the iPhone, like syncing with a Microsoft Exchange Server; what is to prevent this extendable portable music player from becoming a full blown PDA device?

(more…)

Ramping Up .Net For BDD and Unit Testing With Gallio, NBehave, and Moq

Posted Wednesday, March 19th, 2008 by Michael Herndon

Unit Testing is a word that has inspired some or has become a bane for others. TDD, test driven development, has changed the way many people write their code, and others… not so much. Then a new catch phrase appeared on the test scene, BDD, behavior driven development. So instead of tests, you’re writing specifications of expected behaviors and observations in code, that will also hopefully create your specifications documentation for you. Also there is this notion of doing story boards as well.

Ruby has Rspec built ontop of a well oiled web application framework known as Rails. So where does leave .Net developers, especially with the Asp.Net Mvc Option/framework on the horizon? I’ve been keeping an eye on .net tools that would allow or be the Rpec for .net. Things like NSpec and NBehave popped up on Google, but there was really no documentation, read me’s or even blog postings to demonstrate how to use these libraries. However a cool mock library named Rhino mock became the rage to heal the pain of NMock (but geeze man, all that "Replay" stuff is confusing, totally ignoring the KISS principle). And MbUnit, a unit testing on crack, which built on top of other Xunit frameworks, seemed to be stagnated.

Enter 2008, the year of open source and openness for developers of .Net. MbUnit has been hard at working on Gallio, the neutral test platform, NBehave has merged with Nspec and Behave# and have an April 4th release date, but you can still play with the bits. Even Microsoft is doing the release often and having open input on the Asp.Net Mvc framework. A new cooler mock framework has come out known as Moq that uses the c# 3.0 extensions and lambdas, which Scott Hanselman gave a great overview about.

(more…)

IE 8 Beta 1 Released at Mix Keynote

Posted Wednesday, March 5th, 2008 by Michael Herndon

IE 8 Beta 1 will be released after the keynote, which is still currently going on as I write this. IE has been play catching up of late, but it seems IE 8 has not only caught up, but is now pushing the envelope with user interaction with the browser, that just might make the browser loveable again.

IMG_0839

(more…)

Arriving At Mix 2008 (Las Vegas)

Posted Wednesday, March 5th, 2008 by Michael Herndon

Technically its 4am EST, but here it’s 1am (and I pretty much live on a west coast clock, even though I was born and raised in Va), which is prime nocturnal developer time to get something productive done without interruption. So I’m sitting at the Starbucks at the Egyptian style Luxor hotel here at the 24 hour Starbucks (take notes Charlottesville, we need more 24 hour places for geeky people like me. Even Richmond had a 24 hour gym that was like almost a quarter of the price of the local gyms that close at 9 PM in Charlottesville), hearing the rambling of someone to spout something that resembles a cheesy pick up line and echoing of random strangers walking by.

IMG_0827

Mix 2008

But lets face it, the real reason I’m here is to find out all about the new and upcoming technologies that will hopefully make life easier not just for the developer, but you; the reader, the end user, the client, the father, the single mother, the person in the daily trenches that keeps things running smooth.

Unfortunately, new technology does not always lead to make your life easier, in fact it often makes you dependent or duplicate processes that should other wise should be done once. Or maybe you are in that organization that hacks together things so you’re ending up duplicating data in multiples places, chained to your cell phone that was supposed to bring you freedom, and using the latest and greatest software that is seriously lacking in features.

However, the developers at osc (opensource connections)  strive to use technology for the benefit of our clients and end users, and find ways of using new technologies to fill in the gaps that old technologies or bad design often leaves behind.

Tomorrow Microsoft is supposed to unveil the uber secret workings of IE 8 (Internet Explorer 8), have a keynote that includes Ray Ozzie (the guy replacing bill gates at Microsoft), Scott Gutherie, and Dean Hachmovicth.

(more…)

Css Fury: Part 2 Adjacent Selectors, Transverse Dom With CSS

Posted Friday, February 22nd, 2008 by Michael Herndon

Read Css Fury: Part 1 the star/asterisk selector

One of the "wicked cool" but rarely used parts of CSS selectors is the Adjacent/Sibling Selector . IE 6 does not support this selector. However IE 7, Firefox, and Safari browsers do support this feature. So using this selector can be a good way of using CSS styles to enhance the visual experience while degrading gracefully in older browsers (which gives the user a good reason to update to one that does support CSS 2.1, without affecting the functionality of a site).

An Adjacent Selector basically allows you to select sibling nodes within a given node of the DOM. An example of what an adjacent selector looks like is below.


//css
p + p {
    background: #ccc;
}


// html
<p>I am paragraph one with a normal background. </p>
<p>I am paragraph two with a slightly smoke gray background. </p>

(more…)

Some OpenSource Ideas for .Net

Posted Thursday, February 21st, 2008 by Michael Herndon

Have you ever felt there is just simply not enough time in the day to get around to doing everything that needs to be done. It’s possible that you may be reading this blog posting totally clueless about what is going on .Net (Microsoft’s solution to "write it anything you want, c#, ruby, vb.net and it works on windows platform"). Well the big MS has dumped a ton of new technologies(while some are totally not new concepts) and Projects and there is more to come. From Linq (Language Integrated Queries) to WPF which all vector based graphics over the typical pixel based windows forms, to Asp.Net’s MVC add on project (which is very rails like, no surprise there) to SilverLight, and even supporting projects like Iron Ruby. And there is no slowing down in sight.

(more…)

Css Fury : Part 1, The * (star/asterisk) Selector

Posted Sunday, February 10th, 2008 by Michael Herndon

CSS 2.1 which is supported by Firefox, safari, and almost completely supported by IE 7, has what is known as the selector syntax. However IE 6 only supports a minimal amount of the CSS selectors, with that being said, you should use selectors wisely in such a way that degrades gracefully in older browsers.

Even though CSS have been around for a while, there are people are still using tables for layout design. However the ones forwarding the web, with use of a div layout, are finding new ways and combinations of CSS which results in very cool results. For instance, zeroing out every element on the page with a few lines of code. This does work in IE 6.


* {
padding: 0;
margin: 0;
}

(more…)