Live data from Hacker News

Imba: A new programming language for web apps

imba.io

121–130 of 131 posts

Re: Imba: A new programming language for web apps

#122
post #25

All these languages du jour should go out of their way to answer the question: "why bother?". 10x faster than react. OK cool. Except unless it has something like react native it's irrelevant if you might want to write an app in future with any sort of code reuse since you'll be tied to the web (unless you want the inevitable world-of-pain of trying to integrate this preprocessor into your xcode/android builds...).

Shortcut to the answer of the question you are really asking (i.e., why bother to make another external DSL to write web applications?):

https://en.wikipedia.org/wiki/Domain-specific_language#Advan...

Re: Imba: A new programming language for web apps

#125
I built this simple module pattern framework that makes building apps pretty simple. the idea is that everything is a controller (module patter) so you break you app into controllers or modules. https://github.com/ThinkAcademy/MasterControl check it out its open sourced by http://thinkacademy.io/

Re: Imba: A new programming language for web apps

#126
post #51

Earlier quoted context omitted.

What would you call it other than "compiling"?

Transpiling, as said above. Or maybe transpiling is compiling. I think I'll get out of it more confused than going in.

I like to view transpiling as a specialization of compiling. Even if you try to make the distinction between high-level input -> low-level output, in the end it feels like the language matters much less than how the generated code is designed. Most "transpilers" end up using the bare minimum number of features for the target language and staying constrained to a pretty low-level part of that language. For example, languages that transpile to JavaScript tend to target asm.js, which really doesn't look anything like the JavaScript that real people write. Getting bogged down in naming differences when the overall process is pretty much identical is just ignoring the big picture in my mind.

Re: Imba: A new programming language for web apps

#127

Earlier quoted context omitted.

yeah, but I feel they have a reason to exist. Clojure exists because it has interesting ideas about immutability, and is a lisp. Elm exists because FP. This exists because... Why? They thought we needed a new syntax for JSX? They thought we needed another language that was kind of like coffescript, but different in subtle ways? I don't know, and I can't see what this is bringing to the table.

Then don't use it? There's no reason to bash on anyone for making something, even if it's absolutely useless: https://news.ycombinator.com/item?id=10758290

Sorry, I didn't mean to bash on them for making. Let me clarify my opinion. What annoys me is that they made a thing, which is of debatable use, and talked it up as the next big thing, which everyone should use, because it's amazing. That bugs me.

Re: Imba: A new programming language for web apps

#128

Earlier quoted context omitted.

'class' wasn't added to make it look like Java. It was added as sugar for a common pattern that everyone was already using. Many languages other than Java have a class keyword.

> Many languages other than Java have a class keyword. Yes many classical oop languages have the class keyword and that's why javascript added it.

Because it's a useful pattern, that people were using heavily. Not sure why you're trying to suggest some kind of ill-intent.

A nice thing about prototypal inhericance is that classical inheritance can be implemented in it. People were doing that commonly enough that it made sense to add sugar to do it more directly, and signal intent more clearly to the reader.

Re: Imba: A new programming language for web apps

#129
post #5

To all people who reply negatively to this: don't you guys actually like learning new languages? Why?

I only learn something new if I have a reason to. I may learn PHP in the near future because my company is migrating to Magento from Rails. I actively try to avoid learning when pursuing side projects. With side projects, the idea is to explore a domain rather than tools. My current side project, a productivity / accounting app, requires no new knowledge, and I want to keep it that way. I am very skeptical that, afte…

I am also cautious about learning new technologies and very carefully select what I actually learn.

Using proven techniques and tools makes experienced people more productive even if their raw mental abilities decline with age.

Learning and testing new technologies is expensive and most of the time leads nowhere.

Re: Imba: A new programming language for web apps

#130
post #108

Earlier quoted context omitted.

I think the HTML standard prohibits you from using non-standard tags like or , unless they have a dash in them.

This can't be true. I use non-standard tags without dashes all the time for my custom directives in Angular.

I understand that it works in browsers. My point is about the HTML Standard disallowing it.
Post reply on HN