21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 10y ago · link · parent
And even if a company folds after (say) 30 years, that still means 30 years of jobs, of people making things. So maybe investors lost money? Name of the game for them. Obviously for the last employees its not too great though (all the more reason for nicer safety nets)
comment 10y ago · link · parent
The courts will demand for both passwords or you'll get some nice sentencing for contempt of court.
Of course you could not tell anyone but that's a dangerous game.
comment 10y ago · link · parent
I think for warrants, though, we're looking at a different beast. By their nature they are targeted. And people have been compelled to provide passwords in the court of law(See [0]). The right against self-incrimination is relatively narrow, so as to not hinder the government's discoverability powers too much.
I think the one thing about this, though, is that people can already be compelled through legal means to unlock things. There is a reading of the Apple case that they are being compelled to unlock something for which they have the key.
Generally, it feels like outlawing encryption isn't necessary for the gov't to pursue the discovery phase of an arrest. There are already a good amount of legal means to compel people to unlock the doors.
[0]:https://en.wikipedia.org/wiki/Key_disclosure_law#United_Stat...
comment 10y ago · link · parent
Having a huge battlechest is useful for being able to try risky new verticals without risking future growth too much. Like how they purchased that video chat startup and integrate that with Slack.
He also talked about having cash to be able to give more to employees in the various situations, since stock options are useless in the case where Slack won't be public for 20 years.
comment 10y ago · link · parent
I guess this is all a bit of a broken record but Tokyo has all the same potential problems as SF (Namely earthquakes), yet somehow has no housing shortage despite being denser. It's all a manmade issue.
Accepting this is acting as if there's no reasonable solution of just building normal apartments on more land. But of course that runs into social barriers.
comment 10y ago · link · parent
As a side note, microconf has some exceptionally high-quality speakers if you're thinking of bootstrapping. Healthy dose of realism from a lot of the speakers.
Some vids are up on Vimeo for MicroConf talks (https://vimeo.com/user12790628/videos)
comment 10y ago · link · parent
But TypeScript is basically "Javascript + types + ES6". They call it an "erasing compiler" because it's not meant to do much but remove types/make ES6 code work with ES5.
There is one gotcha in name resolution when you're working in modules (if you are in a module a.b, and a.c exists, then c will automatically refer to a.c, even if a global c exists). But that usually gets caught by the type system. Lot less issues than coffeescript IMO
comment 10y ago · link · parent
Most of the time, the change is just to rename the file to `.ts`. Sometimes you have to change things because (surprise!) there was a bug.
The biggest painpoint is that you usually have to go pick up some type definition files from DefinitelyTyped for third party libs, but it's well worth it. Second biggest painpoint is type signatures (depending on the context, writing out types/definitions can be subtly different... or maybe I'm doing something wrong).
To anyone who's considering moving their JS stuff to Typescript but have hit some issues, please feel free to ask me. I really think it's a plus for sanity when writing JS.
comment 10y ago · link · parent
Just as some examples.... we've moved some pages to vanilla jQuery to Angular and have gained orders of magnitude more stability (read: basically no state-inconsistency bugs in newer pages).
If you're faced with vanilla javascript in the DOM and have any amount of complexity to it, then you should be using angular/react, if not for your sanity than for the sanity of the one who will need to maintain your code (read: you in 3 months).
If you're knowledgable enough to know that your use-case doesn't work with the newer tools, then more power to you. But the productivity gains from moving away from your jQuery spaghetti code to one of the more managed frameworks is well worth the rewrite time.
I don't know much about going from Angular to React, or Backbone to Angular though.... the choice of framework is likely dependent on what kind of user interactions dominate your app and subjective comfort.
But if you're careful, you can actually transition apps slowly over to Angular and I assure you, you could get rid of so much of your custom-written (probably not well tested) DOM management code it's not even funny.
comment 10y ago · link · parent
I cannot speak for those with depression, but ADHD has easily tripled the amount of stress I have in my life, if not more. It causes impulsive behaviour that can wreck relationships(both personal and professional), and makes it extremely hard to concentrate on many things that aren't totally gamified from the outset.
There's a trope about how ADHD ends up being a gift because of creative thoughts coming to you, and that the medication will dull your senses... but I don't buy it too much. There have been studies that have measured no noticable difference in "creative capabilities"(hard to measure, granted) when being medicated and non-medicated.
Before being put on medication, I had never finished a single piece of homework in my life. Afterwards I was able to finish the homework assignments before class was even over. I would study autonomously, and was able to reach my full potential because I was able to manage my thoughts for the first time in my life.
There is no moral high-ground to not medicating oneself, just like there is no moral high-ground to using crutches when you have a broken leg. Asking me not to medicate is the same as asking me to go through meaningless suffering in almost every social interaction. Countless studies have shown that medication is much much more effective than any form of behavioural therapy (and that BT has an extremely high failure/"relapse" rate).
I don't think it's right to mock people looking for non-medical treatment, because various reasons mean you cannot have access to alternatives.
But medication has been proven to be very effective, and BT has proven to be a very difficult path... if you are a parent of a child suffering from ADHD it is your duty to at least explore the medication option in my opinion.
There is likely to be no higher reason for ADHD and depression to exist. We have looked at "normal people's" brains, and see that for depression/ADHD some things work differently. And that these people tend to have lower-quality lives because of a lack of something... It's hard to argue that there's a reason for it all except in some religious context. It's not like there's a higher reason for brain tumors either.
As an aside, despite the fact that I currently love where I live (Japan), I always consider moving back to the US if only to get access to medication that is illegal here. My life is a lot shittier (still great overall though) because of some drug laws. I have spent a lot of time working on different non-medical coping techniques that have helped out a lot, but nothing matched the chemicals.
comment 10y ago · link · parent
Medicated treatment for ADHD has hit even higher numbers. Something like 70% of patients respond positively to medication (sometimes takes a while to get the right medication though), and 45% achieve full recovery (that is to say, ADHD stops being an issue for them if they're on their meds).
I mentioned this because conventional wisdom is something like: "Yes, depression as a chemical imbalance is a thing that exists, and you can kind of do something with it through treatment." But a lot of people are also "ADHD might not even be a real thing and is a result of helicopter parenting and lazy kids". But the science is much further ahead on understanding ADHD and treating it on ADHD than depression.
comment 10y ago · link · parent
Many studies have been done with regard to treatment and diagnosis, and at this point we are better able to treat ADHD than we are able to treat depression
There might be a bit of an over-treatment culture (I'm not sure, though), but the science is extremely well developed and tested
comment 10y ago · link · parent
Just the infix operator syntax plus implicits can lead to stack trace confusion all around
And try understanding some of the type signature funkiness! It can be difficult
I definitely think that Scala is a harder language than most to grasp, if only for the feature support not seen since C++
comment 10y ago · link · parent
People on HN seem to discount how absolutely amazing it is to have a VM that can almost seamlessly connect to a network and pull down awesome programs!
comment 10y ago · link · parent
I don't know if there's a name for it, but I've started reading "Don't do X" as "Don't do X unless you have a realllllly good reason to." Nothing in life is absolute, after all.
Similar advice is "Use a GC". There are (similar) use cases where you shouldn't use a GC. But if you don't have a strong case for paying the price of not using a GC (in terms of potential bugs and code complexity), then using a GC by default is pretty good advice.
But yeah, if you're writing VMWare, you're hopefully also skilled enough in the domain to know that you should try to get maximum performance. But if you're writing some shell scripts or webapp, a lot of the time your bit-twiddling optimisations will be noise relative to the variation from I/O alone.
comment 10y ago · link · parent
Core has offered a solution, but only 6 months after another equivalent solution was made and basically deployed...
comment 10y ago · link · parent
Uber is basically Walmart for taxis. Come in, bankrupt local taxis with subsidised pricing for drivers and riders. Afterwards keep low pricing for riders but squeeze drivers for all they got.
As one driver put it, it doesn't matter if a 30% price drop create more customers. Drivers can only drive so many hours in a day, so drivers end up with 30% less money.