10 battles raging for the hearts and minds of developers

PHP vs. Node, SQL vs. NoSQL, compiled vs. scripting -- the passionate debates and technical rifts that define programming today

security shield protect 100314307 primary.idge

Whether you think it's wired into the human mind or an inevitable product of society's formation, dualism defines much of our lives: Communism vs. capitalism. Savory vs. sweet. Passing the ball vs. running the ball in football. Everywhere we look, pairs are locked in an eternal battle, presenting us with myriad opportunities to define ourselves by which side of the line we favor at any given time.

This may be even more evident in the computer industry where technologies -- competing for our hearts, minds, and checkbooks -- define themselves often by the differences they offer from competing solutions. On one side there is X; on the other, definitively not X. And the fanboys line up, taunting and baiting the other side. Without these battles, without these great arguments and choices, the repositories would have merged long ago and we would have moved on, perhaps with a little less innovation than we might otherwise like.

What follows are 10 of the most interesting battles raging among developers today. With each new project we undertake, we're faced with the fundamental questions that underlie the differences in these technologies. Do we favor simplicity or correctness? Open source or corporate support? Brackets or whitespace? Like Yin and Yang, these questions define the great trade-offs enterprise developers face today.

Dev tech battle No. 1: PHP vs. Node.js

Never loved by computer scientists, PHP was embraced by the masses who wanted to add a little intelligence to a website. These hordes have given us amazing frameworks like WordPress, Drupal, Joomla, and more. Much of the Web is built on PHP.

Now there are cracks in the model. The youngsters are infatuated with Node.js, a server-side mechanism programmed in JavaScript. Suddenly, programmers can write code that runs on either the client or the server. There's no need to learn two languages. Node.js has its idiosyncrasies, but already there are amazing frameworks that offer features on par with the best PHP stacks.

Will the next generation embrace the simplicity of writing JavaScript and only JavaScript? Or will they cling to the ease of embedding code within HTML? Those who like JavaScript will almost certainly move toward Node. Those who want to use the stable stacks from PHP workhorses like WordPress or Drupal will stick out the Node.js storm.

Dev tech battle No. 2: MySQL vs. PostgreSQL

The two great open source databases have been locked in combat for close to two decades with no end in sight. On one side, MySQL has captured the lion's share of the Web's basic workload, thanks in part to its ease of installation and configuration. On the other side, PostgreSQL has long promised a better transaction mechanism for protecting data in the face of glitches. The two have been growing toward one another, as MySQL now offers improved transaction capabilities and PostgreSQL has simplified its startup hurdles.

The old differences still define today's battle lines. PostgreSQL is viewed as being more "reliable" and MySQL as more "speedy," but the distinctions are more ghosts than reality. Old habits die hard, and these two packages may be competing for mind share for another 20 years, with PostgreSQL getting a little wind in its sails of late from hipster hackers and Oracle haters alike.

Dev tech battle No. 3: Swift vs. Objective-C

Apple has always been the lone redoubt for Objective-C, the clean, lean mix of C and object-oriented programming. But times change and now Swift offers a modern syntax free of many of the annoyances that have kept programmers from building code for Apple's platform. Sure, the folks who learned C in the crib don't mind the asterixes and the multiple files, but the newcomers raised on Python, Ruby, and even Java are driven to distraction.

Will Swift's clean structure capture the mind share of Apple developers? Will Python and Ruby developers rush over to iOS and crowd out old-guard Objective-C hackers? Or will the world be dominated by the amazing efficiency of tried-and-true Objective-C programmers? Will the new libraries and features be coded in Swift or Objective-C? Apple has said publicly that both can co-exist. So developers will almost certainly cluster to the familiar. Those who love Python or Java will move toward Swift. Those who grew up with C will stick with Objective-C.

Dev tech battle No. 4: Python vs. Ruby

Long ago, a scripting language was like chewing gum for software. If you needed to glue together big programs, you could write simple code in the OS and be done.

Somewhere along the line, the people who loved these little languages started building big programs that proved useful. Ruby exploded when it was married with the Rails framework -- the combo made it simple to tie a sophisticated front end to a database with merely a few lines of code.

Python, meanwhile, found its own fan club in the sciences. It is now used frequently in labs everywhere. And with statistical analysis breaking out in every corner of the corporate world, pointy-headed Python is gaining steam with the data science “labs” of the business realm.

Will the next generation be drawn in by the simplicity of Python framing the code with whitespace? Will Ruby expand beyond Rails? Are Python's built-in functions a better bet than Ruby's “blocks”? Is it cooler to align yourself with the scientists or the Web hackers? Maybe the battle lines have already hardened for all time, with the Web gurus sticking to their Rails guns and the scientists cloistered up in Python's libraries.

Dev tech battle No. 5: SQL vs. NoSQL

On one side of the aisle are the databases that your grandparents used. The data falls nicely into tables and the database will execute exotic queries to match together the tables and find the right rows. On the other side are the NoSQL upstarts, which make grand promises about speed and parallelism, with the little caveat that every once in a while things might go south and the database will send back wrong or inconsistent answers.

