51 points · by stevetodd · 10y ago · 48 comments
For PHP it depends on what you want to do, but Laravel (or Lumen) may help you A LOT!
It is super boring by these standard:
- You can find setup tutorials everywhere
- Almost every question you might think of has been already answered
- It will do what it says it will do
(Also don't forget to install phpMyAdmin, because who wants to write SQL in a terminal)
I recently did a project where I wrote the same API in Ruby/Sinatra, Node/Express and PHP/Slim; Connected it to S3, GCloud and Azure for assets and MongoDb for data; and then deployed each permutation to Heroku, Azure, App Engine and EB.
For "under the api barrier", Heroku was the only one that ran everything smoothly; S3 is the easiest to interact with, and as I worked through the project, I switched from Ruby to Node as the prefered platform.
For "over the api barrier", where users actually use the project, it depends on the project requirements. In this case no dependancies was a hard requirement, hence Vanilla JS. But if you have a lot of UI, you'd need a lib for both JS and CSS and it depends on teammates pref, organization pref and legacy.
My 2 cents.
http://motherfuckingwebsite.com/
Using absolutely no CSS at all probably isn't what you want, unless you have a fetish for serif fonts. But a little can go a long way.
Testing + deploying to either Azure/IIS is also one-click simple and very easy to teach Jr. Devs to step into a solution and become productive with very little guidance.
You can do a lot with just that. Here's an example of what I've done with just that:
The only caveat to this is on the front-end JS side of things. jQuery is still solid, but the language and ecosystem has been so not great over the last decade that something a bit newer might be worth looking at (maybe look at 3-5 year old libs/frameworks instead).
None of these are really great technologies, but they work, have infinite documentation, and it's easy to find people who know them.
For a small REST api, I really like Dropwizard on top of something with a solid raw driver, like Redis or Cassandra. If you want to go relational, I like the MyBatis model of persistence over the Hibernate style ORM, it gives you so much more flexibility and power over modeling, while still giving you an easy out for swapping out datasources.
I don't really know of a good drop-in replacement for what Spring does, unfortunately, because Spring is really a conglomeration of so much different stuff. My big issue with it isn't so much what it does, as the fact that it encourages really bad mindsets in developers who start their career with it. I can't count the number of times I've asked someone to describe what annotations are, and the only answer they can give is about Spring (the worst part is when they attribute things from Jersey or JPA to Spring), or how they reduce the need for XML configuration (in Spring, yeah, that is true).
Nobody's idea of excitement.
I miss well tested and 'best practice' pattern derived systems...
Javascript - either no Javascript, or very simple vanilla Javascript. No transpiling, no Typescript, no JSX, no ES2015.
CSS - Regular ol' CSS. Set a limit on number of lines of CSS you're willing to introduce per controller action and try and keep your project honest to that number. Avoid frameworks if possible, pick a simple framework for grid layout if you really need it.
Django templating and bootstrap to make things look OK.
Actually language doesn't matter so much as choice of frameworks. Basically choose what you know works and avoid hype.
Also minimalism is a better indicator than age. A brand new simple framework is better than something old but over engineered.
I recommend just using SQLite for the MVP. Launch then iterate.