Monday, March 21, 2016

What programming language should I learn next?

The latest programming language rankings came out last month, and the most popular languages have not changed much since last time, nor have they changed much over several years.

When I think about learning a new programming language, I think about several things:
  • How easy is this language to learn?
  • How will I learn the language? In a community college class, online tutorials, or just study the manual?
  • What can I use this language for?
  • What tools does this language require? Can I install it on my computer?
Here is a summary of this information for the most popular programming languages.

LanguageDifficultyUsed forLearn at
JavaScriptEasyWeb clientCollege
JavaMediumGeneral purpose, AndroidCollege
PHPEasyWeb serverCollege
PythonEasyGeneral purpose, scripting, QA, ITCollege
C#DifficultWindowsCollege
C++DifficultGeneral purpose, embeddedCollege
RubyEasyWeb server, scripting, QA, ITOnline
CSSEasyWeb stylesCollege
CEasyGeneral purpose, embeddedCollege
Objective-CDifficultMac and iOSCollege

These languages have a ranking from 1 to 10, but the fact is, they are all very popular languages and no one language is used a lot more than any other language on the list.

JavaScript is used on more than 90 percent of all web pages worldwide. You can use JavaScript to create animations, validate web forms, create web applications that run on data, and exchange data in the background with a server. JavaScript is a very easy language to learn, and you can learn it at almost any community college.

Java is a general purpose language that is used in many embedded systems. Embedded systems are things we don't typically think of as computers, like set-top boxes and electric meters. But Java is probably most famous for programming Android apps. Java is not too easy to learn, but it is not super hard either. You can learn it at most community colleges and some universities.

PHP is used to create web servers that can access SQL databases. It is the most widely used web server language, being the language of choice for about 70 percent of web sites worldwide. It is easy to learn. You can take a class at several community colleges.

Python is one of the easiest languages to learn. It is used a lot for IT scripting. You can learn it at many community colleges.

C# is used to program Windows and Windows Phone applications in the .NET framework. It is a hard language to learn. Some community colleges offer classes.

C++ is an older general purpose language. It is used a lot for embedded systems programming (see above). C++ is hard to learn. Many community colleges offer classes, and some universities.

Ruby is an easy scripting language. It is used in many of the same applications as Python, but the Ruby on Rails framework lets you set up a web server quickly without having to learn PHP and Apache. For that reason, a lot of startup companies use it to quickly set up their web sites. But later, they will switch back over to PHP for the long term. Ruby is one of the few languges that is rarely offered as a college class. You'll have to buy a book or take an online tutorial. Ruby is an easy language to learn, but setting up Ruby on Rails is difficult.

CSS is the language for making web site styles. I'm surprised it is on this list. It is important for making web sites, but it is not a true programming language. You can learn CSS as a part of most HTML classes in college.

C is an older version of C++ that is not object oriented. It is a very fast and powerful language, easy to learn, but also dangerous. It has many features that only experienced programmers should use, but beginners try it anyway. It is mostly used in embedded systems that must work very quickly, "in real time." You can learn C as a part of a C++ class in college.

Objective-C is the language for writing Mac and iOS apps in Xcode. Until two years ago, it was the only option for writing Apple apps, which explains its wide use. Some colleges offer Objective-C classes, but most colleges are switching over to the newer Swift language. You can find a Stanford class in Objective-C and Swift online, but they expect you to be a smart Stanford student.

What about other languages?

Swift is Apple's replacement for Objective-C. It is much easier to learn than Objective-C. But Swift hasn't yet caught up with Objective-C because it has some idiosyncrasies and it is missing a few features. Also, programmers have been using Objective-C for many years, but Swift has not been available that long yet.

SQL, particularly MySQL, is not on this list but it ought to be. MySQL is a language for accessing the most common form of database. It is used a lot with PHP. So it ought to rank up there almost as high as PHP. The reason it is missing from this list is because of the way the data was gathered.

Perl is a popular language that has been losing ground to Python and Ruby, because they all do similar things but Python and Ruby are much easier than Perl.

Go (or Golang) is a new language from Google that is easy to use, but hasn't really found its niche yet.

Groovy is a new language that combines the best of Java and the scripting languages like Python. It uses Java syntax, but it can be run as a script without needing a Java compiler.








