Programming

How to Keep Your Code From Destroying You 486

An anonymous reader writes "IBM DeveloperWorks has a few quick tips on how to write maintainable code that won't leech your most valuable resource — time. These six tips on how to write maintainable code are guaranteed to save you time and frustration: one minute spent writing comments can save you an hour of anguish. Bad code gets written all the time. But it doesn't have to be that way. Its time to ask yourself if its time for you to convert to the clean code religion."
Programming

A Windows-Based Packaging Mechanism 451

FishWithAHammer writes "As part of my Google Summer of Code project, I'm working with WinLibre to develop a Debian-like software download system for free/open source software on the Windows platform. My reasoning is that open source software suffers from poor presentation. Most computer laymen, even those aware of open source software, often don't have any idea how to go about looking for it, but would use it if it were easier to access. What I have proposed is both a Debian-style packaging mechanism (capable of using Windows Installer MSIs or not, as the user wishes) and a software 'catalog' that takes the best aspects of Synaptic and Linspire's Click-N-Run system. Seamless, simple installation and removal of programs in as straightforward a way as apt-get (there will be a command-line tool as well). I'm posting to Slashdot to get the ideas of you lot who, while you may not be the target audience, can certainly provide insights that can be of value." Read on for more of this reader's ideas and questions.
Software

Is Parallel Programming Just Too Hard? 680

pcause writes "There has been a lot of talk recently about the need for programmers to shift paradigms and begin building more parallel applications and systems. The need to do this and the hardware and systems to support it have been around for a while, but we haven't seen a lot of progress. The article says that gaming systems have made progress, but MMOGs are typically years late and I'll bet part of the problem is trying to be more parallel/distributed. Since this discussion has been going on for over three decades with little progress in terms of widespread change, one has to ask: is parallel programming just too difficult for most programmers? Are the tools inadequate or perhaps is it that it is very difficult to think about parallel systems? Maybe it is a fundamental human limit. Will we really see progress in the next 10 years that matches the progress of the silicon?"
PHP

Optimize PHP and Accelerate Apache 191

An anonymous reader writes "As the load on an application increases, the bottlenecks in the underlying infrastructure become more apparent in the form of slow response to user requests. This article discusses many of the server configuration items that can make or break an application's performance and focuses on steps you can take to optimize Apache and PHP."
Programming

VM Enables 'Write-Once, Run Anywhere' Linux Apps 482

An anonymous reader writes "A startup will soon launch 'a kind of holy software grail,' according to an article at LinuxDevices. The dual-licensed technology is claimed to enable more or less normal Linux applications to run — without requiring recompilation — under Windows, Mac, or Linux, with a look and feel native to each. 'As with Java, Lina users will first install a VM specific to their platform, after which they can run binaries compiled not for their particular OS, but for the VM, which aims to hide OS-specific characteristics from the application. Lina comprises a platform-specific application that virtualizes the host PC's x86 processor... A lightly modified Linux kernel (2.6.19, for now) runs on top of the VM. Under the Linux kernel is a filesystem with standard Linux libraries modified to map resources such as library, filesystem, and system calls to analogous resources on the host platform.' Further details, including an entertaining video or two are at OpenLina.com"
Programming

Open Source vs Affordable Indie 3D Game Engines? 152

TBBScorpion asks: "Lately I have been investigating 3D game engines. I was mostly paying attention to open source engines like Ogre3d, Irrlicht, Crystal Space 3D, and the like. Then I found out about cheap Indie licenses for commercial game engines like Torque Game Engine ($150), Torque Game Engine Advanced ($295) and the C4 Engine ($200 + free upgrades). I found a list of top commercial and open source game engines at devmaster.net in case anyone is interested (I didn't want to take the time to list all the engines, but there are more good ones that I did not list on this page). Now for my questions. Now, here's my dilemma. Which of the engines are worth investing in? Should I buy an indie license or hold out for open source? Or should I start with an indie engine and switch later if open source catches up?"
Programming

