Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,498 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 8y ago · link · parent

I find myself in the same situation in Canada. Also more financially successful than my parents at this age, but unable to afford a home here in Vancouver.

Either I'm going to be renting for a very long time, or I'll leave this country again. It's kind of sad that Canadians are getting priced out of their own country!

comment 8y ago · link · parent

I've also noticed that. People are illogical.

comment 8y ago · link · parent

A class has all the related code in one place in one file (some languages excepted, base classes excepted, but true enough for React purposes where inheritance hierarchies are quite limited and rare in my experience.)

I like immutability. It can make code easier to read and understand if done well. But within reason.

It's not that I'm creating some strawman where the alternative to a class is 10-20 functions across as many files - but that's actually mild compared to some things I've really seen.

To give an example, about a month ago I had to read a co-workers implementation of a feature and it was literally a maze of some 30 functions many of which returning closures, some of which return other closures. With state scattered all over in withStateHandlers, etc. I spent two hours on a Saturday trying to understand it and make the changes I needed to make before I gave up and assigned the ticket to my coworker who wrote it all. Basically he's the only one now who can modify that code easily (and incidentally he's away now on leave, if we have to modify that code again, we're screwed.)

So immutability of data is awesome. Immutability of code is not. If it was a couple boring classes I could have read the code and made all the changes I needed to make in less than an hour.

Simple an predictable and boring is fantastic where code is concerned. I love Go not because of the features it has, but specifically because it's limited enough that the code written in it is almost always easy to understand.

comment 8y ago · link · parent

I feel the same way! Maybe I'm just getting older, but I like code to be boring. A class is something everyone can read and understand. If you have to navigate a maze of HOCs withStateHandlers, enchancers, redux actions, reducers and connectors you end up needing to open 10-20 files and jump around between as many functions to build a picture of how a component works. Considering code is read more often than written - that seems like a huge step backwards.

Hi, I'm Dan. I write boring code. I love Go because it's super boring.

I like to read boring code, write boring code, and then get on with my day. I don't like long walks through the codebase trying to understand how everything is wired up in a super-cool functional way. Get off my lawn kids.

comment 8y ago · link · parent

Musk has his faults for sure, and he really needs some people reviewing his twitter posts before they go live.

But I find it amusing that people are so quick to point out his faults and criticize the guy when he's accomplished more in his life to date than any single one of his critics, with at most a couple exceptions, like Bezos.

Basically if he's a wanker, what's that make you? I don't think it's fallacious reasoning here at all to say that. Basically your standards for a non-wanker must be so high as to include almost nobody. I'm not just talking about his financial success, I'm talking about changing the world for the better with his companies, for raising 5 children, etc. The guy has his faults, but so do we all. If he's a wanker, than really who isn't?

comment 8y ago · link · parent

Because it's one of the most heavily shorted stocks on the index. Basically Tesla has always been the underdog and tons of people are itching to see them fail. So watching them succeed against the odds and the naysayers getting burned is quite satisfying - just speaking from a human story perspective.

comment 8y ago · link · parent

People down voting this are ignorant of how cities affect the local climate. Urban effects would dwarf global climate changes pretty much always.

comment 8y ago · link · parent

That's fair. I don't mean to imply that the public sector can't do anything well - just look at the Canadian health care system vs the US one - hardly perfect, but substantially better on the whole. However, the public sector often has less pressure to do things efficiently, or they have additional requirements, like we see with NASA splitting contracts up among various states for political reasons.

I don't think semiconductors would be better handled by the public sector - even if one could somehow get political support for that, which seems very unlikely in the US.

comment 8y ago · link · parent

We can look to NASA as an example of how well that might play out...

comment 8y ago · link · parent

How can second-hand smoke be "even more harmful" than smoking? That just doesn't make any sense...

comment 8y ago · link · parent

To be fair, it's issuing a long sequence of microcode ops under the hood using 256bit ops.

comment 8y ago · link · parent

Seems like the truth, not an excuse.

comment 8y ago · link · parent

