HNHacker News
TopNewBestAskShowJobs

hccampos

1,038 karma · joined December 6, 2013

http://www.hccampos.com http://photography.hccampos.com https://twitter.com/hugoccampos https://github.com/hccampos
submissionscomments
hccampos··on Amazon Sumerian: A way to create VR, AR, and 3D experiences
I am also one of the developers of the original Goo Create (worked on it between 2014 and the end of 2016) and I can confirm it is indeed the same app (including colors, icons, etc). Amazon basically just added some integrations with AWS and a new logo.
hccampos··on Amazon Sumerian: A way to create VR, AR, and 3D experiences
It is the evolution of it indeed. Amazon got the code after Goo Technologies went bankrupt, added some integrations with AWS and rebranded it.
hccampos··on Angular 5.0.0
As others have mentioned, this is all possible with Angular >=4, both in WebStorm and VSCode. The main issue is with performance and debugging. Using Angular's AoT compilation is still extremely slow and your squiggly lines take several seconds to show up after you modify a template in your editor. And no stepping through templates either when trying to debug why something isn't rendering properly.

But, imho, the biggest problem with Angular, by far, are it's NgModules. You can't just import a component normally and use it in your template. You need to also add it to an NgModule to make it available in the templates of the components inside that NgModule. And if for some reason you stop using a component, you need to remember to clean up the module as well since nothing will warn you about unused declarations or imports in NgModules.

And then there is also the fact that you can't directly import a function/constant and use it directly in the template because, like Components, the template engine needs to be told about it. So you need to add properties to your component class which are just providing access to things you imported above. So. Much. Pain.

Some people really like templating languages but imho just using TSX (which is just mapping to function calls) and normal ES modules is the best solution by far.

hccampos··on Angular 4.0.0 Now Available
Problem is you get a cumbersome templating language, extremely verbose component declarations, even more verbose dynamic components and a bunch of other horrible stuff.

In React it is a breeze to make Higher Order Components to connect to a store and it also makes it much easier to separate those smart components from small reusable presentation components.

I have seen people shy away from making smaller components just because Angular makes it so damned painful to make components. It is just easier to stuff everything in a template and copy paste everything around, which leads to a serious case of spaghetti code. I am happy for you if you don't have to work with something like that. I do, and I can tell you it is not nice in any way.

hccampos··on Angular 4.0.0 Now Available
Well, the more people are aware of how bad Angular are, hopefully the less momentum it will get and the less jobs using it there will be.
hccampos··on Angular 4.0.0 Now Available
This makes me feel sad. As you said, maybe React could do more when it comes to packaging things up. I think Create React App is a good step in that direction but there is still work to be done.
hccampos··on Angular 4.0.0 Now Available
For most apps, yes I think MobX is easier. However, both of them, combined with React/Preact are hugely superior to Angular.
hccampos··on Angular 4.0.0 Now Available
If you don't like TS stay away from Angular. In fact, just stay away from Angular, even if you like TS. You will save yourself a lot of headaches...but hey with Angular you might be able to hire some cheap/junior programmers who are familiar with OOP or move some backend guys who like C#/Java to do frontend.
hccampos··on Angular 4.0.0 Now Available
I have to agree with your general point.

However, to me it's not really that Angular is bad in itself, it's more that the alternatives (React/Inferno/Preact combined with redux or MobX) are just superior in so many ways, and by a huge margin.

Once you've done React with TS/TSX, with type checked components all the way, great code completion, incredible performance...it's hard to go back.

Angular's components would be ok if React didn't allow you to declare functional components in just a few lines of code, create HOC to decorate exiting components, etc. Angular's components are certainly better than Angular 1's but when you compare it with what you can do with React it just can't compete.

Honestly, from my experience, there is not a single thing that Angular does better than React and friends. Not a single one. It does things better than Angular 1/Ember/Backbone but that's it.

I think this is a bit like the solar/renewables revolution that is happening in energy. There are more efficient combustion engines, filters and whatnot, but when you compare them with the other paradigm, it falls short.

hccampos··on Creating Dynamic Components with Angular 2
Is it just me, or this is a the very least completely ridiculous?
hccampos··on Atom 1.13
I wonder how noticeable the recent performance improvements really are.

I have been on VSCode for a while but might give Atom a try for a change, and see how much it has evolved.

hccampos··on Three.js editor
While this is fun to play around with, and definitely helpful when using threejs directly, for a fullblown editor on the web there is nothing that beats PlayCanvas at the moment.
hccampos··on WebGL Tutorial: Rendering Wavefront 3D Models
This might be useful for people who want to get started with WebGL and web-based 3D engines:

https://playcanvas.com/ http://babylonjs.com/ https://threejs.org/ https://github.com/GooTechnologies/goojs https://whsjs.io/#/

hccampos··on WebGL Tutorial: Rendering Wavefront 3D Models
Enter gltf https://github.com/KhronosGroup/glTF
hccampos··on Japan issues tsunami warning after magnitude 7.3 earthquake
Live stream: http://www3.nhk.or.jp/nhkworld/en/live/
hccampos··on Maybe I shouldn't have looked at Elm. Now I cannot “unsee” it
Thought we could maybe get a bit of a discussion started here. I have been struck by the simplicity and beauty of Elm and now looking back at JS with all the Redux boilerplate just kind of makes me cringe. What do you guys think?
hccampos··on Jumpsuit – React/Redux made simple
MobX is pretty amazing too. Faster, less boilerplate and much easier to understand for people who come from OOP. Also much better if you like Typescript (and you should like Typescript).
hccampos··on React in patterns
Well, InversifyJS https://github.com/inversify/InversifyJS
hccampos··on Show HN: Ceilfire.com – Online HTML5 Game Maker
Pretty cool prototype. Did you take a look at https://www.goocreate.com? Or https://playcanvas.com/? Or http://vizor.io/? What was your inspiration?

I help develop Goo Create so it is really cool to see other people making cool stuff for the web :)

hccampos··on Moonlander – Really hard game made without a single line of code
It is insane that this was fully done without a single line of code. And the basic gameplay and levels were done in a few hours too. Crazy!
hccampos··on Visual Studio Code 0.10.13 (March 2016)
Download page is here: http://code.visualstudio.com/download?insiders=true

Pretty awesome that they finally added proper Linux packages!

hccampos··on Atom Reaches 1M Active Monthly Users
Still not fast enough, especially when you have VSCode that is built with the same technologies and performs way way better. Atom can and should be faster.
hccampos··on Atom Reaches 1M Active Monthly Users
Indeed, the VSCode intellisense for JS is amazing, especially after the latest February release.
hccampos··on Two Explosions at Brussels Airport
It is in the BBC news piece, so they seem to trust them.
hccampos··on Two Explosions at Brussels Airport
BBC: "Explosion at Metro close to EU building"
hccampos··on Two Explosions at Brussels Airport
"Belgium's Het Laatste Nieuws reports that more bombs have been found. The Belga news agency reports that shots were fired and shouts in Arabic were heard before the two explosions."
hccampos··on Two Explosions at Brussels Airport
"The Belgian fire service told local media there were at least several dead and wounded"
hccampos··on Ray Tomlinson, creator of e-mail, has passed away
The referred facebook post: https://www.facebook.com/vint.cerf.9/posts/10156702383400160
hccampos··on Lodash 4.0.0 is out
Indeed, John-David Dalton, together with Dan Abramov and others have been great in the JS community. Kudos!
hccampos··on Lodash 4.0.0 is out
Personally I would not mind not having support even for IE9. I know, I am one of the lucky few.
Page 1 of 3Next →