Live data from Hacker News

Imba – A new programming language for the web

imba.io

171–180 of 180 posts

Re: Imba – A new programming language for the web

#171

Earlier quoted context omitted.

> I would be willing to give Ruby the point for MVC [...] I wouldn't.

Could you name a major web framework that implemented the MVC pattern prior to Rails?

Spring? (Queue discussion on what is and isn't Real MVC(tm))

I will however agree that Rails probably should take most of the responsibility/blame for really bringing MVC to the forefront of web development

Re: Imba – A new programming language for the web

#172
post #171

Earlier quoted context omitted.

Could you name a major web framework that implemented the MVC pattern prior to Rails?

Spring? (Queue discussion on what is and isn't Real MVC(tm)) I will however agree that Rails probably should take most of the responsibility/blame for really bringing MVC to the forefront of web development

Right you are! I didn't realize it had beaten Rails to the punch by a year. But yes, I will stand by my claim that Rails was responsible for popularizing the notion in the wider web development community.

Re: Imba – A new programming language for the web

#173
post #166

Earlier quoted context omitted.

The funny part is that technically Rails and Rails-inspired REST frameworks get it wrong. They're just exposing the server-side models via REST interface and the server-side models in turn expose the database's tables. That's REST by the books but not particularly useful unless all you're interested is exposing your database tables to the clients. Automagic REST APIs may be easier to do with "RESTful" MVC frameworks…

Here's a handy test to determine if two technological terms mean the same thing: are they used interchangeably? If I said to someone, "oh that looks like you need a SOAPful interface," would they assume that I meant RESTful? Probably not, since they're two different technologies. The move to REST was actually inspired by the perceived deficiencies in WSDL and SOAP. > The funny part is that technically Rails and Rails…

"The World Wide Web itself represents the largest implementation of a system conforming to the REST architectural style."

- https://en.wikipedia.org/wiki/Representational_state_transfe...

"The first edition of REST was developed between October 1994 and August 1995, primarily as a means for communicating Web concepts as we wrote the HTTP/1.0 specification and the initial HTTP/1.1 proposal. It was iteratively improved over the next five years and applied to various revisions and extensions of the Web protocol standards."

- Roy T, Fielding, Architectural Styles and the Design of Network-based Software Architectures, 2000

Most interesting is Roy's presentation at RailsConf Europe in 2007 (http://roy.gbiv.com/talks/200709_fielding_rest.pdf):

Use your brains!

- don’t design-by-buzzword

- don’t believe everything you read

Re: Imba – A new programming language for the web

#174
post #166

Earlier quoted context omitted.

The funny part is that technically Rails and Rails-inspired REST frameworks get it wrong. They're just exposing the server-side models via REST interface and the server-side models in turn expose the database's tables. That's REST by the books but not particularly useful unless all you're interested is exposing your database tables to the clients. Automagic REST APIs may be easier to do with "RESTful" MVC frameworks…

Here's a handy test to determine if two technological terms mean the same thing: are they used interchangeably? If I said to someone, "oh that looks like you need a SOAPful interface," would they assume that I meant RESTful? Probably not, since they're two different technologies. The move to REST was actually inspired by the perceived deficiencies in WSDL and SOAP. > The funny part is that technically Rails and Rails…

[deleted]

Re: Imba – A new programming language for the web

#175
post #43

I actually think this looks really good, but 3 things: 1. Why differentiate it from CoffeeScript so much? Why not call it DOMCoffeeScript or something? Are there any core language changes from CoffeeScript other than the tag features? 2. I'm not sure how I feel about the mixture of XML tag characters with HAML/Jade-like indentation. My gut instinct is to always look for a closing tag with XML/HTML. Why not use some k…

1. Because the semantics are quite different. See my other post. 2. It's still nice to separate the attributes from the content: "Foo" Why use a new syntax when everyone knows HTML/XML? 3. The lack of `var` in CoffeeScript is its worst feature ever IMO! Every time I write `someVariable = …` I'm terrified that I will accidentally overwrite a previous variable. Imba improves on JavaScript here and will correctly shadow…

After reading more, I agree with you on 1 and 2.

But for 3... so you never use languages like Ruby or Python? Variable assignment shadowing is always possible in those languages, yet for seasoned developers, it tends not to be a real issue.

Re: Imba – A new programming language for the web

#176

I actually think this looks really good, but 3 things: 1. Why differentiate it from CoffeeScript so much? Why not call it DOMCoffeeScript or something? Are there any core language changes from CoffeeScript other than the tag features? 2. I'm not sure how I feel about the mixture of XML tag characters with HAML/Jade-like indentation. My gut instinct is to always look for a closing tag with XML/HTML. Why not use some k…

#3. Python did the mistake of not having a var keyword. When you have nested closures you don't know if you are assigning a variable in the outer scope or the inner. You have to use hacks like creating an array of length 1 in the outer scope if you want to modify it in the inner scope otherwise you create new variables in the inner scope each time you try to make an assignment.

Now they created a new "nonlocal"-keyword to cope with this but it wasn't added until version 3.0. https://www.python.org/dev/peps/pep-3104/ has a great summary of all this.

Re: Imba – A new programming language for the web

#177

Earlier quoted context omitted.

> I would be willing to give Ruby the point for MVC [...] I wouldn't.

Could you name a major web framework that implemented the MVC pattern prior to Rails?

You never said anything about web framework before, you said MVC. That's a different discussion. Although we were using MVC in Struts 1 back in what, 2001?

Re: Imba – A new programming language for the web

#178
post #171

Earlier quoted context omitted.

Spring? (Queue discussion on what is and isn't Real MVC(tm)) I will however agree that Rails probably should take most of the responsibility/blame for really bringing MVC to the forefront of web development

Right you are! I didn't realize it had beaten Rails to the punch by a year. But yes, I will stand by my claim that Rails was responsible for popularizing the notion in the wider web development community.

The "wider web development community" was using MVC; Struts and Spring built more websites than Rails did for several years.

Re: Imba – A new programming language for the web

#179
post #17
post #6

"if Ruby and React had an indentation based lovechild, what would it look like?" Let me guess!... CoffeeScript?

Imba was actually forked from CoffeeScript three years ago. After the fork there's been a bunch changes, both in terms of adding tags, but also when it comes to the object model and variable scope. - Implicit calling: `foo.bar` calls `foo.bar()` and `foo.bar = 123` calls `foo.setBar(123)` - Objects have instance variables that's separate from the methods. Well, technically the instance variable `@bar` is just stored…

[deleted]

Re: Imba – A new programming language for the web

#180
post #17
post #6

"if Ruby and React had an indentation based lovechild, what would it look like?" Let me guess!... CoffeeScript?

Imba was actually forked from CoffeeScript three years ago. After the fork there's been a bunch changes, both in terms of adding tags, but also when it comes to the object model and variable scope. - Implicit calling: `foo.bar` calls `foo.bar()` and `foo.bar = 123` calls `foo.setBar(123)` - Objects have instance variables that's separate from the methods. Well, technically the instance variable `@bar` is just stored…

Why is Imba any better than Coffeescript? It looks like it does nearly the same thing...
Post reply on HN