Thursday, March 17, 2016

St. Paddy's Day

My dear Aunt Roe had a *big* cat she named Patrick. We liked to call him Paddy. She always said, "Don't call him Patty, that is a girl's name!" I bet there are a number of fine Irish lads who'd beg to differ.

Wednesday, February 10, 2016

The Software Development Process

Requirements

It starts with the customer telling you what they want in the software project. The customer might be a paying customer. Or it might be another department within your company, your boss, or the instructor in your class.

It is important that the customer, whoever they are, tell you clearly what they are looking for. The main avenue for communicating this information is the requirements document. This is a written formal document that lists everything the customer is looking for.

The communication of the requirements document is usually followed up with a face-to-face meeting to settle details and verify there are no misunderstandings.

Specification

You or your company will then reply to the requirements document with another document called the specification. The specification will list all the details about how you will accomplish the customer's requirements. The specification will usually be created with conferences and meetings, because it must be detailed and specific; it is rare that one single person knows all the details about design, coding, testing, pricing, customer contact, and so on. Those functions are usually split up among different departments. So the specification document may require a bit of coordination.

The customer will then review the specification and sign off on it once they believe it sufficiently handles all the details they require.

Coding

Of course, someone must code the customer's final product. Traditionally, coding does not start until the specification document has been signed off. In the modern world of technology, this rarely works. Instead of proceeding neatly from step to step in this process, we frequently work together on all steps at the same time. All modern companies like Google and Facebook work this way. You can tell if you are looking at an older or more traditional company because they want you to know about SDLC or Software Development Life Cycle. You can tell if you are looking at a more modern company because they are looking for things like Agile.

In Agile programming, there may be a lot of back-and-forth between requirements, specification, and coding. Because of this, the requirements may change while you are in the process of coding. So you have to be ready to change plans at a moment's notice without complaining. This is why the process is called Agile (able to change direction quickly).

Testing

Every software product must be tested. Larger companies usually devote whole departments to nothing but testing. This is an important part of the software process. Without it, you may release a product that has bugs, and this will give you a bad reputation. If your product is not fully tested, it may get bad reviews in the iTunes store (or Google Play) and other potential buyers may decide not to try it.

Maintenance

This can easily be the longest part of the software process, because maintenance can last many years. Every time Apple changes Swift or Xcode, or the libraries, or a new product comes out (iPad Ginormous?), you may have to change things in your code. Also, buyers will report bugs in your code, and request new features.

So it is important that you write your code clearly, with comments, so next year, when you are trying to fix a bug, you can remember how your own code works. You'd be surprised how easy it is to forget what you were doing after you've not looked at your code for a while.



Thursday, December 10, 2015

My peaceful tree

I hope we can code this scene in my high school class next week. This version is SVG. We can convert it to HTML5, then finally create a Swift app.

Tuesday, December 1, 2015

Reno Erat Rudolphus: Christmas CD 2013

This one has classical, pop, techno, piano, children, and even bluegrass.



Nicolaus Esterhazy Sinfonia1The Virgin Mary Had A Baby Boy
Andy Williams2Kay Thompson's Jingle Bells
Golden Guitar Project3White Christmas
DJ Santa Claus4Silent Night
Nicolas Spencer5My Favorite Things/Carol of the Bells
Straight No Chaser612 Days of Christmas
Jack Jezzro7Deck the Halls
Nicolaus Esterhazy Sinfonia8Carol of the Bells
Stephen Miller9O Come O Come Emmanuel
Nicolas Spencer10The First Noel
The Clarke Family11Angels We Have Heard On High
The Cedarmont Kids12The Virgin Mary Had A Baby Boy
Nicolas Spencer13Thou Didst Leave Thy Throne
Simhah Chamber Collegium14Angels We Have Heard On High
Ray Conniff15The Little Drummer Boy
James Beuregard and Keri Taylor16I Cannot Tell
Jason Gray17Easier (Song of the Wisemen)
James Beuregard and Keri Taylor18Infant Holy, Infant Lowly
Nicolas Spencer19Brahms Lullaby




Sunday, November 29, 2015

A Red-Nosed Christmas: Playlist 2002

