Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
The Internet Open Source Programming

There's A New New JavaScript Framework (infoworld.com) 70

An anonymous reader quotes InfoWorld: Mithril, an open source JavaScript framework for single-page applications, is looking to best Facebook's React, Google's Angular, and Vue JavaScript tools in performance and ease of use. The framework is small and fast, and it provides routing and XHR (XMLHttpRequest) out of the box. Mithril also offers benefits in relative density, lead developer Leo Horie said. "It's possible to develop entire applications without resorting to other libraries, and it's not uncommon for Mithril apps to weigh a third of other apps of similar complexity." Horie said that the framework feels closer to vanilla JavaScript.

Mithril's website features a comparison to Angular, React, and Vue. Mithril, for example, offers much quicker library load times and update performance than React, and it has a better learning curve and update performance than Angular. Compared to Vue, Mithril supposedly offers better library load times and update performance.

Since its initial release, version 1.0.1 has added performance improvements in IE, while 1.1.0 added support for ES6 class components and support for closure components.
This discussion has been archived. No new comments can be posted.

There's A New New JavaScript Framework

Comments Filter:
  • by Anonymous Coward on Saturday April 01, 2017 @10:39AM (#54157699)

    Please tell me this hideous new design - presumably for millennials that can't read more than a summary - is an April fools joke

    • by Anonymous Coward
      You're a regular sherlock holmes
    • by Anonymous Coward

      It's Slashdot's new cross-platform look and feel, kinda like Windows 10.

    • The whole April fools thing sucks. Can't really get behind anything today because it might not be true.
    • by Anonymous Coward

      Slashdork Beta is back with a vengeance. Get use to it, fag.

    • Please tell me that everybody blaming everything on millennials is a fad that's going to end eventually?
  • by Anonymous Coward

    Mithril has been around since at least 2014 (first commit to github was in March 2014), which is practically geriatric in the rockstar JavaScript world.

  • They put a lot of work into this, even down to the github commit history. ;)

  • OMG - another! (Score:5, Interesting)

    by cjonslashdot ( 904508 ) on Saturday April 01, 2017 @11:11AM (#54157791)
    Article, "How it feels to learn JavaScript in 2016": https://hackernoon.com/how-it-... [hackernoon.com]
    • by Anonymous Coward

      It's 2017, all the cool kids moved to completely new and awesome frameworks!

    • Re: (Score:2, Interesting)

      by Anonymous Coward

      Mithril is actually the opposite of this. It can be used in plain ES5, without a bundler or extra tooling (load it in a script tag from a CDN and you're off). v1 runs on IE9+ without polyfills (the previous version ran on IE6 with some Array.prototype additions).

      The documentation is both concise and complete, and the community is lively. So you can get started in a matter of hours or maybe days depending on how you're proficient with JS.

      You can take advantage of things like JSX (for the views) and TypeScrip

    • Article, "How it feels to learn JavaScript in 2016":
      https://hackernoon.com/how-it-... [hackernoon.com]

      OMG. No wonder so little stuff actually gets done these days. I'm going to go back into my cave and pretend I didn't read that.

      And yes, I still use jQuery. When people ask me why, I say, "Because it works."

  • That's wonderful (Score:4, Interesting)

    by jlowery ( 47102 ) on Saturday April 01, 2017 @11:22AM (#54157829)

    I just got my head around Swagger, which has umpteen implementations to choose from, and now tackling GraphQL, which has umpteen implementations to choose from. In the meantime, still learning Javascript2015 and trying to use Seneca for microservices.

    And while I'm doing that, I have a legacy PHP app to deal with, a legacy Nodejs app we're trying kill, a new Nodejs app that runs our site. And... documenting/redesigning our data model and architecture.

    The biggest problem with GraphQL is that much of the documentation assumes familiarity with one or more of: Relay, React, Hapi, Redux, Sequelize, GraphQL plugins (many) and on and on. And... documentation and examples before 2016 tend to be outdated or not working.

    It takes me weeks just to analyze all the options available, and pick something that isn't going to throw a dozen new technologies at the team, some of which might already be abandoned.

    So, yeah, JavaScript fatigue.

    • by sjames ( 1099 )

      You could just code it up in Javascript. It might even take less time than analyzing the options and learning what's changed in them since you started the analysis.

  • by slashdice ( 3722985 ) on Saturday April 01, 2017 @11:29AM (#54157855)

    This is probably the first year (and yes, I was there for OMG ponies) that slashdo^Wslacker news hasn't sucked a bag of dicks on 4/1.

    You should probably keep this theme.

  • ...and Inferno [github.com] is much faster.
  • I was starting to worry.

  • I know Angular and friends are bloated, but unless i'm missing something, is this library's pattern really to do all binding by creating the markup from JavaScript... because that is some ugly shit that MVCs are supposed to let us avoid.
  • Sadly, this is NOT an April Fool's joke.

    Because somebody thinks that HTML belongs wrapped in Javascript.

    And, sadly, this isn't the first time this has happened.

    https://www.youtube.com/watch?... [youtube.com]

    • Because somebody thinks that HTML belongs wrapped in Javascript.

      Yeah, that is an idea that makes little sense.

      • Most modern mobile or other "single page" web applications that are written in JavaScript (AngularJS / ReactJS / ProcessingJS etc.) either have a very simple static HTML and get enhanced via JS or are completely written in JS.

        I e.g. program right now with Vaadin. A Java framework running completely on the server, pushing GUI update events via WebSockets to the client, and the client is rendering everything using JavaScript. There is basically no HTML involved at all.

        You program your application like a Java/

        • You explained how it works. I know how it works, my point was that it's a bad idea. Java/Swing isn't particularly great, either.
          Maybe Vaadin is good, I don't know.
          • What is wrong with Swing?

            I don't think that generating HTML from JavaScript is a bad idea. Some people don't like paradigm switches. Bottom line the HTML generation is done by the framework/library, so the programmer only has to deal with one "concept".

            I for my part I'm pretty bad with HTML, it never interested me. When i can construct a GUI - like with GWT/Vaadin . with function calls instead of manually creating HTML - setting ids or classes or names - as in having real objects, I'm up for it.

            • HTML confuses you? REally? :/ ?
              • No, why do you think it confuses me?

                However it is a difference in "creating" HTML that is rendered in a way you want, versus reading HTML.

                I'm a software architect and software engineer ... I don't write HTML ;D ... my programs do.

                In our times HTML is a quite complex thing, considering you mainly use CSS now to get all the things done you used to do in plain HTML 15 years or 20 years ago.

    • by Paul Fernhout ( 109597 ) on Saturday April 01, 2017 @10:19PM (#54159271) Homepage

      HTML is a useful way of encoding static documents -- but it does not belong in a single-page application in my opinion. Stuff like JSX or Angular2 templates takes a standard (HTML) and makes adhoc changes -- which is a bad thing to do to a standard!

      Mithril does the right thing by generating DOM from real programming code. If you use Mithril from TypeScript like I do, all that DOM-generating code is easily refactorable using an IDE just like any other code.

      If you also use Tachyons.js or similar for CSS, you can also do styling in the same file -- like any standard development system in the past (like Java or Python or Smalltalk).

      It's really sad that JavaScript developers are forced to be less productive their entire careers and have ugly lumps of junk in the middle of their source code just in case some "designer" might want to spend an hour playing with HTML and CSS in the application.

      Ask a Java programmer if they want to code UIs that way -- with three files for every UI page written in three different languages -- three files that most IDEs can't even connect together for navigation and semantic search and refactoring.

      My biggest Mithril app to date:
      https://github.com/pdfernhout/... [github.com]
      https://narrafirma.com/try-nar... [narrafirma.com]

      It's really unfortunate some Slashdot editor saw fit to announce this on April Fools because it makes it less likely people will take is seriously.

      • And what, in 100 words or less, does your application "Single-page web app for Participatory Narrative Inquiry (PNI)" do, exactly?

        • Thanks for asking. Participatory narrative inquiry is an approach in which groups of people participate in gathering and working with raw stories of personal experience in order to make sense of complex situations for better decision making. Essentially, the NarraFirma app leads someone step-by-step through a process of story gathering, sensemaking from those stories, and possibly intervention based on those results. That process is defined in a 700 page textbook my wife wrote: http://workingwithstories.org [workingwithstories.org]

        • I loved your Chronicles!
          https://www.amazon.com/Chronic... [amazon.com]
          "In the distant future mankind creates sentient cybertanks patterned on the human brain to help fight their alien enemies. Then, inexplicably, the humans vanished. They just went away. All that is left of the human empire are the cybertanks who, in their own way, keep the human civilization alive. With an intelligence based on the human psyche, the cybertanks continue to defend human space, but also perform scientific research, create art, form commit

          • I loved your Chronicles!
            https://www.amazon.com/Chronic... [amazon.com]
            And I also liked the other three novels you wrote about your adventures too (including one about when a backup copy of your program was activated back on Earth)!

            Oh, that's nothing. Hell, I'm so old that I went to high school with Jesus. He signed the stone tablets my yearbook was carved on.

            You know the Dead Sea? I was there when it was only sick. True story. And do any of you ever thank me for planting all those redwoods in California? No, you ungrateful young'uns!

  • it has a better learning curve... than Angular.

    That's not saying much.

  • by Anonymous Coward

    So so tired of new JavaScript frameworks.

    How is one supposed to plan long term projects and learn all these new frameworks and pick the "right" one that's going to last and not be abandoned or incompatible with new versions...

    It's ridiculous. JavaScript developers need to figure this out or lose credibility as serious developers in it for sustainable development.

Dennis Ritchie is twice as bright as Steve Jobs, and only half wrong. -- Jim Gettys

Working...