HNHacker News
TopNewBestAskShowJobs

sghodas

111 karma · joined September 10, 2013

submissionscomments
sghodas··on Why I am betting on Julia (2014)
The 1-indexed arrays can sometimes be nice, but I've run into bugs so many times when translating the code into a language with 0-indexed arrays.
sghodas··on Uber wants access to browsing history, bookmarks, and running apps
Not 100% sure, but I think the access to contacts is so that you can split ride fares with other people.
sghodas··on Visual Studio Code 1.0
Yes, they're both text editors, but they're completely different classes of text editors. MS Word is also a text editor, but it would be ridiculous to fault it for not having a CLI. It's nice that Emacs and Vim have GUI modes, but I doubt they're the primary way users use those editors. Emacs/Vim and VS Code/Sublime/Atom fulfill different needs and preferences.

I'm curious about your answer to this: would you argue that MS should combine Word and VS Code into one text editor?

sghodas··on Visual Studio Code 1.0
You're asking for VS Code to be a completely different product. VS Code is a GUI text editor like Sublime and Atom. There's no reason for it to run in a terminal. Vim and Emacs are classical CLI based text editors. Are you asking for an alternative to those?
sghodas··on Porn site xHamster blocks North Carolina users to protest anti-LGBT law
You're still missing the point. Users who know little to nothing about the law NC passed will be made aware of the issue. Some of those people will take action against the lawmakers and/or people that support the law. Overall awareness of the issue will rise and hopefully cause a real discussion.
sghodas··on John Oliver on the ugly state of credit reporting and background checks
Really? I haven't found that to be the case. Everything that I've set to specific privacy groups (me only, friends, etc) has stayed the same.
sghodas··on Hands-on with HoloLens: On the cusp of a revolution
Technically it's not holography, but using the term is the simplest way to convey the idea to the average person. What would you suggest calling it instead?
sghodas··on Elimination of HIV-1 Genomes by CRISPR/Cas9 Gene Editing
That's also true for most major breakthroughs like this one.
sghodas··on NPM and Left-Pad: Have We Forgotten How to Program?
That's exactly the problem the parent comment suggests we focus on fixing. Once a library is published, npm shouldn't allow anyone to use that name even if the library is pulled.
sghodas··on Swift 2.2 Released
I think you're seriously overstating the issues with Xcode. There are bugs and annoyances, but things have gotten better over the years. It's not as great as Visual Studio, but it's far from horrible. Remember, we live in a world with Eclipse.
sghodas··on Medicine’s Uncomfortable Relationship with Math (2014)
I'm studying for these boards right now, and these equations do show up. However, it's not the curriculum (at least not at my school) pushing the rote memorization of drugs, side effects, contraindications, microbes, etc. It's the board exams. A huge component of the exams is raw memorization of random facts that have no relation to anything (did you know rifampin makes your tears turn orange?). Unfortunately, there seems to be no incentive for the board examiners to change their exam.
sghodas··on Break Up the Insulin Racket
That's not how type 2 works. The resistance is developed for unknown reasons and it continues to build over time. For a while, your body can compensate by producing more insulin to overcome the insulin resistance of your cells. You don't become symptomatic until your cells are almost completely insulin resistant. Your pancreas will continue to make insulin at crazy high rates, but eventually the cells that make insulin will die off (presumably from hyperactivity). This is the point at which type 2 diabetics need insulin.

As far as cutting sugar out of your blood - you can't. Your body tries to maintain 80-110 mg/dL of sugar in your blood. You NEED sugar. It's energy. In fact, sugar is the ONLY energy source your brain can use. The problem is when you're a diabetic, your body's cells can't take that sugar out of the blood to use it for energy. That's when you try to minimize your sugar intake, because if you don't, you can do irreversible damage to your nerves and vasculature.

