News for hackers. Stuff that matters.
Re:The Cost of Frameworks by bretthopper on Tuesday November 17, 2015 @02:37PM (#10583442)
Re:The Cost of Frameworks by lhorie on Tuesday November 17, 2015 @04:39PM (#10584143)
(Disclaimer: I'm the author of Mithril.js)

Is it my impression or is Paul on some sort of a crusade to downplay the dev ergonomics of React and try to convince people that it's "slow"?

TodoMVC benchmarks have been done before: https://github.com/pygy/todomvc-perf-comparison . So sure, there's room for performance improvements in mainstream frameworks, and React is not the fastest thing in the universe, but come on. Maintaining a large project in vanilla js is largely equivalent to writing code in assembler when there are good C compilers: it's doable, and required in a handful of situations, but not really wise for 99% of real world projects.

Re: Tom's response: Something that he didn't mention (which is not surprising since he's an Ember dev) is that frameworks do sometimes detract from end user experience by imposing "opinionated" complexity and assumptions that might prevent devs from doing certain specific things and settling with suboptimal UX - the old adage of "if you want to deviate from the holy way(tm) you're on your own"

I'm kinda in the middle of the two opinions: it's definitely important to have access to the "metal" (both in terms of actually being able to code against low level APIs, and in terms of the amount of effort required to wade through framework abstractions in order to get there), but even using vanilla js, a complex app does need a "framework" (in the sense of having rules for where things should be and how they should interact with one another, and in the sense that any non-trivial app will have "library-level" plumbing). So, why not meet in the middle and use a lightweight framework that does 95% of things well enough to actually be used in non-trivial mobile apps[1] but that doesn't have high enough byte count to be bloated?

[1] http://en.lichess.org/mobile

Re:The Cost of Frameworks by untothebreach on Tuesday November 17, 2015 @04:55PM (#10584260)
Seems to have gotten the HN hug-o-death, so here is the cached version: http://webcache.googleusercontent.com/search?q=cache:cPuIbiv...
Re:The Cost of Frameworks by wwweston on Tuesday November 17, 2015 @04:20PM (#10584027)
> frameworks let you manage the complexity of your application

Close.

Front-end frameworks are one solution to the problem of managing the complexity involved in making an app.

After working with a few of them, I'm not really sure that they're the best ones.

Re:The Cost of Frameworks by kornish on Tuesday November 17, 2015 @04:55PM (#10584259)
Could you elaborate on what some other solutions are?
Re:The Cost of Frameworks by matthewtoast on Tuesday November 17, 2015 @06:26PM (#10584781)
I'm not the parent commenter but here are a few that come to my mind:

    - Functions
    - Abstraction
    - Modularity
    - Design patterns
    - Programming paradigms
    - DSLs
    - Conventions for naming/formatting/arrangement
Although I grant that any of these could possibly work even better when codified into a framework.
Re:The Cost of Frameworks by collyw on Wednesday November 18, 2015 @04:19AM (#10586748)
Frameworks will be implemeting a number of these for you.
Re:The Cost of Frameworks by solidr53 on Wednesday November 25, 2015 @05:40AM (#10626506)
Microservices
Re:The Cost of Frameworks by yomism on Tuesday November 17, 2015 @03:52PM (#10583864)
Guy that makes a framework replying that frameworks are good. Aha....
Re:The Cost of Frameworks by pkozlowski_os on Tuesday November 17, 2015 @03:57PM (#10583888)
Well, I believe it is a "good thing" when you believe in what you do and got arguments to back up what you believe in.
Re:The Cost of Frameworks by btrask on Tuesday November 17, 2015 @04:17PM (#10584015)
Advocate something you do: cynical self-interest

Advocate something you don't do: hypocrite

Re:The Cost of Frameworks by talles on Tuesday November 17, 2015 @04:19PM (#10584025)
Guy that makes a framework thinks that frameworks are good. Perfect sense to me.
Re:The Cost of Frameworks by timrpeterson on Tuesday November 17, 2015 @03:57PM (#10583886)
I see what you are doing but, that's not relevant to his point.