DEV Community

Cover image for What would the programming language sorting hat pick for you, and why?
Ben Halpern
Ben Halpern

Posted on

What would the programming language sorting hat pick for you, and why?

Top comments (77)

Collapse
 
integerman profile image
Matt Eland

Turbo Pascal. I'm old enough to remember using it and loving it, it's a 'teaching language' which fits my mentoring bent, and darn it if I still don't think in therms of := for object assignment from time to time.

Collapse
 
pcmichaels profile image
Paul Michaels

Turbo Pascal is definitely the best language (actually, the best language is Spectrum Basic - but I'm the first to admit it did have some tiny flaws)! To this day, I still haven't seen a better colour scheme in an IDE. If I'm not mistaken, the guys from Borland that designed it now work for MS on C#.

Collapse
 
saint4eva profile image
saint4eva

He works with Microsoft. But as of 2019, he is in charge of Typescript - another great language like C#

Thread Thread
 
integerman profile image
Matt Eland

Yep, I love my .NET and TypeScript. There are plenty of others I want to get into, but at the moment, this is where I focus.

Collapse
 
donhmorris profile image
Don Morris

I used turbo pascal in the 80s, I loved it. I felt empowered by it.

Collapse
 
integerman profile image
Matt Eland

And it did its job as a learning language. After coding in Turbo Pascal for awhile, I went on a family vacation, read a book on C++ cover to cover, and came back and could code in C++ without issues. Prior to Turbo Pascal as a stepping stone, that couldn't have happened.

Thread Thread
 
donhmorris profile image
Don Morris

I went from turbo pascal to lightspeed/ think pascal to build Mac apps. I then used sams c and c++ primers to learn those and started building Mac apps in c and then c++.

I can remember in the late 80s VIP - visual interactive programming and how they were saying we wouldn’t be developing code using text editing in the future. Here I am in 2019 still editing software in text editors. Welcome to the future. πŸ˜€

Collapse
 
jmccabe profile image
John McCabe

Well, Pascal was designed as a teaching language. Turbo Pascal was one of many non-standard extensions to standard (ISO/IEC?) Pascal which contributed to the decision to create Ada. Personally, I found Vax Pascal was better, but obviously not for MS-DOS!

Collapse
 
danjconn profile image
Dan Conn

Turbo Pascal was the first proper language that I learnt! I loved it!

Collapse
 
integerman profile image
Matt Eland

I went QBasic to VB for Dos, and tried C++ next but it was too much for me as a teen so I learned Turbo Pascal and then C++, C#, Java, XAML, JavaScript, TypesScript, and F#.

I actually wound up teaching a lot of my class Turbo Pascal. We ended our semester building a game together using Borland Graphical Interface for Turbo Pascal.

Thread Thread
 
danjconn profile image
Dan Conn

I mucked around with BASIC as a small kid , then Turbo Pascal from 13, played with 8086 assembler a bit and then did HTML, CSS, JavaScript, PHP, Java, XML / XSLT, XQuery, and Python.

Collapse
 
pdtayl888 profile image
Patrick D. Taylor • Edited

Pascal is a language.
Turbo Pascal is the name of the Pascal editor made by Borland.
Borland also made Turbo C++ editor.

Collapse
 
jmccabe profile image
John McCabe

FWIW, Turbo Pascal included the environment, tools and numerous non-standard extensions to Pascal so, to some extent, was a language in its own right. Standard Pascal at the time was pretty much useless for serious programming since, as mentioned, Pascal was not designed for that. Turbo Pascal essentially morphed into Delhi.

There was also Turbo Prolog.

Collapse
 
danjconn profile image
Dan Conn

OK so when I signed up for pottermore.com I was chosen to be Ravenclaw! So what language best suits this.......

Python, being a snake surely is Team Slytherin so not that one.

Haskell favours purity - definitely Team Slytherin too.

If you've ever setup a Java enterprise project then this belongs to a house which values hard work, patience and loyalty - so Team Hufflepuff.

XML is clearly Slytherin too.

This is not going well......

So I guess with Ravenclaw's virtues of being intelligent, wise, sharp, witty, individual, then it has to be a language with a sense of humour, that is unique in it's style and needs a fair amount of effort to read. Yup, gotta be Brainfuck!

Collapse
 
zaidrehman profile image
Zaid Rehman

intelligent, wise, sharp, witty, individual ...

All this sounds like JavaScript

Collapse
 
integerman profile image
Matt Eland

BF seems like hufflepuff to me.

Collapse
 
danjconn profile image
Dan Conn

Well, then you'd be wrong πŸ˜‚πŸ˜‚πŸ€€

Collapse
 
simbo1905 profile image
Simon Massey • Edited

Rust because it is a safe language without a garbage collector with advanced features like async/await yet it also compiles to webassembly so you can write isomorphic webapps in it chinedufn.github.io/percy/ or speed up bits of an electron app youtu.be/lLzFJenzBng It is also the most loved language on the annual stackoverflow survey with a great community youtu.be/FSrQX4uYuOM

Collapse
 
quii profile image
Chris James • Edited

So you would say when the sorting hat is put on your head that it says

  • Simon likes to pick up trash all the time and be very particular about it
  • Simon is very popular
  • Simon... is a web app?
Collapse
 
simbo1905 profile image
Simon Massey

Totally!

Collapse
 
nestedsoftware profile image
Nested Software

You like to keep your code honest, straightforward, and explicit about what it's doing. You're not the biggest fan of mucking about with low-level details. Python is the language for you!

Collapse
 
quii profile image
Chris James • Edited

I think it's pretty wild how many of the comments seem to miss the point of the article and just talk about why their favourite programming language is the best.

For me:

I own a Slytherin scarf and give dirty looks to other houses when I walk around platform 9 and 3/4 on my way to work which implies a like of purity and the dark arts. So Scala for me.

Note: Not my favourite language!

Collapse
 
alohci profile image
Nicholas Stimpson

Not answered, but then I've no idea what a sorting hat does.

Collapse
 
bugmagnet profile image
Bruce Axtens • Edited

Hmm ... prescriptive counseling. Too easy to blame the hat for bad outcomes. Think I'll give it a miss.

Besides, I'm never happy with my current language. I'm learning Crystal, Kotlin, Scala and Prolog (amongst others) on exercism.io. The hat would probably tell me to go back to doing User Support.

Collapse
 
engmms profile image
engmms

Hi,we are from same Generation
I am start with GW Basic and Know try with Kotlin and Flutter

Collapse
 
msfjarvis profile image
Harsh Shandilya • Edited

Thanks for the link to Exercism! Didn't know about it and it looks like exactly what I was looking for :)

Collapse
 
saint4eva profile image
saint4eva

C# because it is a general purpose language with both functional and OOP capabilities.

 
xgenvn profile image
Brian Ng

Perhaps the first impression is hard to change. The color is vibrant and traditional lol

Collapse
 
pinotattari profile image
Riccardo Bernardini • Edited

Ada forever. I just love its robustness and how you can write software maintainable and that requires 10% of the usual debugging time (note: not 10% less). This, of course, if you help the compiler helping you.

It gives you a full array of tools for safe programming: from basic strong typing, to multi-task builtin (I saw a multitask software running on a Lego mindstorm with 16 bit CPU and a handful of RAM), from contracts to formal checking, up to tools for multi-core systems and distributed programming. I was told that the new version (due in 2020) will also have parallel loops and "pointer ownership" (to allow formal checking with software that uses pointers).

Oh, yes, and portability too... Few years ago we developed a library for P2P video streaming that was, more or less, 1Mbyte of source code. During the development we always worked on Linux. When it was ready, we copied the sources to a Windows machine, compiled them and... it just run, without the need of a "./config", nor a single conditional compilation.

If you know Pascal, Ada looks a lot like Pascal, but it is much more suitable for real application (as far as I know, Pascal was designed as a teaching language)

Collapse
 
johanalkstal profile image
Johan AlkstΓ₯l

Dart because I like multiplatform development, good type support that's there when I need it, a sound ecosystem that just works and something that is powerful but feels like a breeze.

Seriously, Dart is a great programming language. Biggest downside is that it's mostly used by Google alone.

Collapse
 
kacperperschke profile image
KAcper Perschke

First I have to mention briefly my history:

  • Basic (Sinclair & Armstrad/Schneider)
  • Fortran (77 & Lahey version of 90)
  • Bash
  • awk
  • sql
  • Informix 4GL
  • Borland Delphi (i.e. Turbo Pascal on steroids)
  • Perl 5.…
  • Python (2.6 & 2.7)
  • ruby (only scratched)
  • ecmascript (node executed)
  • go (1.9 & 1.12)

Among them Perl was only one I was able to think in.

Go seems very nice.
Perl 6 is promising but would not gain popularity.

Collapse
 
n8chz profile image
Lorraine Lee

I totally think in SQL

Collapse
 
pencillr profile image
Richard Lenkovits

He's nasty. He'd pick perl because he knows that I can't decide to hate it or love it. :D

Collapse
 
nestedsoftware profile image
Nested Software • Edited

Not perl! Not perl! Not perl!...
Are you sure? I sense you can do great things with perl. Terrible things. But great...

Collapse
 
pencillr profile image
Richard Lenkovits

Exactly XD

Collapse
 
mmaitoza profile image
Michael Maitoza

I only know a little javascript so I'm sure that would have to be it. But, then again, it would probably throw me altogether in another direction and give me C#. Who knows? I'm really a not very good at programming (I do more HTML and CSS) so I guess if the hat really knew me it would go down the path of least resistance being javascript.

Collapse
 
kozmiko profile image
Kozmi

The path of JavaScript is more treacherous than you realize. Many dangers ahead, few survive.
I think hat would choose python for you.

Collapse
 
mmaitoza profile image
Michael Maitoza

Very interesting! Tell me more... I'm new to the programming side and have basically been spending all my time on front-end dev stuff. I honestly have never looked at Python, partially because I am afraid of snakes. Lol. I have tried PHP and I kind of disliked it. I turned out a lot of messy code with it though. That was many moons though. Many moons ago.

Thread Thread
 
mmaitoza profile image
Michael Maitoza

I have been playing around in Python for a few weeks and absolutely love it! The hat would have most definitely picked this one for me, even if I am totally afraid of reptiles. Lol.

Collapse
 
skydevht profile image
Holy-Elie ScaΓ―de

C.
The first language I learned was Python, but C is the one I love. I'm using JS at work but C will be always the one I prefer.
There's nothing more I like than writing C.

Collapse
 
bunchoftrees profile image
forrest_svc

Want to develop fast and run fast, with built in garage collection? Golang!

Collapse
 
davidmm1707 profile image
David MMπŸ‘¨πŸ»β€πŸ’»

I came to ask the same, adding "Strongly typed" to the mix.

And you confirmed what I had on my mind :)

P.S: How Go is on the embedded world?

Collapse
 
bunchoftrees profile image
forrest_svc

Super good point. That I can’t answer to, but I’ll do some digging!

Collapse
 
cmelgarejo profile image
Christian Melgarejo

Check out tinygo