65 karma · joined Jan 16, 2013 (13y ago) · 45 submissions
@Dominic_Cocch
comment 4y ago · link · parent
Now Climeworks is building another facility that makes Orca seem tiny by comparison. The company broke ground on its Mammoth plant this week. With a CO₂ capture capacity of 36,000 tons per year, Mammoth will be almost 10 times larger than Orca."
A lot of negativity in this thread, oddly. This is a 10X improvement over a previous version. Another magnitude or two and this becomes incredible for the environment. Other solutions should also happen, but a problem as big as climate change should have many parallel solutions. We don't have time to put all our eggs in one basket.
3.
Animating programmatically with Redux and React(tech.instacart.com ↗)
10 points · by dominic_cocch · 10y ago · 3 comments
comment 10y ago · link · parent
I also think jQuery and other libraries with large usage are kind of Swiss army knives, so more people have more use for them.
I do believe over time React will become as pervasive as jQuery. Or possibly even the DOM api will eventually allow a similar style of building things natively. This seems to be happening to jQuery now :)
comment 10y ago · link · parent
We're still somewhat tangled in with Backbone, but it's been a great success internally. Performance-wise, development speed-wise and also developer happiness-wise we haven't hit too many snags.
comment 10y ago · link · parent
We try to keep the structure of the html so that wrappers generally keep different UI components separate from each other. In other cases, like in the example in the blog post, we just use the index from the .map() loop to add a key to every element we know will need one. React should also warn you when this is an issue.
comment 10y ago · link · parent
Backbone also has a dependency on jQuery, which isn't very useful in React apps since mutatuing the DOM (one of jQuery's main purposes) is a no no. So most of the Backbone library isn't very useful to us anymore. I do still really enjoy the backbone way of fetching and saving models, especially in a Rails context. But I think we can get those features in other ways.
comment 10y ago · link · parent
We've also at times converted backbone models to simple objects at the parent level and passed them down that way. Keeps things simpler, but we lose some of the niceties of the backbone model api. Once the models are objects, you can use componentShouldUpdate pretty defensively if you need.
We've also used throttled and debounced functions for anything which gets hit very heavily.
comment 10y ago · link · parent
I think it'd be interesting for us to do another post in the future about how we measure and improve performance within our React apps. There aren't a ton of articles about this with relation to Bakcbone, it seems.
Thanks for giving it a read!
comment 11y ago · link · parent
For most of my work, I'll also be sticking to Backbone or something more supported/fully-featured. But I do have tinsy projects here and there that are mobile-focused one-offs that work really well with something like this. I found myself recreating this thing over and over, so I figured I'd just standardize it for me and see if anyone else felt the same need. :)
Thanks for checking it out and for the feedback!
comment 11y ago · link · parent
It's possible I'll add a more traditional 'controller' to the mix at some point, but I mostly wanted a similar structure to that of Backbone, without the need for jQuery/underscore.
comment 11y ago · link · parent
- Tiny footprint for mobile networks (~5kb minified).
- Extremely fast DOM query/selection engine. No need for jQuery!
- Mobile first - no legacy hackery for ie < 10.
- Great for spinning up small, mobile-specific apps.
To Do
- More useful event delegation. Currently, views must call _setElement() every time they render new DOM elements
-Currently no router for fancy SPA style urls
Installation
npm install ity
18.
Show HN: Ity – A miniscule, depedency free JavaScript MVC(github.com ↗)
12 points · by dominic_cocch · 11y ago · 10 comments
comment 11y ago · link · parent
comment 13y ago · link · parent
Do customers/clients choose to do business with an ethical company over an unethical one? If not, maybe the bigger problem is that the employees of the world choose to do business with companies that are not good to employees.
If ethical behavior was an important factor in customer's choices I'm sure we'd see less unethical behavior by businesses. However, Walmart, Goldman Sachs, McDonalds, etc all continue to thrive after their unethical behavior is made very public.
comment 13y ago · link · parent
It would also be cool to have options other than an immediate modal, like a what's new link with a red circle containing the number of new features. Click the link and then show the modal.
comment 13y ago · link · parent
I live in Minneapolis, and I've noticed that the bigger companies pay more. Best Buy, 3M, Pearson, Microsoft and Oracle are notable ones near here. If you don't mind giant, slow moving corps then an easy way to make more is to work for one.
100k for a front-end or JS developer is very doable, especially if you know the MVCs and a backend language. Node.js might be a good path as its growing quickly and it's done in a language you already know.
And lastly, build cool stuff in your spare time and list it all on a nice website. Use those projects as proof and reference during salary negotiations.
comment 13y ago · link · parent
comment 13y ago · link · parent
I started with C# and it took me about 5 months to feel like I could do anything worth while. I've picked up JavaScript and Python since. For me, working 40 - 50 hours per week on the language I was learning, it took about 2 years to feel like I could make something someone else would use.
My learning has slowed with time, as I imagine there's less to learn, but I never feel perfect. I hope I never do, because learning to program has been incredibly rewarding and fun. Once I get tired of a language or my learning slows too much, I find another to play with.
comment 13y ago · link · parent
Some tech to check out: - jQuery for DOM manipulation (interacting with HTML quickly and effectively) - Underscore.js for a nice toolkit of often-used utilities - node.js for running a server, which means you can have JS on both the client and the server. - Backbone.js/Angular.js/Ember.js (and others) are Javascript MV*s: that make large, single page apps like Pandora faster, more maintainable and easier to build.
Things to look forward to: ECMAcsript 6 and 7 are in the works and include tons of new features: http://en.wikipedia.org/wiki/ECMAScript
ASM.js was recently created by Mozilla and it allows near-native speed using pure JS to run things like Unreal Engine inside the browser without the need for plugins: http://ejohn.org/blog/asmjs-javascript-compile-target/
Even more standardization. IE has finally become a fairly standards compliant browser, so JS in this browser is very likely to work in any modern browser. Coding standards are also more common and are held to more often.
Personally, the worst thing about JS in the browser is that you have to deal with the DOM. The DOM is a smelly old piece of crap that acts differently in different browsers.