News for hackers. Stuff that matters.
Re:React Router v4 FAQ by wpietri on Friday September 16, 2016 @12:42AM (#12511882)
I was just talking with an acquaintance who's at a company that invested millions of developer-dollars in cutting-edge tech. 7-10 years later, after a long period of a few developers keeping everything together with duct tape, the whole thing is getting thrown out.

Why? Well, some of it's solid code. That might be worth keeping. But some of it's technologies that fell out of fashion. And there's a bunch of stuff that people wrote in a frenzy, so there's a bunch of tech debt. And even if they stripped it down to the bones, there's a lot of upgrading to do just to get back to where they could do new work with modern libraries. From the business perspective it was easier just to glue together a bunch of outsourced services.

I'm sure those developers all meant well by picking cutting-edge tech. But as Dan McKinley says, we should generally choose boring technology [1]. As you describe, the costs of keeping up with interesting things is substantial. On rare occasions, it's really worth paying that cost. But, mostly, as with my acquaintance's company, the costs can accumulate while your attention is elsewhere, pushing code bases into a sort of technical bankruptcy.

[1] http://mcfunley.com/choose-boring-technology

Re:React Router v4 FAQ by deegles on Friday September 16, 2016 @12:45AM (#12511888)
What would be the boring technology to pick for starting a web + backend project today?
Re:React Router v4 FAQ by parasubvert on Friday September 16, 2016 @12:57AM (#12511937)
Several boring but good things

Spring Boot (Java) is really simple and boring yet a lot of capabilities underneath

Also, ASP.NET (c#) - similar deal

Django or Flask (Python)

Backbone.js, jQuery, Bootstrap (JS front end)

Express (JS backend)

Sinatra (Ruby)

PHP 6

Maybe Angular or Ember or even basic React+Flux in the front end if you can contain your enthusiasm

For hosting, find a boring PaaS and avoid the container mud wrestling

For pity's sake use PostgreSQL or MySQL, MongoDB burns

Re:React Router v4 FAQ by exclusiv on Friday September 16, 2016 @05:04AM (#12512743)
For my first project ever on Java - I did an API on Spring Data Rest and connected to a db I designed on Oracle (requirement).

I was pleasantly surprised at how much functionality I got for free once setup. I probably spent as much time on setting up Oracle and xml/config stuff as dev but it was still super fast to get a solid API built.

Re:React Router v4 FAQ by wpietri on Friday September 16, 2016 @12:10PM (#12515009)
I really like how you, tomca32, and nous all are suggesting multiple language/framework options. I think a lot of the way these technology choices go wrong because people want to pick the best option, rather than a good-enough option that matches local conditions. The former strikes me as a local, narrowly focused tech optimization; the latter, looking at the bigger economic picture of the project.
Re:React Router v4 FAQ by sjnair96 on Friday September 16, 2016 @01:56AM (#12512129)
Django or Flask (Python) Express (JS backend) Sinatra (Ruby)

What would you suggest out of these for quick prototyping and just side projects?

Re:React Router v4 FAQ by Godel_unicode on Friday September 16, 2016 @02:13AM (#12512197)
Postgres and Flask. Create it as a package, not an individual module. Front-end it with gunicorn and nginx. All monitored by supervisord.

https://realpython.com/blog/python/kickstarting-flask-on-ubu...

Re:React Router v4 FAQ by int_19h on Friday September 16, 2016 @08:30PM (#12518422)
Bottle (Python). It's very minimalist and tries very hard to get out of your way, but it usually provides enough for prototyping and quick spur-of-the-moment things.

The latter is also when you might appreciate the fact that its markup language is really just embedded Python (PHP style) - you're trusted to not abuse the power, but you define what "abuse" is.

Re:React Router v4 FAQ by kofejnik on Friday September 16, 2016 @07:14AM (#12513191)
Flask is awesome, sure, but you will have to do a lot of mundane stuff with Psycopg2 (may all gods help you if you choose to dive into sqlalchemy!). OTOH, Rails ORM is awesomely simple and just works for 95% of the cases.
Re:React Router v4 FAQ by needcaffeine on Friday September 16, 2016 @02:48AM (#12512293)
There is no PHP6. Went from 5.6 to 7.
Re:React Router v4 FAQ by parasubvert on Friday September 16, 2016 @11:40AM (#12514751)
Yeah I meant PHP 5.6 , my bad
Re:React Router v4 FAQ by wyager on Friday September 16, 2016 @12:49AM (#12511907)
Probably PHP and plain JS, which is why I think that argument doesn't make sense. New web stuff is currently so much better than the old alternative that dealing with tumultuous stability is often worth it.
Re:React Router v4 FAQ by tomca32 on Friday September 16, 2016 @01:07AM (#12511969)
I think there's a middle road. What you're mentioning is pretty extreme. Rails/Django/Spring and Angular/Ember are all considered boring and very stable while not nearly as outdated as your example.
Re:React Router v4 FAQ by wpietri on Friday September 16, 2016 @12:02PM (#12514935)
Care to show me your math on that over a 10-year time scale?

I'd be curious even to see it for the technologies you mention. But as others point out, there are plenty of things newer than PHP that have become pretty boring.

Re:React Router v4 FAQ by HereBeBeasties on Friday September 16, 2016 @03:21AM (#12512428)
Is it? I used to happily make very complex sites using Apache Wicket on top of Java. It lets you make composable, extensible components (including inherited markup). It is type safe (the cools kids are finally rediscovering how important this is for maintainability with Flow & TypeScript). It supports replacing components using AJAX. Sure, it's not great for client-side SVG rendering or the various other cool things you can do with React and co, but hand on heart, I can't honestly say I find doing all this stuff in JavaScript to be "so much better". Quite the opposite for the majority of intranet-type sites, in fact.
Re:React Router v4 FAQ by n0us on Friday September 16, 2016 @12:49AM (#12511905)
python/ruby/java on backend. React/Ember/Angular on front end. The core libraries are relatively stable, it's mostly supporting libs that will burn you if you aren't careful.
Re:React Router v4 FAQ by tomca32 on Friday September 16, 2016 @01:03AM (#12511959)
Rails on the backend. Angular on the frontend. Both are big, stable frameworks with tons of support, plugins, thousands of tutorials / SO Q&As. Whatever problem you encounter with those, somebody already solved it.

This is the case with any mature framework. Rails and Angular just happen to be my favorites, but Django, or Spring and Ember can probably work just as well.

Re:React Router v4 FAQ by majc2 on Friday September 16, 2016 @08:18AM (#12513482)
Angular 1 to Angular 2 anybody!?
Re:React Router v4 FAQ by elliotec on Friday September 16, 2016 @12:35PM (#12515218)
If you are using Rails, Angular is rarely necessary from my experience. Even if you have a lot of SPA-type functionality, jQuery can handle it pretty well in the asset pipeline.
Re:React Router v4 FAQ by tomca32 on Sunday September 18, 2016 @01:01PM (#12526043)
I agree with that. I felt that the question really asked what frontend boring framework would I choose, but you are right.

I try to avoid having to put up Angular or anything big on the frontend and just scrape by with jQuery. However, when the interactions are supposed to be "rich" and have a lot of animations, drag/dropping, complex forms that validate on the fly, etc etc...things can get really complex. Then you're back to the old dilemma: you are either going to introduce a full-fledged framework, or write one yourself. In those situations, I pick Angular.

- Angular 2 also looks fine, but that defeats the question which asked about "boring", stable frameworks

Re:React Router v4 FAQ by elliotec on Friday September 16, 2016 @12:34PM (#12515207)
Rails and jQuery. Seriously. This is at the top of list of the most maintainable, well documented web app methods that exist.
Re:React Router v4 FAQ by feider on Friday September 16, 2016 @12:51AM (#12511918)
java
Re:React Router v4 FAQ by n0us on Friday September 16, 2016 @12:47AM (#12511897)
One of my favorite articles. Also another argument for why we need a boring, stable, un-opinionated, cross framework compatible routing library.