News for hackers. Stuff that matters.

Ask HN: What is the simplest stack to learn?

I have been using MySQL/PHP/jQuery for many years now in almost all my web projects. But reading around the web I feel outdated, and different solutions/options are popping up everyday.

I want to update my toolbox without having to deal with a steep learning curve.

What does HN use?

( 29 comments | 16 points | on HN )
Re:Ask HN: What is the simplest stack to learn? by rbosinger on Saturday August 15, 2015 @06:48PM (#10067249)
It depends where you're at with the PHP stuff. If you're using a LAMP stack (as you mention) but using something like MAMP/XAMPP and keeping it simple, staying away from the terminal or PHP frameworks like Laravel, etc then most of this other stuff will be hard for a bit. Ruby on Rails is always talked about as being "easy" but it's really not at first if you're lacking knowledge of things like package managers, command-line tools, deployment that involves application servers and deployment scripts, MVC patterns, etc.

I'll say this: if you've been sticking to PHP to avoid all these things I mentioned then you'll do yourself a favor by picking almost anything (I'd say Rails or a Node stack) and getting into it. Once you get the concepts of these stacks you can use that knowledge to jump to other stacks a lot easier as well. Eventually it all feels kind of similar. You'd even be fine to stick to PHP but would be a much better PHP developer after nailing some of those concepts.

