HNHacker News
TopNewBestAskShowJobs

mjmasn

498 karma · joined August 21, 2015

submissionscomments
mjmasn··on The Dropbox hack is real
Hmm, my account appears on HIBP, but Dropbox haven't asked me to change my password on login... Who to believe? (probably not Dropbox)
mjmasn··on HackedThat: Breaking in to a hardened server via the back door
This has always been my concern with Linode and other cloud VPS providers. You can secure the server all you want, but you can always get in via a vulnerability in their API or out of band console access. 2FA helps a lot to prevent access to Lish/Glish/Rescue mode console but as shown the API is powerful enough to still be a potential problem if your key gets leaked somehow.
mjmasn··on Ask HN: What is your best advice for a developer to write better code?
Not writing code until it was _absolutely_ needed would have saved literally months of my working life, and I haven't been working all that long. Business requirements change constantly, so what you think will be needed probably won't be by the time you ship the code.

Continuously refactor your code to remove duplication (See Don't Repeat Yourself / DRY). If you find yourself copying and pasting boilerplate code over and over, it's probably time to refactor, otherwise you find one bug and have to fix it 20 times. Good testing helps you to refactor fearlessly because the tests will tell you if you screw up.

Whatever happens you'll always cringe reading old code - but see the positive, it just shows that learning is a continuous process and that you are now older and hopefully wiser than you once were.

One thing that's been on my mind lately is an old article by Joel Spolsky [1] about accurate estimating. I'm absolutely terrible at estimating but I'm using Joel's method to improve that. Better estimates mean better code. Why? Because if you estimate 1 day for a task that really takes 2 days, you'll be rushing, stressed and tempted to cut corners by the start of day 2. If you've planned 2 days for it, you can use the time more effectively.

[1] http://www.joelonsoftware.com/items/2007/10/26.html

mjmasn··on How I fixed a bug in Atom
Just tried this, you are correct... http://imgur.com/J9tP7lk (note the incorrect bracket highlighting)
mjmasn··on [dead]
There are no words.
mjmasn··on Anti-Web-Design Manifesto (2013)
My thoughts exactly
← PreviousPage 3 of 3