Building a Dungeon Generator in C#

Posted In Programming
Screen Shot 2015-02-17 at 2.57.03 PM
Procedural dungeon generation is a fun exercise for programmers. Despite the crude interface, such games continue to spark interest. A quarter century ago, I wrote a dungeon generator in procedural Pascal; now I’ve taken that old code and converted it to C#. (It’s amazing just how fast it runs on a five-year-old i7 950 PC with 16GB of RAM.) If you want to follow along, you can find my code for the project on SourceForge.  The first part of the… continue…

JavaScript Tops GitHub’s Most Popular Languages

Posted In Programming
GitHut Graph
What are the top programming languages on GitHub? According to GitHut, a website that attempts to estimate and visualize the repository’s most popular languages, JavaScript topped the list in the fourth quarter of 2014, followed by Java, Python, CSS, PHP, Ruby, C++, C, and Shell. With roughly 3.4 million users and 16.7 million repositories, GitHub offers a comprehensive view into not only the most popular languages, but which ones are on the rise; while the top five languages on GitHut’s… continue…

JavaScript Tops Popular Languages, As Swift Rises

Posted In Programming
Developers assume that Swift, Apple’s newish programming language for iOS and Mac OS X apps, will become extremely popular over the next few years. According to new data from RedMonk, a tech-industry analyst firm, Swift could reach that apex of popularity sooner rather than later. While the usual stalwarts—including JavaScript, Java, PHP, Python, C#, C++, and Ruby—top RedMonk’s list of the most-used languages, Swift has, well, swiftly ascended 46 spots in the six months since the firm’s last update, from… continue…

Which Programming Language Pays the Best?

Posted In Looking in Tech
What programming language will earn you the biggest salary over the long run? According to Quartz, which relied partially on data compiled by employment-analytics firm Burning Glass and a Brookings Institution economist, Ruby on Rails, Objective-C, and Python are all programming skills that will earn you more than $100,000 per year. Java, C++, JavaScript, C, and R also topped the list, routinely racking up salaries of $90,000 and above. Click here to find programming jobs. “The dataset isn’t perfect, it’s… continue…

5 Programming Languages Marked for Death

Posted In Looking in Tech
matthi Shutterstock
As developers embrace new programming languages, older languages can go one of two ways: stay in use, despite fading popularity, or die out completely. We predict the following languages will likely die: Perl There was a time when everyone seemingly programmed in Perl. But for those of us who used the language regularly, there was something about it that didn’t seem right. One programmer I knew called it a “piecemeal” language, because it seemed as if the creators had just… continue…

Are Python and Objective-C Worth Learning?

python example
Last week’s article on the five programming languages you’ll need next year (and beyond) didn’t include two important languages: Python and Objective-C. Python’s exclusion sparked a passionate response from some readers, to say the least, and led us to craft a follow-up to emphasize Python’s importance to the programming world. Python is mature (the first version, created by a computer scientist named Guido van Rossum, was released in 1991). Google, where van Rossum worked for several years, has embraced Python… continue…

5 Programming Languages You’ll Need Next Year (and Beyond)

We’ve reached a bit of a turning point in the world of programming. Ten years ago, programmers were moving into dynamic languages. To many of us, those languages seemed like a bit of a fad, even if they made programming easier. But those languages endured, and today we’re developing software with a combination of old and new tools. That creates the potential for confusion: What languages are best to learn if you want to stay employed? Before diving into which… continue…

Coding Challenge Wrap-Up: Who Won the Map

Roman Trade Network
Compared to our previous coding challenges, May’s was a modest affair, with just three entries coming in from Rick Matter, Jon Pattinson and Jay Nagel. And, despite opening the entries to include Delphi, Go and Python as well as C/C++, Java and C#, all three were written in Java! (You can find all the competition files here.) In this challenge, you were given a 20×20 map that contained 20 trading islands, each occupying a square. Each island was a trading… continue…

How to Process an Image in Code

I’ve recently begun working on a space-themed game that will be set in a galaxy and I’ve decided to create the background based on a photograph. I generate the background by displaying a 100×100 grid of colors, with the color of each block determined by the brightness of the corresponding section of the photograph. The image I started out with is a 600 x 600 pixel photograph of a spiral galaxy from NASA (above), which I divided into a 100×100… continue…

May’s Programming Challenge: Resource Trading

Posted In Living in Tech
Roman Trade Network
In this problem, you are given a 20×20 map that contains 20 trading islands, each occupying a square. Each island is a trading port for gold, iron and wood. The map also contains a few reefs and uninhabited islands. The goal is simply to sail a ship from the top left square (0,0) and eventually end up at the bottom right (19,19) having earned as much as possible. Click here to find Java developer jobs. Your ship can sail to… continue…