OLPC Game Jam for an XO Laptop 72

An anonymous reader writes "The OLPC project has announced a three-day game development jam session is scheduled to begin June 8 on the campus of Olin College, an engineering school in Needham, Massachusetts. 'The game jam is an opportunity for developers to create new types of games that rely on features of the XO's design such as mesh networking between nearby users, an integrated still or video camera, and a tablet mode for mobile gaming. Beyond creating games that teach specific tasks like counting or reading, OLPC hopes the contest will produce templates that allow kids to build their own games, according to OLPC's development guidelines.' The grand prize is a free OLPC laptop. All games created at the weekend-long event will be licensed under the GNU General Public License, and posted on the SourceForge site."
Databases

8 Reasons Not To Use MySQL (And 5 To Adopt It) 288

Esther Schindler writes "Database decisions are never easy, even — or maybe especially — when one choice is extremely popular. To highlight the advantages and disadvantages of the open-source MySQL DBMS, CIO.com asked two open-source experts to enumerate the reasons to choose MySQL and to pick something else. Tina Gasperson takes the 5 reasons to use MySQL side, and Brent Toderash discusses 8 reasons not to. Note that this isn't an 'open source vs proprietary databases' comparison; it's about MySQL's suitability in enterprise situations."
Mozilla

Firefox 3.0 Makes Leap Forward 401

Kurtz'sKompund writes "Mozilla has announced that Firefox 3.0 has passed a major milestone! The Places feature has been added to the alpha client slated for release next week. Places is a complete re-work of the bookmarking and history browser functions. It was at one point slated for Firefox 2.0, but will instead see release in Mozilla's next major version. '"We enabled the Places implementation of bookmarks on the trunk," said the Places team in a post to the Mozilla developer center blog. "Although there is still much to be done, this is an important milestone for us." Firefox 3.0 alpha 5 is scheduled to launch June 1. Because Places uses the open-source SQLite database engine to store and retrieve bookmarks and history entries, it's incompatible with earlier Firefox editions' bookmarks. Alpha users must convert their existing entries, Mozilla developers said."
Programming

Facebook Opens Pages to Outside Developers 76

prostoalex writes "Facebook is now allowing third-party developers to create pages within the site. Developers can use a combination of the Facebook API and a subset of HTML to create interactive pages accessible from within Facebook. Users retain complete control over which applications they want to have installed, and which applications they want to see on other people's profile. Developers can build on top of Facebook's social grid, and in case of a popular application gain distribution through Facebook newsfeed."
Role Playing (Games)

MMOG Industry Community Vet Speaks Out 61

Sanya Weathers, known for many years as Tweety, was the Community Manager for Dark Age of Camelot essentially since that game's launch. Known throughout the games industry as truthful, caring, and innovative, she almost created the position of Community Manager out of whole cloth. Many elements of Massively Multiplayer communities we take for granted today originated at Mythic in Sanya's hands. Now doing work freelance, she has time to blog about her experiences keeping Massive gamers happy. It is entitled Eating Bees, after a Penny Arcade strip on the subject of forum management. So far she has two posts up, one looking at what professionalism looks like in the position, and a hilarious fictional day in the life for a CM. "Bob forwards Gertrude's email to Jake, a programmer. Jake is not the one who coded the original element on which Gertrude's system is based. THAT guy, Wayne, is somewhere in the Caribbean coked up along with a bunch of strippers, where he has been ever since he cashed his FunFactory stock options, opened his own studio, and sold THAT one to MegaCorp for millions of dollars. Wayne was also a self-taught genius who adhered to no known coding formalities and whose comments were in haiku. Since Wayne left, approximately two dozen programmers of various levels of ability have added layers of complexity. Jake is very young and enthusiastic, but his joy at finally being in the gaming industry is starting to dim from coping with a ten year old pile of what is called "spaghetti code.""
Programming

