Live data from Hacker News

Show HN: My new JavaScript MVC framework

lhorie.github.io

51–60 of 167 posts

Re: Show HN: My new JavaScript MVC framework

#51
post #36

Here are my thoughts, but you won't like them. Stop with the frameworks. Learn Javascript. Learn CSS. Learn HTML. You'll find pretty quickly that what you need are libraries , not frameworks. Things like jQuery, underscore, etc...

That's similar to my viewpoint. Stop with all the frameworks - what new, powerful functionality will it provide your users that existing things can't do (ie JQuery, raw JS)?

the point of a framework is speedy development. less lines of code for results. the tradeoff is often bloat, which one should (ideally) refactor out later. Angular can get overwhelmingly slow if you're not careful with your code, but gosh dang, you sure can whip an app up pretty fast

Re: Show HN: My new JavaScript MVC framework

#52
post #36

Here are my thoughts, but you won't like them. Stop with the frameworks. Learn Javascript. Learn CSS. Learn HTML. You'll find pretty quickly that what you need are libraries , not frameworks. Things like jQuery, underscore, etc...

    >Stop with the frameworks. Learn Javascript. Learn CSS. Learn HTML. 
That's good advice to someone that might be asking about using a framework. But to someone that has written a framework they probably have a pretty good understanding of Javascript already, and if they didn't it will have improved greatly by the time they are done.

Re: Show HN: My new JavaScript MVC framework

#54
post #9

The tests don't make sense. jQuery is not an MVC framework and should not be tested as if it were. It's worth noting that both Backbone and Angular use some version of jQuery (lite or otherwise), so comparing that to your own way of using jQuery doesn't correlate. I could use jQuery to append elements in a way that was much faster than and just as short as what you've done in your test. Also, did you know you can app…

It has reached the point where Javascript Framework coders don't know Javascript. Looks like Javascript IS the Assembly of the Web.

I consider myself a JS-person, but if I were honest, I speak jQuery/backbone, not pure Javascript.

Re: Show HN: My new JavaScript MVC framework

#55
post #36

Here are my thoughts, but you won't like them. Stop with the frameworks. Learn Javascript. Learn CSS. Learn HTML. You'll find pretty quickly that what you need are libraries , not frameworks. Things like jQuery, underscore, etc...

A developer I worked with several companies ago told me the same type of thing about learning OO "Its not necessary just learn to code better".

The fact of the matter is large code bases need to be supported over time by diverse groups of people and frameworks help enforce standards that get people up to speed quickly.

That developer I knew, he has been chronically unemployed for the last 5 years because he lacks the skills to work as part of a team. Great coder though!

Re: Show HN: My new JavaScript MVC framework

#57
post #15

I don't mean this in a bad way, but do we really need another Javascript framework? Wouldn't author's energy be more useful when contributing to one of the existing ones?

The author provides an insightful comparison of Mithril to existing frameworks:

http://lhorie.github.io/mithril/comparison.html

Re: Show HN: My new JavaScript MVC framework

#60
post #18

Earlier quoted context omitted.

Entirely agreed, this is what I was about to say as well. Being able to use html templates for me makes apps much less confusing and much more organized. Moving your html into your javascript just doesn't seem right. If there was a way that it would accept a mustache/underscore/other precompiled template I'd be all about it. But constructing html out of javascript functions and objects just doesn't sit right with me.

I actually had the same thought, but I also get that some people don't like HTML-based templates for various reasons. My next thought was whether or not you could just augment this framework by providing a utility that converts an HTML-based template into the view that mithril expects and make both camps happy. As an optional contrib module, of course -- I'm not suggesting he start heaping on additional framework fea…

Well, there is such a tool, actually. http://lhorie.github.io/mithril/tools/template-converter.htm...

But while me and my coworker have been trying it out there seem to be quite a few bugs with it, and I'd much rather have it done at runtime (precompiled for production build) then have to translate it from my HTML-based template every time I make a change.

Post reply on HN