It's hardly irrational. You can argue the merits of their reasoning, but not that they have reasons. Don't dismiss viewpoints you don't agree with as irrational - that shuts down any attempt at a real dialogue or understanding.

comment 8y ago · link · parent

Are mining companies anywhere environmentally conscious anymore than they have to be? The people and politics of Canada are in favor of combating climate change in many respects. Not like the US withdrawing from the Paris accords.

comment 8y ago · link · parent

As a counter example, my desktop has had 128 gb of ram since two years ago. I've never needed that much, 64GB would have been enough for the number of vms and containers that I run. But I couldn't pass up a good deal. I got the ram for $600.

comment 8y ago · link · parent

Canada is super environmentally conscious. I don't know where you get the idea from that we promote global warming, except as being a petroleum exporter (the US is a much bigger petroleum producer.) I can think of one glaring example of climate change denial among developed nations, however...

comment 8y ago · link · parent

Replacing the hardware would be cheap compared to the hit they could take getting caught in such an outright lie. Public companies have obligations to their shareholders not to lie about things like this. They're opening themselves up to lawsuits.

comment 8y ago · link · parent

You're implying that Instagram users are wealthier than twitter users? That's 1) only tangentially relevant to ad income. 2) unsupported. 3) probably wrong

comment 8y ago · link · parent

That's a terrible idea. They should be focused on finding winners regardless of diversity.

4520.

Riemann hypothesis solved(sciencealert.com ↗)

2 points · by eloff · 8y ago · discuss

comment 8y ago · link · parent

Free to find another job...

comment 8y ago · link · parent

These people are free to leave whenever they like. They're not enslaved physically, financially, or otherwise. Don't just throw around words like slavery casually. There is a huge difference between slavery and a job.

comment 8y ago · link · parent

It's still a lot cleaner than diesel!

comment 8y ago · link · parent

I've looked into it quite a bit, you have to meet all the requirements of being non resident and confirm with the CRA that they do not deem you to be resident. But then it should be fine. I haven't personally tried it, but I've heard of wealthy Canadians legally escaping taxes that way - so I'm pretty sure it does work.

comment 8y ago · link · parent

First off nobody would be dumb enough to try to get a work permit for a remote job, even if it were required by some law. Secondly citizens of canada wouldn't need a permit.

comment 8y ago · link · parent

This basically mirrors my experience with Canada. So don't play a rigged game, work remotely for foreign (US, Swiss) companies that pay more. Bonus points, become non-resident in Canada, stay for the lovely summers in Vancouver and then bugger off to some tropical beach paradise for the other 6 months a year. You can legally pay nothing in income taxes when you do that (you won't get health care either, but at programmer salaries, self-insure with the difference, or take out private insurance.)

comment 8y ago · link · parent

Especially since programmers in Seattle earn more than 2x programmers in Vancouver.

comment 8y ago · link · parent

Agreeableness in general is negatively correlated with career success. Have you noticed that Fortune 500 CEOs tend to be extremely disagreeable, to the point of psychopathy in some cases. At the risk of sticking my neck out, it's also one of the many reasons for the gender pay gap, woman are more agreeable than men. And you have to be somewhat disagreeable to stand up for yourself and demand a raise (or quit and seek a better paying job.) But on the average it's a relatively smallish difference and only accounts for a small part of the pay gap. The biggest component of the pay gap is the difference between mothers and non-mothers. I've heard it said that woman who are not mothers earn 95 cents to every dollar a man earns. But I don't have a source on hand, so take that with a grain of salt.

comment 8y ago · link · parent

It's not that trivial, yeah you stick it back into the DOM somehow eventually. But you might not be getting back full HTML, you might need to modify it by adding some css classes, or event listeners. You might only be getting back data which you generate the DOM from.

Basically you need a full programming language and DOM and events etc like we have now. But I fully agree that it's abused currently.

Full disclosure I contribute to the madness by developing ReactJS applications.

comment 8y ago · link · parent

What are you going to do with your AJAX result without client side coding? I don't buy this argument at all. You could ditch AJAX and do everything server-side like the old days (and it might even perform better given how heavy modern sites seem to be!)
1
150151152
184