Performance Tuning Subversion 200

BlueVoodoo writes "Subversion is one of the few version control systems that can store binary files using a delta algorithm. In this article, senior developer David Bell explains why Subversion's performance suffers when handling binaries and suggests several ways to work around the problem."
Programming

Should Games Be More Boring? 180

An anonymous reader writes "At Gamasutra, serious games creator Ian Bogost is making the case that video games should be more mundane, particularly discussing of Nintendo' Brain Age: 'It's certainly a very different kind of game from Halo or even Miyamoto's own Zelda series, games that allow the player to inhabit complex fantasy worlds. Instead, much of Brain Age's success seems to come precisely from the ordinariness of its demands.' Would games become more accessible if they tapped into everyday things a little bit more, as opposed to spiralling off into fictional realities?"
Slashback

Update On Free Linux Driver Development 272

Remember the offer Greg Kroah-Hartman made earlier this year, to get Linux drivers written for free for any company that wanted them? Now an anonymous reader points us to an article up on linuxworld with an update to this program. Greg K-H, who leads the development of several kernel subsystems including USB and PCI, admits that the January offer was a bit of "marketing hype" — but says it has brought companies and developers together anyway. Twelve companies have said "yes please," one driver is already in the kernel, and five more are in the pipeline.
Security

Top 15 Free SQL Injection Scanners 103

J.R writes "The Security-Hacks blog has a summary of the 15 best free SQL Injection scanners, with links to download and a little information about each one. The list is intended asan aid for both web application developers and professional security auditors."
Games

User Created Content is Key for New Games 167

An anonymous reader writes to tell us that recently Valve Software's Doug Lombardi has stated his strong belief that user created content is a very important part of games in the near future. "'I would argue that it's the biggest component those guys have to get over if they want online to matter.' 'Half-Life 1 was okay as a multiplayer game and Team Fortress Classic was really good, but Counter-Strike kicked both their asses no question. And that came from a kid going to college in Canada and another kid going to high school in New Jersey, who had our code and thought it would be cool to play our game.'"
Programming

MIT Media Lab Making Programming Fun For Kids 318

An anonymous reader passed us a link to an article on the Boston Globe's website, talking up efforts by MIT to make programming a non-threatening part of grade-school education. MIT has developed a new programming language designed to encourage experimentation and play. Called Scratch, the project eschews manuals and high-level concepts in favour of approachability. "Efforts to make computer programming accessible to young people began in the late 1970s with the advent of the personal PC, when another programming language with roots at MIT — Logo — allowed young people to draw shapes by steering a turtle around a screen by typing out commands. But the path to mastering most programming languages has been strewn with obstacles, since students needed to figure out not only the underlying logic but also master a brand new syntax, observe strict rules about semicolons and bracket use, and figure out what was causing error messages even as they learned the program."
The Internet

Web 2.0 Distracts from Good Design 176

stevedcc writes "The BBC is running a story about web 2.0 and usability, including comments from Jakob Nielsen stating "Hype about Web 2.0 is making web firms neglect the basics of good design". From the article: "He warned that the rush to make webpages more dynamic often meant users were badly served. Sites peppered with personalization tools were in danger of resembling the 'glossy but useless' sites at the height of the dotcom boom."
Software

Cryptic Studios Open Sources Animation Tools 43

GameDev.net reports that Cryptic Studios (makers of the Massive title City of Heroes) has released a powerful animation tool under the GPL. Called CrypticAR, for Cryptic Animation Rig, the software will allow animators to bring 3d models to life via a toolkit of scripts and rigs. "'Our goal is to foster a community of animators by providing them the power to generate animations without having to worry about supporting a toolset. Since we were already developing the rig for our core technology team, we decided to release it to the public under the GNU GPL,' said Shayne Herrera, Art Development Director for Cryptic Studios. 'We feel that the development and gaming communities will benefit greatly from a professional tool like the Cryptic AR.'"

Slashdot Top Deals