Re:Ask HN: What is the simplest stack to learn? by Raed667 on Sunday August 16, 2015 @07:08AM (#10068589)
I'm quite familiar with the CLI, composer, Lumen, Slim, Symfony, Laravel.. This is not the issue.

The thing is that I'm stating to feel that PHP bundles are getting "outdated". Where in Django or RoR you could set-up an oauth server and link it to your app in 20 minutes, in PHP the quality of the bundles and documentation make using stuff like that "hard".

I'm starting to see that maybe Node (sails.js) + Angular are probably a good starting point.

Re:Ask HN: What is the simplest stack to learn? by LukeB_UK on Saturday August 15, 2015 @04:31PM (#10066754)
Use whatever you want and ignore what the rest of the internet says.
Re:Ask HN: What is the simplest stack to learn? by Raed667 on Saturday August 15, 2015 @04:34PM (#10066768)
This was my original thought as well. But then you have to think about employability.
Re:Ask HN: What is the simplest stack to learn? by LukeB_UK on Saturday August 15, 2015 @04:43PM (#10066811)
MySQL, PHP and JavaScript are all jobs that you can easily get employment in. As long as you understand the actual languages rather than just frameworks you should be fine.
Re:Ask HN: What is the simplest stack to learn? by cpncrunch on Saturday August 15, 2015 @06:16PM (#10067159)
If you look at the hugely successful companies like Facebook, Uber, Google, Stackoverflow, etc. they all use the likes of mysql, php, python, ASP, javascript, etc. Airbnb uses RoR, which although fairly new is now pretty mainstream.

I can't think of any really successful companies that use new-fangled frameworks and the latest rockstar languages.

Re:Ask HN: What is the simplest stack to learn? by kedean on Saturday August 15, 2015 @07:27PM (#10067354)
Eh, rails is ten years old now. That's pretty respectable, and it actually seems like it's on its way out.

It's also worth noting that Facebook is built on React for javascript, which falls under 'new-fangled frameworks'.

It's also also worth noting that MANY companies are still using a Java stack (with Tomcat or JBoss).

Re:Ask HN: What is the simplest stack to learn? by Raed667 on Saturday August 15, 2015 @07:40PM (#10067383)
I never understood why "new" companies would go to JAVA.
Re:Ask HN: What is the simplest stack to learn? by eswat on Sunday August 16, 2015 @08:23AM (#10068720)
I know of at least a few new startups started by old guard that used to work at IBM and Blackberry. Many stuck with Java because they were already familiar with it and adopting something new would have slowed them down.

You can argue that this would hurt hiring prospects. But many had their sights on attracting more engineers from these big tech as their first employees, who would have the same reasons for sticking with Java.

Re:Ask HN: What is the simplest stack to learn? by kedean on Sunday August 16, 2015 @11:52AM (#10069198)
Why are new companies the only ones that matter? A huge number of software companies (and, more importantly, non-software companies with a big software division) have been around since ~the dotcom bust, which is arguably when Java started gaining it's biggest ground.
Re:Ask HN: What is the simplest stack to learn? by flippant on Saturday August 15, 2015 @07:43PM (#10067392)
Not all companies use Java for the language. Twitter switched from Ruby to Scala for their backend because of the JVM's performance.
Re:Ask HN: What is the simplest stack to learn? by sheepmullet on Saturday August 15, 2015 @07:27PM (#10067349)
I'd pick a stack with a steep learning curve.

After all, the two most important skills in software development are the ability to learn and the ability to solve problems.

A stack with a steep learning curve is likely to improve both of these skills.

Re:Ask HN: What is the simplest stack to learn? by danieltillett on Sunday August 16, 2015 @07:09PM (#10070614)
This is certainly one way to set yourself apart from the crowd.
Re:Ask HN: What is the simplest stack to learn? by digitalzombie on Saturday August 15, 2015 @07:46PM (#10067402)
PHP (Laravel 4)/Postgresql or Cassandra/jquery

For back end, I run Vagrant + Ansible with PHP composer

Front end, it's bower + grunt

My other tools are Vim + Tmux.

For data and webscrapping I use scrapy (python framework).

The current project I have is what I've listed and going to learn Apache Spark and Elasticsearch. I'm currently stuck on learning Ansible to provision stuff.

I think many worthwhile things are going to require some learning curve whether it's steep or not is more up to the individual.

I'm putting off AngularJS, EmberJS, React stuff. I think it's to early. Likewise Docker and container are too early. I'm waiting on perhaps Docker 2.0 and some technical book out. Kubernates in my personal opinion is really an Alpha software there are many caveats.

I'm thinking of moving to Django/Python stack in my next project and tinkering with Apache Accumulo.

Re:Ask HN: What is the simplest stack to learn? by hackerboos on Sunday August 16, 2015 @12:04AM (#10067925)
If OP knows PHP then Laravel is a good choice.

I love Ansible, it's the only provisioning tool that really clicked for me.

I tried Chef a few years back to provision a single server and there were just too many moving parts - chef, chef-solo, chef-zero, knife, knife-solo, berkshelf.

I gave it a go again last week and it's gotten easier, although I still think the docs for chef-zero are not that good.

Re:Ask HN: What is the simplest stack to learn? by jnbiche on Monday August 17, 2015 @06:34AM (#10072206)
Learn the new "HTML5" JavaScript APIs: Canvas, WebSocket, WebRTC, Web Workers, File API, Geolocation, Web Storage, etc.

They're relatively easy to learn, well-documented, and are pretty in demand on the job market.

If you want to take things a step up, learn ES6 JavaScript. It has a lot of very nice improvements, but is a steeper learning curve than just learning new JS APIs.

Regardless of what you do, learn how to use modern, vanilla JS in place of jQuery. There is often no reason to use jQuery these days if you're targeting modern browsers. With `document.querySelector`, you can even replicate the selection capabilities of the jQuery `$`.

Re:Ask HN: What is the simplest stack to learn? by zhte415 on Saturday August 15, 2015 @11:28PM (#10067866)
Depends what you want to do.

That's it.

Don't obsess about changing too much. Speaking with a colleague, he was asked why he chose mainframe as his career.

"It doesn't change much. COBOL, DB2, CICS, JCL, etc. I can learn them and the applications to a deep level, and not worry about that learning going out of date. That lets me focus on getting deeper and understanding the business applications of why we do what we do."

Re:Ask HN: What is the simplest stack to learn? by DougWebb on Saturday August 15, 2015 @08:06PM (#10067434)
Every answer you get here will be pretty much useless to you unless you describe the kinds of web projects you expect to do going forward. Your current stack may be perfectly suited, or you may have been using an inappropriate stack for a lomg time and making life harder for yourself.

"The right tool for the job" requires consideration of both the tool and the job.

Re:Ask HN: What is the simplest stack to learn? by Someone on Sunday August 16, 2015 @06:24PM (#10070491)
HN uses Arc (http://arclanguage.org) :-)

Seriously: if you fear a steep learning curve, replace one item of what you use now. For example, replace MySQL by PostgreSQL, then replace PHP by something else, then move out JQuery.

Re:Ask HN: What is the simplest stack to learn? by mindcrime on Saturday August 15, 2015 @06:10PM (#10067142)
I do a lot of work using Postgres -> Grails -> jQuery, and I'm just now starting to think a lot more about picking a fancy new JS front-end framework to focus on. I'm torn between React and Angular, but leaning towards starting to invest time learning React.
Re:Ask HN: What is the simplest stack to learn? by jnpatel on Saturday August 15, 2015 @07:08PM (#10067309)
I found this tutorial featured previously on HN really helpful to start my transition from jQuery to React.

http://reactfordesigners.com/labs/reactjs-introduction-for-p...

Re:Ask HN: What is the simplest stack to learn? by Raed667 on Sunday August 16, 2015 @07:01AM (#10068581)
I actually enjoyed this intro to react. (Even tho PrivacyBadger gave me a hard time with JSBin).
Re:Ask HN: What is the simplest stack to learn? by mindcrime on Sunday August 16, 2015 @03:00AM (#10068209)
People Who Know Just Enough jQuery To Get By

Hah, that description fits me to a "T". Thanks for sharing!

Re:Ask HN: What is the simplest stack to learn? by eswat on Sunday August 16, 2015 @08:28AM (#10068726)
I find learning React more fun because it’s a tiny part of what can make a webapp work, compared to Angular. So you have to sweat more details about what to use to compose the rest of your app, which makes you dive deeper into how to use the JS ecosystem effectively.

https://github.com/enaqx/awesome-react was a great resource for this dive deeping (99.9% sure there’s a similar list for Angular if you went with that.)

Re:Ask HN: What is the simplest stack to learn? by Mc_Big_G on Saturday August 15, 2015 @11:24PM (#10067856)
Ember and rails compliment each other very well with many gems like active_model_serializers and devise on the rails side and many add-ons for ember like ember-simple-auth-devise. ember-cli saves weeks of environment setup and includes automated test support.
Re:Ask HN: What is the simplest stack to learn? by avinassh on Sunday August 16, 2015 @12:57AM (#10068014)
> Ember and rails compliment each other very well

Is there any JS MVC framework which compliments well with Django?

Re:Ask HN: What is the simplest stack to learn? by makufiru on Monday August 17, 2015 @05:06PM (#10076128)
Both Angular and React are very easy to drop in and integrate with Django. Ember isn't a big stretch either, as you can use any framework with anything that serves up a restful API
Re:Ask HN: What is the simplest stack to learn? by loopydorothy on Saturday August 15, 2015 @06:09PM (#10067133)
I have been working with MongoDB/Node.js/Express/Angularjs and I think it is one of the easier stacks to work with because you are using javascript for the database, client-side, and server-side.
Re:Ask HN: What is the simplest stack to learn? by Firegarden on Sunday August 16, 2015 @05:46PM (#10070383)
Learn C#. It is a beautiful well formed language. The concepts are seen in a lot of other languages. Also it is now open source and about to blow up 100x because it runs on Linux.

Don't learn JavaScript until you have understood C#.