News for hackers. Stuff that matters.
Re:React Tutorial: Cloning Yelp by Cyph0n on Thursday May 26, 2016 @03:24PM (#11780759)
I have no problem with the article or its goals, but my issue is why is so much configuration even necessary for a "large" frontend JS application?

Why don't we see this kind of configuration hell in other major languages? Look at Python, or Scala, or Go, or even Rust. Do you see projects requiring 10 dependencies just to setup a testing environment? Or having to manually integrate every piece of the build process instead of using pre-made plugins?

We don't even have to talk about the extremely low average lifetime of libraries in the JS world; it's like a perpetual popularity contest!

Re:React Tutorial: Cloning Yelp by JustSomeNobody on Thursday May 26, 2016 @03:35PM (#11780831)
> We don't even have to talk about the extremely low average lifetime of libraries in the JS world; it's like a perpetual popularity contest!

This is the awful truth of programming in general today. Sadly, it's a train not many of us can jump off of because of employ-ability. If popular tool/framework/language/etc is not on your resume, you're not getting called back. If popular tool/framework/language/etc is not being used by anything in your Github, you're not getting called back.

Re:React Tutorial: Cloning Yelp by Cyph0n on Thursday May 26, 2016 @03:40PM (#11780864)
Definitely true in general, but I think it's more noticeable in the JS world. Look at Java + Spring, C# + ASP.NET, Python + Django, Ruby + Rails: these are all examples of popular frameworks that have been around for much longer than any single JS library (except jQuery), and are all still in high demand.
Re:React Tutorial: Cloning Yelp by tracker1 on Thursday May 26, 2016 @06:41PM (#11782270)
I believe ASP.Net and Spring predate jQuery.
Re:React Tutorial: Cloning Yelp by cloudjacker on Thursday May 26, 2016 @05:37PM (#11781862)
This is primarily a JS thing. Many nontechnical people that look over your resume don't know that Node Backbone React Angular and the random data visualization libraries are all "Javascript"
Re:React Tutorial: Cloning Yelp by zxcvcxz on Thursday May 26, 2016 @05:41PM (#11781897)
What are you doing with python and go that "just works"? Writing scripts? It takes a lot more work to build a yelp clone with python than it does with react.
Re:React Tutorial: Cloning Yelp by Cyph0n on Thursday May 26, 2016 @06:43PM (#11782278)
> What are you doing with python and go that "just works"?

Anything you want. Dependency management is taken care of by a simple `pip install flask`, or a requirements.txt. The rest depends on the packages you are using.

> It takes a lot more work to build a yelp clone with python than it does with react.

And why do you think that? I could build a simple and performant Yelp clone with full authentication, admin access, and persistence using only a handful of Python packages:

* Flask: web app microframework

* Jinja2: view templating language

* SQLAlchemy: database ORM

* Psycopg: Postgres database driver

* Flask-SQLAlchemy: Flask plugin for SQLAlchemy

* Flask-Login: authentication, accounts

* Flask-Admin: administration

Of course, just like in the case of React, you'd need HTML + CSS for styling, and JS in case you'd like interactive elements. And finally, to run the app in production, I'd use Nginx + uWSGI.

Re:React Tutorial: Cloning Yelp by EdwardDiego on Friday May 27, 2016 @12:08AM (#11783853)
> Anything you want. Dependency management is taken care of by a simple `pip install flask`, or a requirements.txt.

And what if I want to use multiple versions of a given library for my development? Suddenly I'm learning virtualenv...

Re:React Tutorial: Cloning Yelp by afarrell on Friday May 27, 2016 @04:31AM (#11784660)
Or, if you want to use compiled code and have it be installable on multiple OSs, conda
Re:React Tutorial: Cloning Yelp by zxcvcxz on Thursday May 26, 2016 @06:57PM (#11782365)
Yeah so it's really not very simple.
Re:React Tutorial: Cloning Yelp by rrrhys on Thursday May 26, 2016 @10:58PM (#11783593)
"My tool that I'm intimately familiar with is easier than that tool that I don't know much about"
Re:React Tutorial: Cloning Yelp by Cyph0n on Thursday May 26, 2016 @07:06PM (#11782418)
Well yeah, it's not really an apples to apples comparison. A Yelp clone written in React lacks user auth, persistence, and admin.
Re:React Tutorial: Cloning Yelp by Drdrdrq on Friday May 27, 2016 @05:54PM (#11789317)
And you will be able to use the same python tools for years to come. Good luck with JS frameworks there!