HNHacker News
TopNewBestAskShowJobs

pswenson

197 karma · joined August 29, 2012

submissionscomments
pswenson··on Everything about Java 8
Given that most code degrades into either wrapping checked exceptions into runtime exceptions or most methods having "throws Exception" declared...I think it's safe to say Checked Exceptions don't work well in the real world. There is a reason no other language created in computer history uses them.
pswenson··on A Manifesto For Error Reporting
exceptions usually happen because of one of two reasons: 1) bugs 2) system failures.

bugs you can't recover from, you need to fix them.

system failures can sometimes be recovered from, but often they need manual intervention. usually it's best to just report them and let someone fix the problem rather than spending a bunch of resources trying to code some way around the problem (which introduces more bugs).

there are situations where it might be appropriate to try to recover. If an HTTP call fails, no reason not to retry a few times. But if your DB is down - sorry you are F'ed. Alert it - make it visible.

pswenson··on PushBullet: From 0 to 15,000 users in 2 weeks
why use Redis for sessions?
pswenson··on My Developer friends are upset about Apple vs Amazon
@josteink you have any stats that back up your assertion that iOS is headed "soon into sub 10% marketshare"?

I didn't think so.

Anyway, I think the market is convinced Apple can't grow earnings much any more. And the market is probably right. Law of large numbers has taken effect.

But this notion that iOS is getting crushed and is headed into oblivion is a product of the simplistic "winner take all" mentality. Just because it happened with Windows doesn't mean it happens with mobile - or anything else for that matter.

pswenson··on Trello celebrates One Million Users
I've been pushing for trello over the much slower, less intuitive sprint.ly.

the main hangup is the lack of a daily digest report. anyone have a solution?

pswenson··on Scala 2.10 now available
Not pedantic, just misunderstood. Yep IJ is awesome. I tried eclipse again a couple years ago and there is no contest
pswenson··on Scala 2.10 now available
why would you be stuck on eclipse when working on java?
pswenson··on How to directly upload files to Amazon S3 from your client side web app
filepicker.io is cool. But your backend service wouldn't be needed if the image uploading & resizing straight to s3 could be done in the browser. Your product would simply be a javascript lib.
pswenson··on How to directly upload files to Amazon S3 from your client side web app
how do you do #2?
pswenson··on How to directly upload files to Amazon S3 from your client side web app
Coolest would be an ability to have 1) a great filepicker UI (drag target + multi file upload w/ progress bar) 2) resizing/thumbnails in the browser 3) no server side other than s3

guessing #2 isn't possible?

pswenson··on Rob Pike: Go at Google
Most exceptions aren't recoverable. They are usually a result of bugs or system problems. This means 1) the bug needs to be fixed. 2) the system needs to be fixed (start up a DB service, clean disk-space, add memory, etc).

This is where java went wrong, java checked exceptions treats everything as recoverable when recovery is unlikely.

I mean, someone tries to login to a web site and the DB is down. What do you do? Or there is a bug that throws a null pointer exception. How do you recover from that?

I think the error code approach has the same effect as CheckedExceptions. People will tend to code to ignore the problems and not report them. Exceptions are great in that they bubble up to the top of the stack, so they are easy to report/alert on.

pswenson··on Rob Pike: Go at Google
Didn't we try error codes back in the day? I think exceptions are brilliant. They let you write your error code in one place (at the top of the stack), instead of planning for every contingency at every level.

Once I discovered exceptions back in the 90s, life got a lot easier.

Of course Java ruined exceptions with the invention of the CheckedException, maybe this tainted the Go designers' thinking?

pswenson··on Things I learned at JavaOne 2012
Not sure if they should kill JavaFX. But they should kill the browser plugin. No one uses java in the browser anymore and it's a giant security hole.
pswenson··on Why Java Developers Should Check Out Scala
You didn't explain what's wrong with the JVM. Please do.

The JVM is very fast and ubiquitous. Targeting the JVM allows the language developers to focus on the language rather than re-inventing a runtime (which is a monster project)

pswenson··on What killed the Linux desktop
no idea what you are getting at.
pswenson··on What killed the Linux desktop
what's wrong with the terminal?

hit cmd-q to close an app.

no idea what you mean by insane window switching behavior.

you gave no examples of how Ubuntu/Fedora is better to rebut on UX. care to share some?

← PreviousPage 4 of 4