This playlist has some 60's artists like Percy Faith, Ray Conniff, and Andy Williams interspersed with techno tracks, comedy, and (I hope) food for thought.



Percy Faith1Joy to the World
Percy Faith2Do You Hear What I Hear
Guitar3It Came Upon A Midnight Clear
Ray Conniff4Little Drummer Boy
Andres Segovia5Greensleeves
Trans-Siberian Orchestra6Christmas Canon
Anne Murray7Christmas in Killarney
Trans-Siberian Orchestra8Revenge of the Sugar Plum Fairy
Techno Mix9Jingle Bells
Dean Martin10Rudolph the Red-Nosed Reindeer
Jimmy Buffett11Run Rudolph Run
Big Bad Voodoo Daddy12Rockabilly Christmas
Elvis Presley13Santa Bring My Baby Back
Roy Zimmerman14I Tawt I Taw Ol' Tanty Claus
The Chipmunks15The Chipmunk Song
Cheech and Chong16Santa Claus and His Old Lady
Nat King Cole17Chestnuts Roasting
The Foremen18Buy War Toys For Christmas
Andy Williams19Some Children See Him
Randy Stonehill20Christmas Song for All Year 'Round



Quirky Christmas: Christmas Playlist 2001

Only my family and closest friends know that many years, I like to create a Christmas CD to share. This playlist is the first Christmas CD I put together (and arguably the best). I believe it is from 2001, because it seems to reflect the events of 2001.

https://www.youtube.com/playlist?list=PLoqipQPAfFOoNm0QNCGVpDA29emp9ukKS

Larry Norman1Christmastime
Tom Lehrer2A Christmas Carol
Frederick Fennell3Sleigh Ride (Leroy Anderson)
LA Guitar Quartet4Nutcracker - Overture (Tchaikovsky)
LA Guitar Quartet5Nutcracker - March (Tchaikovsky)
LA Guitar Quartet6Nutcracker - Russian Dance (Tchaikovsky)
The Roches7Hallalujah Chorus (Handel)
Handel8Concerto a Due Cori
John McCutcheon9For Unto Us A Child Is Born (Handel)
Mannheim Steamroller10Do You Hear What I Hear
Mannheim Steamroller11Away In A Manger
Pierce Pettis12Miriam
Bruce Cockburn13Cry of a Tiny Babe
Kathy Mattea14Straw Against the Chill (Bob Franke)
Dennis Lee15Jesu, Joy of Man's Desiring
David Massengill16Jesus the Fugitive Prince
John McCutcheon17Christmas in the Trenches
John Lennon18Happy Xmas Was Is Over
Bing Crosby & David Bowie19Peace On Earth / Little Drummer Boy





Friday, November 13, 2015

Animated Adobe Icons

We are doing these icons in the high school class. We have not finished the last icon yet. We are drawing them in SVG. We are animating them using JavaScript.






Sunday, October 25, 2015

Reformation Day

A long time ago, my company sent me on business trips to western Minnesota to install electrical equipment. On one of those trips, I met a nice gal of good Minnesota Norwegian stock and asked her out to a music concert at the college in Fargo, North Dakota.

Being a good Minnesota Lutheran, she told me about her church in Moorhead. (There are so many Lutheran churches in Fargo and Moorhead, I'd never be able to remember now which one it was.) I had the privilege of visiting there the following Sunday, the last Sunday of October.

Reformation Sunday is not only a day to remember the events of 1517 Wittenberg, but also a time to celebrate with a grand midwestern potluck. Had I known ahead of time, well, I'd still not have been able to cook up anything in the motel room. But the little old ladies of the church welcomed me warmly and introduced me to their favorite potluck dish: lutefisk. "You'll either love it or hate it," they said. "It's like fish flavored jello," they said. How could I possibly turn this down? Fortunately, they didn't give me a lot!

After the potluck, I visited this nice gal and her family at her home, and we took turns playing the piano. It was a wonderful afternoon.

On another occasion, one of the electrical workers invited me to his home for lunch, and they served me corn freshly cut from their very own property.

After visiting Minnesota several times, I decided that the good Lutherans of Minnesota are far and away the friendliest people I've ever met. If they have any of the Lake Wobegon quirks, I never noticed.