sghodas··on Understanding Git for real by exploring the .git directory
I saw this posted a couple years ago, but it was a great guide to starting out with git: http://pcottle.github.io/learnGitBranching/
sghodas··on Doctors Unionize to Resist the Medical Machine
Hell, I'm only in my second year of med school in the US, and I wouldn't recommend young people go into this profession.
sghodas··on Open Letter to Mozilla: Bring Back Persona
You'd rather share your phone number or home address than your email address?
sghodas··on Decline in gun violence in the United States
There's an interesting (although controversial) correlation between legalized abortion and decline in crime for that time period. https://en.wikipedia.org/wiki/Legalized_abortion_and_crime_e...
sghodas··on Safeway, Theranos Split After $350M Deal Fizzles
The positive predictive value for the prostate-specific antigen test for prostate cancer is only 30%. This means that only 30% of people who test positive for elevated levels of prostate-specific antigen actually have prostate cancer. This is an intrinsic problem with testing for prostate-specific antigen not with Theranos' testing.
sghodas··on The Apple iPhone 6s and iPhone 6s Plus Review
You're right - there's no one size fits all solution. I'm glad that phones have gotten bigger because they fit my use cases, and based on their popularity I'm definitely not alone. I am surprised that 4" phones have been lost - especially by Apple. Despite the low sales of the 5c, I figured we'd still see a 6c to satisfy those not wanting a bigger phone. It seems like a decent number of people are refusing to upgrade to a newer iPhone, and I'm not aware of any good, modern Android phones at 4" for these people to switch to.
sghodas··on The Apple iPhone 6s and iPhone 6s Plus Review
I have the 6s+, and yeah I can't use it with one hand, but I'm okay with that because I love having the bigger screen so much more. I can see a lot more while typing, watching videos is a better experience, and I've noticed myself using the bigger phone (I used to have a 5s) in new ways a lot more.

Before, I would avoid doing some tasks on my phone like taking more than a few lines of notes. The bigger screen feels less cramped and I don't feel annoyed while using it. In fact I wrote this comment out on my phone. I've never done that with any of the smaller phones I've had.

sghodas··on Graduate student takes a problem-solving approach to his brain cancer
I skimmed that study, but it looks like all the samples they tested came from the same guy, and they didn't actually test putting people in MRIs.
sghodas··on How to Learn Efficiently
Joshua Foer (author of Moonwalking with Einstein) has a great TED talk too. https://www.youtube.com/watch?v=U6PoUg7jXsA
sghodas··on Why Clay Shirky just banned technology use in class
For some reason the article didn't link to the actual Medium post: https://medium.com/@cshirky/why-i-just-asked-my-students-to-...
sghodas··on The Case Against Adverbs
The article directly addresses your exact point immediately after that example:

"Readers can't be shown everything that happens to a character, or novels would be 800 pages and cover 15 minutes in the protagonist's life. Sometimes adverbs help to move the story along through summary or time compression. But for young writers, learning to do without them is a good first practice."

sghodas··on Don’t Blame Malaysia Airlines
According to the linked article, Air France and some other foreign airlines were the only ones to avoid Ukraine.
sghodas··on Joker – Poker library written in go (golang)
Sweet! Love the use of unicode strings for suits.
sghodas··on Mastering Vim in Vim
There's a plugin called XVim for Xcode that provides the best of both worlds IMO.

https://github.com/JugglerShu/XVim

sghodas··on West Virginia Officials Warn Not to Use Water Following Chemical Leak [video]
That's a good point. It doesn't appear to be particularly dangerous at low levels - just unpleasant.
sghodas··on West Virginia Officials Warn Not to Use Water Following Chemical Leak [video]
Its solubility maxes out at 3%. ~5000 gallons in a river is hardly enough to get to those levels. The news is reporting that the concentration is about 3ppm. 3ppm of 4-methylcyclohexane methanol is about 0.021g of the chemical in 1L of water. The lowest LD50 for ingesting the chemical I've found is 800mg/kg. This means you'd have to drink 3086L of water for it to be lethal. The LD50 for skin contact is at least double the ingestion LD50.

That being said, I'm not going to take the risk, and I've only used water out of water bottles since this started.

sghodas··on West Virginia Officials Warn Not to Use Water Following Chemical Leak [video]
Actually, it's not very water soluble at all. It's a large cyclohexane that's relatively non-polar (the first comment in that reddit link agrees). Approximately 5000 gallons of the chemical spilled into the river, so there likely isn't very much of the chemical mixed in with the water. Most likely not enough to seriously harm anyone.