122 points · by toddkazakov · 11y ago · 135 comments
I see the hype around Go and Rust and I believe I'm missing a lot in my professional development. I'm involved with my start-up and I am facing a lot of challenging data analytics and software development problems during the day. I am using Java/JavaScript/R on a daily basis, but these are mature languages that have been around for a while and I have a hard time learning new frameworks that are beyond my work scope.
So what (hot) languages/frameworks are you learnin/using now, that give you the warm feeling that you get a lot of useful knowledge out of them, that's widely applicable?
Elixir is a really cool language, and also a great way to learn functional programming. But more than that, it gets all the non-languagy stuff right. The build system is amazing, your code hot-reloads out of the box, dependency management is very well done (source-only, git-friendly, project-local, etc), the community is very friendly and going fast.
And code scales by default. I might exaggerate here, but sometimes it feels like need to really try to write code that's hard to spread across servers. If you consider it's non-trivial to even use all your CPU cores on Node.js, the Erlang VM will blow your mind.
Do know that conceptually, Elixir and Haskell are pretty far apart. They're both functional, but that's about it. Elixir is dynamically typed, Haskell very much not so. It's a whole different approach to programming; where in Haskell, you'd "let the types guide you", in Elixir you simply can't do that. Elixir is much closer to Lisps in that regard.
Elixir on the other hand gives you a great development environment by default with ExUnit for testing, the Mix build tool, hex.pm packages, a tempting library, and more. All of the tools feel mature as well. Immutability with rebinding is great, concurrency is made simple compared to some other languages, and it also has the entire Erlang ecosystem of libraries to work with.
It's definitely easier to write Elixir, but I wouldn't say better. They're both great languages, just different.
Elixir lets me use a lot of the stuff I learned with Haskell, and I've already used it building a real time component for an app I'm working on.
Take from that what you will.
Another interesting project is Snabb Switch. If you want to learn networking at the lowest level and highest speed possible in software, Snabb a great platform for experimentation.
Finally, I'll throw in http://terralang.org. It's not networking related. But, I think it's terribly interesting and not getting any attention.
If you are involved in data analytics then you could always immerse yourself in the Hadoop stack e.g. Cascading, Spark, Mahout etc. It's a platform that is increasingly become a fixture in enterprise companies and plenty of new technologies. For me the future will be "container driven development" where everything will be deployed as a container and dynamically wired together. Loads of new technologies e.g. Docker, Consul and plenty of challenges still around.
None of what I wrote is around languages/frameworks though mainly because I think that the majority of them won't be really used in 5-10 years.
If you think it's just hype, try and calculate the enormous waste of both time and money from memory leaks caused by code written in C and C++. Rust solves this, and it's only going to get better once we're on the other side of Rust 1.0, and the library ecosystem grows.
This seems like an unusual language feature to highlight --- don't most modern programming languages solve this problem with various implementations of GC or memory management? N.B. I am not at all familiar with Rust and so maybe I'm missing some important context...
Was OpenSSL secure when it was originally written in X lines of code? Very likely.
Is it feasible to expect it to be secure now that it's X^Y lines of code, when a large class of bugs can exist in any line of code? No.
That's what 15 years of an evolving codebase has taught us. Which is reasonable, given that a lot of open source projects came into existence in the mid-90s. Inculcate lesson, design language for next 15 years. Not that radical.
I would not care of the 'hot' stuff too much - frameworks come and go.
I'd try some Clojure (you're familiar with the JVM and IDEs, but one should learn a bit of Lisp once in life). Or Scala.
I like the Scala suggestion, because the last time I was involved with functional programming, I was using Haskell which I found quite difficult to grasp to a level that's useful for real-world projects.
On one hand it has a simple ruby-ish syntax and a solid MVC framework (Phoenix).
On the other hand it has immutability, concurrency through processes and message passing (which is awesome!) and a bunch of other functional goodies.
I'm not sure how widely applicable it is now, as it's still in its infancy, but it's the first "hipster" language I've used in a while that felt like it had legs.
The Kernel language is small and simple, yet offers a huge contrast to how you would think about programming in most other languages - namely because other languages have reduced their model of computation to reduction.
Kernel is influenced by the Lisp family, but offers somewhat of a duality to it. In lisp, everything is passed implicitly reduced unless explicitly quoted, then they are passed verbatim. In Kernel, everything is passed verbatim unless explicitly evaluated - the callee then, has complete control over how something is evaulated, rather than the caller. (And consequently, it's trivial to simulate lisp's computational model in it)
Reduction then, is just a special case of a much more general computational model - passing arguments around. Other languages have coupled the idea of argument passing with reduction, such that they need to invent compiler hacks like macros or code generation when it turns out that reduction is not what they want. Or in some cases, we've created languages specifically for template-based programming, where we want to splice bits of code into an otherwise static block of text. Such templates are trivial to do in Kernel.
Another nice feature of Kernel is that of encapsulation types. One can define a new type which consists of a constructor function, eliminator function and a predicate to test for the type - and combined with the powerful information hiding that can be achieved through Kernel's environment model, one can implement sophisticated type systems using very few primitives, and without special compiler support.
An implementation: http://klisp.org/
Others: http://axisofeval.blogspot.fr/2011/09/kernel-underground.htm...
There is much brewing in language land. Rust brings a set of ideas that other languages will borrow (pun intended). But..
Elm restarts programming, treating events as lists, and this is how programming will change over the next 5-10 years in a most fundamental way.
Taken together programming is climbing out of the miserable non-composable mess that having been stupid bread-and-butter bit-fuckers have put us in. Elm just leads the pack.
You may not understand its ways, that is exactly because you think being a bread-and-butter bit-fucker is a feature, while it most definitely is not. It is a bug and it infests the code you write, up to the point where unlearning is an unsurmountable effort.
When elm's wave is through, the computer will replace you, and with it children will design much better programs than you do. Please stop making sense now.
But elm is a step on the road to a future where I believe that, when the dust settles, it will acknowledge that iteration, map, filter and reduce are as elementary as if-then-else.
So these operations (and if-then-else) will gain an iconic representation in the syntax, like punctuation. There is no need for words to be reminded of their function, the mere appearance of the program should suggest the flow and transformations they implement instead.
In other words, current languages are not FRP languages yet, but elm comes closest.
IMHO you'll become a far better developer if you devote the majority of your time to learning advanced algorithms, ml, and ai as opposed to the new hot framework.
For example drilling for oil in sea is quite expensive, could easily cost over 100 million USD. With machine learning we can predict the seismic ground pattern by predicting the amount of clay, lime etc in different locations and between wells. This can help us to decide if there is a good chance there could be oil/gas underground.
The problem when I present this, is that it quickly sounds like science fiction.
It's entirely possible that machine learning techniques could be used as well as modeling and simulation for these problems. (They may be already! But my limited expose suggests they're mostly doing traditional HPC.) But you'd probably need to be a petroleum expert already, not just someone with machine learning expertise living in an O&G hub.[2]
[0] Just an example: http://www.aiche.org/chenected/2012/12/bp-building-new-houst...
[1] http://rice2014.og-hpc.org/
[2] Apologies, btw, if you are a petroleum expert who's just frustrated by a lack of machine learning in the industry. :)
As you probably know C++11 is already around and majority of compilers already support it. What most people don't know is that C++14 is ready to kick some ass too! It introduces for the first time in C++'s history functions as first class objects and allows you to pass them around as function parameters! I think this is really exciting and I also encourage as many people to take a look at this new and very promising developments of C++ language.
On the other hand, Apple's Swift looks promising too - functional elements, type inference, speed, good compiler and so on. Not to mention it's being used with tons of great frameworks Apple provides for iOS and OS X development. It sure doesn't hurt to take a look into it too.
All in all, it really is an exciting time for us developers. There are really tons of cool tools and languages that allow us to get things done at the speed never imagined before.
Now, we should also look back at the fundamentals and ask ourselves could we design, not only program? That's not the skill you can pickup in couple of days reading bunch of tutorials and forums about your next cool language. I think, learning how to think about particular problem and how to approach it is more important than barely know how to code the first solution that comes to your mind in the new ultra fancy language. Think about it...
See: https://fuzz.me.uk/git-vs-hg/
From Eric Raymond:
>git won the mindshare war. I regret this - I would have preferred Mercurial, but it too is not looking real healthy these days. I have made my peace with git's victory and switched. I urge the Emacs project to do likewise.
Also, this whole popularity argument, if it were to be believed, could have killed Linux in favour of Windows or FreeBSD in favour of Linux. Just because something is popular doesn't mean that alternatives need to cease development or are not worthy of attention.
This thread started with a request for exciting new features. A certain degree of experimentality and non-popularity is in order.
This is one reason why D has failed to really take off. Both D and Rust are looking to essentially take C++'s place. D is C++ improved, while Rust changes the whole model of managing memory and also introduces some new paradigms (more type inference, pattern matching, etc.). D is clearly better than C++, but the two are just similar enough to make C++ a more preferable choice due to its immense popularity compared to D. Rust changes just enough to give it a chance at being a serious contender: the value may be higher than the cost of leaving C++ for many people.
The same applies to Git (C++) and Mercurial (D). Perhaps even more so, because while Git isn't perfect it generally "just works" for almost all use cases; Mercurial is just some simplicity and elegance on top of some workflows (which are sometimes emulated with wrappers over Git, like Legit). C++ on the other hand has a lot of warts.
Sure, there's a lot of hype around newer technologies. There's never a shortage of hype. But the glow around virtually all of them will fade, probably sooner rather than later.
Ruby and Python are no longer considered hot and new, but not so long ago they were. Java and Perl had their share of hype back in the day, but the luster has certainly wore off by now.
Too many people involved in the tech field are endlessly chasing the next shiny thing.
This is an unfortunate, but all too common a perspective, since most people who are exposed to Scheme are exposed to in in an academic environment where they only get to play with ancient, primitive Schemes such as MIT Scheme of SICP fame, and come away with an impression that Scheme is a quaint toy language that may be useful for pedagogy but probably nothing else.
Nothing could be further from the truth, if you consider the capabilities of the modern Schemes.
I do know Chicken and Guile have more advanced library support than the Scheme I worked with on SICP, but neither has as advanced concurrency features or advanced immutable collections, which is why Clojure seems to me a big advance on Scheme. Plus that you can leverage existing libraries on the JVM, plus its excellent compile-to-JavaScript support, etc., etc.
Unfortunately, "the new student", never having learned the lessons of the past doesn't know any better and is condemned to repeat mistakes and reinvent and rediscover poor imitations of older technologies while calling them new.
Those learning to code have enough on their plate, learning a mental model of computation and how to construct software for given tasks. History lessons are a case of 'too much information'
I'd punt on learning a new language and instead master a new skill - up your stats knowledge, force yourself to learn how some algorithm works, whatever,.. these things are all infinitely reapplicable skills, whereas a pretty compiles-to-JS language or prettier-C-derivative generally aren't so much.
If that's the case, you don't need to learn a hot/new technology, you need to cast a wide net and get a better grasp on today's software ecosystem in general, until picking up new things is no longer hard.
You could nonetheless kill two birds with one stone if you hacked on something current but wide. Docker and its ecosystems come to mind.
The intro videos really opened my eyes to how powerful C is. Being able to directly access memory seems crazy for someone who is just used to dealing with languages that really remove you from the hardware.
Pun intended? LÖVE (https://love2d.org/) happens to be a great way to learn Lua.
All projects from which I have learned a great deal of Lua. ;)
[1]: http://www.gritengine.com/
[2]: https://love2d.org/
It's got a few quirks, but the language designers are improving it rapidly and the number of libraries available for it is increasing drastically.
To name a few features I really like about the language: multiple dispatch, flexible type system (use it if you need performance; ignore it if you want pretty code), powerful macro system, extensive debugging system (instantly view AST, LLVM, and native assembly output to optimize), easy parallelizability/vectorization, and just an overall beautiful language design (unlike C++ or Matlab for instance).
Things I dislike about Julia, but that should be changed soon: unintuitive automatic memory allocations (everything seems to allocate new memory by default which is a pain for tight loops because you have to write layers of functions that all take tons of "output variable" parameters), incredibly slow start-up times, and documentation that leaves a lot to be desired in terms of details (I normally have to call methods() in a REPL to figure out exactly what I need to pass into functions). Also, the module system seems a little more confusing than it needs to be.
Decide and have clear what is the question, then look for the answer.
---
For the fun of learn, pick anything you can do and put some time of it. If you are like me, you will read some info about X and and if it pick you interest go ahead.
But without a direction, you will waste time. You will dismiss things that are good and double-focus in things that not..
----
"I am facing a lot of challenging (which ones?) data analytics and software development problems during the day (which ones?)"
"Data analytics (and his not-famous cousin reports)" is far more about re-shape and clean data than do cool algorithms. The last mille is the easy and the 909% (yep, 909%, not a typo!) is the hard, in opposite to normal development.
Having a clean, well defined schema/database/warehouse/etc is the thing here. Run your super-fancy mathy-thingy on it? Others have solved that!
Most likely, non-normal-dev will have a bigger impact on this kind of jobs, so not just focus in tech.. (and I don't drink the fallacy that your selection of tools not matter. But is also a mistake think that are the only thing that matter).
You wouldn't believe how much playing around with these units will help to influence your design and development decisions in other areas.
Also: http://blog.paralleluniverse.co/2014/05/01/modern-java/
I come from a C background however which is a little closer to Rust than Java/Javascript/R but I don't think you would hvae that much trouble if you put your mind to it. Java is a similarly large language if a bit removed from the metal.
Haskell gave rise to bunch of strongly typed DSLs both for front-end and backend development.
Agda is sort of derivative of Haskell, and gives you powers to reason MUCH MUCH clearer about your code and what you want it to do.
I have wet dreams of using those languages on my everyday development. Esp Haskell.
http://learnyouahaskell.com/ http://learnyouanagda.liamoc.net/
When I catch some time I will fiddle with Elixir also mentioned here in comments.
Also, check out Cascalog[2]. Data processing on hadoop clusters has never been this simple and fun. Much better than Pig/Cascading/etc.
[0] http://clojure.org/ [1] http://incanter.org/ [2] http://cascalog.org/
I've only been in contact with TaskFlow, the state and workflow management library that OpenStack uses, and I'm very impressed how well-engineered it is.
On a related note, OpenStack uses RabbitMQ, and that seems to be trending too. Not a huge hype, but a steady adoption by both open source community and enterprises. And if not RabbitMQ, then being familiar with some kind of asynchronous messaging framework certainly wouldn't hurt.
I do Winforms development in my day job and I hate it. The feedback loop I have from changing something in the code to viewing it in the application can be a matter of 1-2 minutes (need to compile, start up, login, setup everything to the correct state, etc). Going from that to being able to grow the application in real-time, without ever having to restart/refresh, is amazing, and makes me feel infinitely more productive. Combining it with Cordova to make mobile web apps, where I can deploy once to my phone and then have changes be applied over wifi as I type them into my text editor, is super sweet.
Getting everything set up can be a bit tricky, but https://github.com/plexus/chestnut makes it a whole lot easier.
- http://scott.sauyet.com/Javascript/Talk/FunctionalProgrammin... explain how procedure ahem function composition leads to better/more readable code
- datalog is a DSL for querying (recursive/linked data) http://www.learndatalogtoday.org/
- The introduction to Reactive Programming you've been missing https://gist.github.com/staltz/868e7e9bc2a7b8c1f754
Other than Laravel (PHP), Python and Erlang (then Elixir), there's not much to try that's applicable. You'll be pleasantly surprised to see that your Erlang implementations are orderS of magnitude smaller (codewise) than your Java implementations, with different performance hurdles. Try new dbs like Redis or new messaging primitives like ZeroMQ. Find a basic analytics package like Munin or RDDTool.
I'm disappointed by the suggestions on this list, which is an ear full of bad advice. elm, kernel, julia? At least Lua is something that you will run into as an option, from time to time. That being said, you don't need to practice it. It's easy to treat it like a dumber version of javascript and you're fine.
And I'm learning Swift to incorporate into my iOS apps. I've accumulated over 300 urls for anyone who wants to learn Swift: http://www.h4labs.com/dev/ios/swift.html
http://www.thoughtworks.com/radar/languages-and-frameworks
http://www.thoughtworks.com/radar/tools
Now from reading these comments, it looks like Elm and Elixir are good to learn too.
So the problem facing someone that's just starting out, is what to learn? Where do you start? The options are many and can be confusing.
I always recommend people who are new in programming to start with Python because it's really flexible, has rich set of libraries and it's easy to get started.
Nim is an incredibly good language that compiles to C, is fast, and has very easy bindings creation to any C library you want. For me, it's the best of both worlds between a Python look (indented, clean) and a fast typed compiled language that helps you instead of hindering you.
You might be interested in checking it out.
I personally prefer Scala as I like strongly, statically typed languages, but I've played about with Clojure and it's very nice, too. A vast number of benefits come from having a rich immutable collections library.
Also, if you want a brief overview of different paradigms you should check "Seven Languages in Seven Weeks" (https://pragprog.com/book/btlang/seven-languages-in-seven-we...)
On the more practical side, I think data science is a very useful tool, so learn everything there is to do with data today, from machine learning and data mining in small scale to big data processing.
(I'm biased, I'm currently seconded from Pivotal Labs to Cloud Foundry development in the buildpacks team).
It's an opensource PaaS. A full, all-the-stuff-you-need-is-in-there PaaS. You can take it and run it in a private datacentre.
For large companies, this is A Big Deal. Right now, in most F500s, deploying an application takes anything from days to months.
Except if they've installed Cloud Foundry, where deployment time drops to seconds to minutes.
For startups, it will soon be a big deal, because Cloud Foundry gives you a smooth path from just-playing-around (deploy on public cloud with Pivotal Web Services or IBM Bluemix) through to running on AWS (with the opensource distribution or a commercial derivative like Pivotal CF) through to running on your own hardware in your own datacentre.
CF is still evolving fast. The execution core is being rewritten currently and will probably hit feature parity early in 2015, carrying along with it the ability to natively allocate, mount, manage and monitor Docker and ACI container images.
It gets very little buzz on HN, because what interests us is building our own stuff out of cool, smaller components. Plus the main organisations driving development (Pivotal and IBM) have focused their marketing and sales at big companies, not startups.
Systems of this reach and influence basically appear once in a generation. I'd hop on while it's fresh, if I was you.
Funnily enough, the best critiques I see of how we work comes up in our internal forums. I sometimes refer to Pivotal Labs as a debating club which produces code as a byproduct.
Susy: http://susy.oddbird.net/
Otherwise, if you're into the latest Javascript frameworks, I'd check out:
Aura: http://aurajs.com/
Kraken: http://cferdinandi.github.io/kraken/
SkelJS: https://github.com/n33/skel
If you're looking for something more "bootstrapish" but without all the "bootstrap" bloat, I'd look at some more modular frameworks like:
Semantic UI: http://semantic-ui.com/
Pure: http://purecss.io/
UIKit: http://getuikit.com/
Hope this helps. . .
Thanks again for the heads up.
For all intents and purposes those 4 are really the only ones being talked about IMO. Polymer is thrown about too but from what I understand it's not exactly production ready (could be mistaken)
I actually think Mesos is the best of the current generation orchestrators, for the same reason that Diego (Cloud Foundry's new execution system) is going to be the best foundation for PaaSes.
They both push intelligence out to the edges. Mesos pushes it to the requestor, Diego pushes it to the executor, but both represent a huge step forward over need a godlike central controller for a cloud system.
Not sure I see the connection? I probably should have been nicer, you came off very shill-like though. Pivotal does kind of cultivate that attitude though, of "whatever we're working on is a disruptive, game-changing twitter-killer", but I guess it works for them since they managed to get a bunch of smart people working for early-stage companies without any stake in them and then training other people to take over their jobs.
I will have to look into this Diego, at least. Is there like, a white paper for it?
As for Diego, start with Onsi Fakhouri's keynote at the Cloud Foundry Summit this year[1], then read Amit Gupta's blog post on app placement as an optimisation problem[2], then you might like the Diego Design Notes repo[3].
My main pet peeve with Diego is the confusing, punny names, so it will be confusing at first.
[1] https://www.youtube.com/watch?v=1OkmVTFhfLY
[2] http://blog.pivotal.io/cloud-foundry-pivotal/products/app-pl...
[3] https://github.com/cloudfoundry-incubator/diego-design-notes