5 ms·
Mavo: An HTML-based language for creating many kinds of web applications
- jdironman 9y agoThe only thing I do not like about it is the math functionality is quiet limited. https://mavo.io/docs/mavoscript/#math-functions https://mavo.io/docs/mavoscript/#math-functions You would have to nest functions to get proper order of operations. Using function names instead of actual symbols. Seems like it would be easier to do something like math(a+b/2) and have it know that whatever was inside that function is math to be parsed. I might be nitpicking.
- jlebrech 9y agoshame, that's the part i dislike the most
- pplonski86 9y agowhy?
- jlebrech 9y agobecause markup is so 1990
- talmand 9y agoThat's strange, I still use markup every day in the current year. To add to the strangeness, every website I inspect with browser tools shows me it has HTML. Are all websites from the 90's?
- Blahah 9y agoIt's possible to make arbitrarily sophisticated websites without serving any HTML except a script tag. The browser shows you HTML to represent the DOM, but it doesn't mean sites are serving any significant amount of it. (most still are though - I was just pointing out that it's possible to avoid it almost completely)
- chris__butters 9y agoIt's worth noting this is tailored towards web applications where as HTML can be used by any website - marketing, brand experience or otherwise including web app.
- SomeStupidPoint 9y agoJokes on them -- I have JS turned off on my phone except a few websites. I'm not paying outrageous mobile bandwidth fees for bloated websites and ads that cost me more in bandwidth than they make. So for 90% of my browsing, I'll click on their page, see nothing, and move on with my day.
- chris__butters 9y agoJS is used for a lot more than just adverts, just install an adblocker on your phone
- SomeStupidPoint 9y agoMany websites use JS that is slow and jumpy -- bloated -- on a phone, especially a cheaper one like I use. Also, I like to use Chrome on my phone, so installing an adblocker is a lot of work for little benefit. It would slow down the already laggy rendering and require I either use a different browser or let an app intercept network traffic. I'm perfectly happy not using JS (or for that matter, media) on my phone.
- moron4hire 9y agoTo make markup expressive enough for general purpose logic, you have to extend it to such a degree that it becomes much more complex than the tools it replaces. This is especially so when dealing with an XML-like syntax, with its verbose, interleavable end-tags, rather than the much more succinct S-Expression style of Lisp. Mixing data and logic basically requires homoiconicity or else tooling requirements explode.
- dreamcompiler 9y agoThat's why I design all my web pages with S-Expressions and my Lisp server converts them to HTML on the fly. It works great unless I ever need to hire a designer who wants to work with raw HTML and CSS, and then I'll be slightly hosed.
- jlebrech 9y agoname your classes right and just css should do the job. I don't get why people have ruin decent markup to make a button look better.
- dreamcompiler 9y agoOf course. But sometimes you want to change behavior as well as appearance.
- YCode 9y agoAfter working with JSX, HTML/templating just feels like a step backwards. Web pages these days are far less about the template and far more about the logic and interactions involved. Subsequently building up from HTML the way pages used to be built and then embedding code doesn't really line up with the way modern web apps are developed. While it may have a niche in front-end design, for the kind of work I do at least it comes off as though the platform "allows" devs to build web apps entirely written in CSS.
- marvindanig 9y ago> Subsequently building up from HTML the way pages used to be built and then embedding code doesn't really line up with the way modern web apps are developed. Unfortunately the data doesn't agree with you. JSX, react and all that jazz is not used by 99.99% of the web. And NEVER will be! In fact react/vuejs/front-end frameworks are fancy only these days, the majority of web developers don't even use preprocessors for CSS or a templating engine like HAML/Markdown to begin with [1]. There's a reason why writing HTML has been kept simple. And forgiving. [1] https://blog.codepen.io/2013/04/08/statistics-on-preprocessor-usage/ https://blog.codepen.io/2013/04/08/statistics-on-preprocesso... Edits: Downvoted because it doesn't fit your narrative? Lame.
- YCode 9y ago> the way modern web apps are developed. I suppose that could have been worded differently, I meant it in the context of the original person mentioning HTML is their least favorite part of web design. For your 0.01% of us who use all that jazz HTML-first design feels like a step backwards and especially trying to inject application logic comes off as a ham-handed method of design when compared with a logic-first design that spits out and manages the UI (HTML/CSS). I'm not sure what CSS preprocessors has to do with that, but I'm also confused - what is your opinion of Mavo?
- marvindanig 9y ago> I'm not sure what CSS preprocessors has to do with that… That even simpler step-ups like preprocessors with lower learning curves have not been adopted by the majority. Simplicity and lazy has a very high bar for any sort of competing tech. I agree with you that technical simplicity of HTML-first would feel a step backward because you have already climbed over the fence and accepted the issues of over-engineering that come with React/JSX/Webpack and 1000 other components. This of course doesn't mean HTML-first approach would be replaced anytime soon. Even with likes of Facebook betting their entire ass behind it. On Mavo: Not tried it yet, but I do see a promise in it. Also, coming from Lea Verou makes it all the more compelling.
- speps 9y agoPrevious discussion : https://news.ycombinator.com/item?id=14354911 https://news.ycombinator.com/item?id=14354911 Official website : http://mavo.io/ http://mavo.io/
- petecooper 9y ago…and the associated GitHub: https://github.com/mavoweb/mavo https://github.com/mavoweb/mavo
- deleted 9y ago[deleted]
- purerandomness 9y agoThat's absolutely awesome and probably goes well with http://intercoolerjs.org/ http://intercoolerjs.org/ as it's doing the same, only for AJAX requests.
- carsongross 9y ago> tfw I don't have to shill my own library in this thread
- pygy_ 9y agoIt should be noted that this is a tool intended for non-programmers (think: people who can use spreadsheets), not for (pro) developers.
- NiLSPACE 9y agoLooking at the official website it seems very similar to Angular. Could somebody explain the differences?
- shireboy 9y agoI think the gist is the person creating the app would not write any javascript at all. Just the markup and reference the mavo js/css. In Angular and any other framework, you would typically write a JS component and HTML or other format template that eventually renders to HTML. There could be pros and cons to each approach, but I can see a niche for something like this where there isn't a need/desire to do anything besides _just HTML_
- leaverou 9y agoThere's an FAQ item on this! http://mavo.io/faq/#angular http://mavo.io/faq/#angular
- romaniv 9y agoPlug for a somewhat different take on "attribute-driven" development: https://github.com/QuickenLoans/Behaviors.js https://github.com/QuickenLoans/Behaviors.js No centralized framework. Everything is decomposed into "behaviors" that have no direct dependencies. Attributes are used for configuration and storing the running "state" of all libraries. Liberal use of CSS selectors as a kind of query language to remove the need for tree-traversal code. The interesting thing about this approach is that it enables libraries/behaviors to interact and effectively "compose" at run-time without any direct code dependencies. It has some similarities to the idea of agent-oriented programming, which I think is a powerful idea worth a deeper look. Of course, this is more of a proof-of-concept than a complete set of libraries needed for a complex website. However, I find this "behavioral" approach very enjoyable to use, because it makes development very immediate and incremental. Add an attribute, observe that it works, add another attribute, observe that it works, etc. You also get progressive enhancement "by default".
- z3t4 9y agoHTML is a simple "programming language", but my experience is that when non-programmers see anything that even resembles "code" they throw their arms up and scream "UNACCEPTABLE!". I love the concept though. It kind of reminds me of Excel. It's really hard to tell if "the users" will like it or not, you have to test it on them. But I think "the users" will want some sort of GUI/WYSIWYG.
- ghostly_s 9y agoI don't think the audience here is "non-programmers", it's traditional front-end web developers who are comfortable with HTML and CSS but have no formal scripting knowledge.
- leaverou 9y agoNote that as is mentioned on the website, this has indeed been tested on users, and the results of the study have gone through rigorous peer review and published at a top tier academic conference on HCI. And yes, the audience is programming novices who do know HTML and CSS. For now. Since Mavo is a language, one can easily imagine an integration with a visual editor, to make it accessible to the average Joe.
- accordionclown 9y agolea, since you're here... i'm creating a mavo project right now and i wanna use a simple textarea as a mavo field. (tinymce makes me feel a little icky inside.) but i didn't see anything in the documentation about how i would do that. can i? if so, how? edit: oh hey. i just acted like it would work, tried it out, and bingo! hey, that makes me happy...
- leaverou 9y agoGlad you figured it out! Btw if TinyMCE makes you icky, you may like the Markdown plugin: https://plugins.mavo.io/plugin/markdown https://plugins.mavo.io/plugin/markdown
- 9y ago
- misterbowfinger 9y agoI don't get the JSX vs. HTML argument. The whole point is that non-technical people can use this to create websites that work well enough, and it'd be simple (comparatively) to build a WYSIWIG on this.
- reedlaw 9y agoThis is really impressive. It combines a lot of good ideas for making collaboration easier for non-technical users (Github auth, live editing). I see some negative comments about HTML but I see this being a great solution for marketing sites with basic interactions.
- retox 9y agoIntroducing: spam
- shireboy 9y agoI wouldn't call this for "non-programmers", but I have lots of customers who can handle HTML and some basic server code, but who find Angular a bit of a leap. They want a way to crank out modern web-based forms-on-data apps with little ceremony. Will definitely keep an eye on this.
- mrborgen 9y agoHey, this is truly awesome. Lowers the threshold for people to start creating web apps. I created a quick 'Hello world' tutorial on Mavo here btw, hope you like it: https://scrimba.com/casts/cEZ3TE https://scrimba.com/casts/cEZ3TE
- bauerd 9y agoNowhere does it say this is a project intended to be used by non-technical people. Yet both times this got posted here everyone assumes it is. Am I missing something? In the Smashing Magazine blog post, it clearly states: >Make a website that non-technical folks (clients? family members?) can edit right in the browser I think the author is well aware that your average Joe is not gonna pump out web apps only "because it's just HTML". Saying that Mavo is simple to use can be misleading in this context. Simple compared to what? As developers, behaviour-enriched HTML seems simple to us because we have frontend stacks as an anchor for comparison. In almost all cases, average Joe won't even know about the structure of HTML documents, nor will he have a GitHub account to authorize against. I think if you take Mavo for what it markets itself as, namely a "new, approachable way to create Web applications", it is great work.