Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Node.js: Five Things Every PHP Developer Should Know

I recently started working on a few Node.js applications. Coming most recently from PHP (and Drupal in particular), I found the transition to Node.js to be surprisingly easy. Pleasurable, in fact. But I had to learn to think differently about a few things.Below I list the five things I think every PHP developer should know about Node.js.1. Node.js Is Built On Chrome's JavaScript EngineGoogle's browser, Chrome, has a notoriously fast JavaScript engine called V8. And this JavaScript engine can be cleanly separated from the web browser. Node.js is built on V8. This is one of the main reasons why ...

9,818 0       PHP DEVELOPER FEATURE NODE.JS


  The seven rules of Unobtrusive JavaScript

I've found the following rules over the years developing, teaching and implementing JavaScript in an unobtrusive manner. They have specifically been the outline of a workshop on unobtrusive JavaScript for the Paris Web conference 2007 in Paris, France. I hope that they help you understand a bit why it is a good idea to plan and execute your JavaScript in this way. It has helped me deliver products faster, with much higher quality and a lot easier maintenance. 1. Do not make any assumptions (JavaScript, the unreliable helper) Probably the most impo...

2,774 0       JAVASCRIPT TIPS FEATURE


  Why I Use Vim

I've been using MacVIM as my editor of choice for a couple of years now, yetin many ways I still feel like a beginner. Every day I am learningmore and more about my editor, but it takes a conscious effort to become proficient withan editor like Vim. Here's why I make that effort.Editors are something that are very personal; they have to fit with your ownwork flow approach to programming. If you have ever stopped to think about it,the way each person goes about editing text is quite different. I frequentlypair program with colleagues and I find it amazing, and sometimes frustrating,to see how o...

3,449 0       FEATURE VIM EDITOR


  Why I Hate Android

Why do I hate Android? It’s definitely one of the questions I get asked most often these days. And most of those that don’t ask probably assume it’s because I’m an iPhone guy. People see negative take after negative take about the operating system and label me as “unreasonable” or “biased” or worse.I should probably explain.Believe it or not, I actually don’t hate Android. That is to say, I don’t hate the concept of Android — in fact, at one point, I loved it. What I hate is what Android has become. And more specifically,...

2,825 0       ANDROID HATE FEATURE


  Why I switched from Ruby back to C++

After two months of Sol Trader development in Ruby, I took a difficult decision last Wednesday morning: I’ve decided to rewrite the game code from scratch in C++. Let me explain my reasons. If you'd like to receive announcements about Sol Trader or be part of the beta program, sign up at soltrader.net.Why I did itSlow frames: When working with Ruby, I use the excellent Gosu library to do all my game specific coding. This initially worked great, but occasionally I’d just get slow frames coming up. My game is timed to run at 60 frames per second, which means that each frame should...

2,519 0       C++ RUBY ADVANTAGE FEATURE


  The Web Is Wrong

The Analogies Are WrongOriginally, web pages were static documents, and web browsers were static document viewers; there was text, some formatting, and images—if you could pay for the bandwidth to serve them. Hyperlinks were the really big thing, because they were the main point of user interaction—but what a powerful thing they were, and still are.Then along came CGI and Java, and the web was transformed: all of a sudden, a web browser became a way to serve interactive content to users. A web page was no longer just a document, but a portal to a living, breathing world. You your...

2,477 0       WEB FEATURE STATIC DOCUMENT CSS TEXT


  Diving Deeper into HTML5 Offline Browsing

Recently, I published an article on one of the new features in HTML 5 called Offline Browsing  in HTML5 with ApplicationCache.The response to that article was good, and I was asked to expand on some further points including:how to decide on what files to cachethe implications of caching those filesdebugging the ApplicationCacheSo, that’s where this article will start: where the last one finished.  If you haven’t, you should probably read the previous article before this one.Let’s dive into what resources you and should not add to the ApplicationCache.What Should ...

2,624 0       HTML5 FEATURE OFFLINE BROWSING NEW BREAKTHROUGH


  I don’t like the Ruby 1.9 hash syntax

There, I said it, I don’t like it. And I don’t know why you do either.I assume you like it anyway, everyone else I talk to seems to. My heart sank over and over again whilst I was at the recent RailsConf and saw respected rubyist after respected rubyist using the new Ruby 1.9 hash syntax in their presentations.I just don’t get it.But I’m not one to just moan. I plan to justify my feelings. Then maybe you can tell me why you do like it?My friend the hash rocketI like the hash rocket (not least because it’s a rocket) and I know it’s not going away. Howev...

7,818 0       RUBY FEATURE 1.9 HASH