Live data from Hacker News

Show HN: Imba – I have spent 7 years creating a programming language for the web

news.ycombinator.com

31–40 of 354 posts

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#31
Looks cool. I'm honestly curious as to why a lot of new web languages/frameworks are mixing logic and content in the same file again though. The distinction between HTML, JS and CSS always made perfect sense to me. Anyone care to enlighten me?

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#33
post #5

One thing that irks me about Javascript is "const". I think it should have been called "con". "var", "let", "con". So the first thing I did here is look up the docs and see how variables are declared. Aaarghh.. "let" and "const" again :)

Personally I don’t use any languages with reserved words

that limits the number of languages to a handful. like brainfuck and similar ones. doesn't it?

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#34
post #30
post #29

Would it be possible with this to just apply tailwind css classes instead of learning this built in style syntax?

Sure, you can apply tailwind classes like ` ` etc, but I'd definitely recommend using the built in styling as it is much more powerful (value interpolation, flexible modifiers etc).

Great! I am interested in trying out the language and learning more but there would be a lot less friction and mental confusion on my side if I can get started and apply tailwind classes and use something I'm familiar with.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#36
post #23

This looks very cool, thanks for sharing! I took a cursory look at the docs and it looks like async/await is pretty much directly analogous to how it works in JS, with the difference that you don't need to mark functions as async in order to use the await keyword. Does this mean that if you use await in any function then any other function calling it will have to be refactored to add an await keyword, just like you h…

Asynchronous code can sometimes be difficult to write efficiently so having implicit awaits might help with avoiding accidentally made fire and forget calls. An interesting concept might be to explicitly call a function as asynchronous with a new keyword flipping the typical usage of ‘await’. I’d still advocate for the usage of ‘async’ in function signatures though as it helps when reasoning through an asynchronous code base.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#38
post #31

Looks cool. I'm honestly curious as to why a lot of new web languages/frameworks are mixing logic and content in the same file again though. The distinction between HTML, JS and CSS always made perfect sense to me. Anyone care to enlighten me?

A feature usually consists of all three HTML/CSS/JS.

So, if you split by technology, you don't have the code belonging to one feature in one place.

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#39
I wonder if there are plans for an imba course on scrimba. I think it would be a fun concept and could be a used as a free introductory course (both familiarizing more of the world with the language and the scrimba platform)

Re: Show HN: Imba – I have spent 7 years creating a programming language for the web

#40
post #31

Looks cool. I'm honestly curious as to why a lot of new web languages/frameworks are mixing logic and content in the same file again though. The distinction between HTML, JS and CSS always made perfect sense to me. Anyone care to enlighten me?

The distinction makes sense on documents but it starts to break on apps. Javascript depends on HTML and HTML is generated by JS.
Post reply on HN