Are the belts-and-suspender approaches of traditional databases with traditional transaction protection the right thing for your data? Or do you want a faster, cheaper, more modern tool that will spread the load effectively over a cluster of machines? Sure, consistency and accuracy are important to banks, but what about a table full of random blather from the Internet? Does everything need the best protection that data scientists can deliver? The answer (often): Those who need absolute consistency like banks and airlines go with traditional SQL databases with real transactions. Everyone else chooses the speedy, simpler, scalable NoSQL.

Dev tech battle No. 6: JavaScript vs. Dart and Go (or maybe Google itself)

JavaScript may have fans in the cubicle farms of Google, but you wouldn't know it from the endless barrage of replacements. First, there was GWT (Google Web Toolkit), a clever cross-compiler that turned Java into JavaScript. If you've ever looked at the stacks of code for Gmail, among other Google products, you'll know it wasn't handcrafted in JavaScript. Then Google created Dart and Go, two languages that might replace JavaScript in the browser one day.

Both Dart and Go have their hearts in the right place. They fix major glaring problems with JavaScript and the browser stack, but many people don't care. JavaScript on the server has been exploding, thanks to Node.js. Who needs anything else?

For all its power, Google faces an uphill fight against a huge army of programmers who learned JavaScript long ago and now want to rewrite their server stack in it. It's hard to fight inertia. But perhaps the superlatives that early adopters have been extolling about the cleaner syntax and simplified models of Dart and Go will become too loud for the masses to ignore.

Dev tech battle No. 7: Chef vs. Puppet

Long ago, a corporation had a few servers in the backroom and installing new software was simple. Then the cloud exploded and every website worth anything ran on a cluster of machines that needed to be kept running. That meant doing things N times to the N machines and not messing up. Chef and Puppet are two tools that have arisen to help admins run an assembly line for configuring cloud machines.

Devops specialists devoted to Chef champion the configuration management tool's flexibility in letting you write instructions for creating machines in Ruby. "You get the power of Ruby for free," they say. Puppet also configures the cluster but with instructions specified in a JSON-like language focused on doing one thing well. While newer versions of Puppet allow a bit of Ruby, the basic language remains dominant. Is it better to create a custom syntax for the job or give people the power (and danger) of a wide-open, general-purpose language?

Dev tech battle No. 8: Hudson vs. Jenkins

The idea of continuous integration was a hack to automatically test and deploy all the new code committed to a repository. When it started to work well, people began to fight over its legacy.

On one side of the battle is Hudson, the branch that is officially part of the Eclipse Foundation and run by many of the people at Oracle who inherited the code from Sun. They bring top-notch, corporate attitude to building a stable, serious tool for enterprises. On the other side is Jenkins, the home of many of the original hackers who love to experiment. The Jenkins tree seems to evolve much faster with new versions appearing as often as every week.

The battle between Hudson and Jenkins is emblematic of a greater battle throughout the developer world, between a steadfast devotion to careful testing and stable code versus more rapidly evolving features, faster fixes for bugs, and greater input from the developer community at large.

Dev tech battle No. 9: MySQL vs. MariaDB

Speaking of battle lines drawn around Oracle-supported projects, let's not forget the MariaDB schism with MySQL.

When Oracle bought MySQL, open source fans were afraid of what might come from a company built on a powerful, proprietary tool. Their fears have largely been unfounded. But that hasn't stopped Monty Widenius, one of the founders of MySQL, from striking off on his own with a fork. MariaDB offers much of the same syntax and features as MySQL, but now it comes with a few new features and storage engines that run a bit faster, at least in the eyes of the MariaDB lovers.

Will the market choose the scrappy, new fork, or will it stick with the big, dominant code base that's served us so well over the years? Will the world choose a small, ragtag gang of innovators or a big, solid corporation devoted to stability?

Dev tech battle No. 10: Compiled vs. scripting

The distinction between compiled and scripted code isn't as distinct as it was before Just-In-Time compilers and optimizers, but it still matters to programmers. Do they want their code to be prodded, massaged, optimized, and translated into simple machine code? Or do they want a more casual approach where the computer interprets the code at runtime, sometimes allowing the code to modify itself?

On one side are the classic languages like C and Java, supported by elaborate development suites. On the other are simpler scripting languages like Python, Ruby, and JavaScript that can be created in a text editor and pushed immediately into a small runtime interpreter. To make matters more complex, there are hybrid solutions like Groovy, a script-ish language that runs in the Java Virtual Machine, itself a tool that does plenty of runtime optimization. Perhaps the distinction is fading, but that doesn't stop people from arguing about whether the elaborate work of the compiler is really worth all of that effort.

Related articles

This story, "10 battles raging for the hearts and minds of developers" was originally published by InfoWorld.

Copyright © 2014 IDG Communications, Inc.

The 10 most powerful companies in enterprise networking 2022