News for hackers. Stuff that matters.
Re:Discover Flask by devishard on Sunday February 21, 2016 @04:52PM (#11146768)
I don't think many python devs are espousing Python for the client side. I use react/underscore/Jasmine/sinon with ES6 run through Babelify for the client side.

Sharing logic between client and server side means that your client and server side don't have clearly-defined responsibilities. The one exception to this might be input syntax validation, but generally that's a place where you don't want to roll your own anyway.

Re:Discover Flask by auvrw on Sunday February 21, 2016 @10:11PM (#11148168)
idk, could imagine wanting computation to run on the client when it's a desktop (to save server cycles) or the server when it's mobile (to save battery)... not a level of optimization i practically run into, but not an unreasonable example.

i guess a better thing to say is "exactly": specs often change and responsibility gets shifted around. so "runs everywhere" can be useful, whether it be js or otherwise.

Re:Discover Flask by devishard on Tuesday March 01, 2016 @11:59PM (#11208169)
I disagree, that's a totally unreasonable example. Not only is that a bizarre combination of requirements, but that's not a good way to approach meeting those requirements. I'd write the code to run on the server and then profile and optimize on the server. JavaScript if never going to outperform hot spots rewritten in C.

You're forgetting the first rule of optimization: profile.