E

Elliotte Rusty Harold

cafe.elharo.com · Personal blog · on HN since 2008

Elliotte Rusty Harold is a Java and XML author who writes about programming practice, API design, Unicode, and object-oriented design.

What HN saysCommenters link his post on why a square is not a rectangle, with Uncle Bob's inheritance comment quoted, and his writing on REST and operator overloading.
19HN people shared it
5linked it in comments
16stories submitted
186story points
9 years agolast shared
2008people per year2026

Most-shared posts

  1. 1
    Why Functional Programming in Java is Dangerous
    3 people · 4 points · first shared 2013 · 2 comments on HN
  2. 2
    A Square Is Not A Rectangle
    2 people · 67 points · first shared 2009 · 66 comments on HN
  3. 3
    Bruce Eckel is Wrong
    2 people · 22 points · first shared 2010 · 8 comments on HN
  4. 4
    Java is Dead; Long Live Python
    1 people · 74 points · first shared 2008 · 62 comments on HN
  5. 5
    The Ten Commandments of Unicode
    1 people · 4 points · first shared 2008 · 1 comments on HN
  6. 6
    XML 2.0: Thoughts on a new version of XML
    1 people · 3 points · first shared 2010 · discussion on HN
  7. 7
    Overcoming Objections to Refactoring
    1 people · 3 points · first shared 2008 · discussion on HN
  8. 8
    Don't Design for Reuse
    1 people · 2 points · first shared 2012 · discussion on HN
  9. 9
    Why don't Macs support multiple monitors?
    1 people · 2 points · first shared 2009 · 6 comments on HN
  10. 10
    Why Pair Programming Works
    1 people · 1 points · first shared 2012 · discussion on HN
  11. 11
    Must Ignore vs. Microformats
    1 people · 1 points · first shared 2008 · discussion on HN
  12. 12
    Why java.util.Arrays uses Two Sorting Algorithms
    1 people · 1 points · first shared 2013 · discussion on HN
  13. 13
    Refactoring. What is it? Why do it?
    1 people · 1 points · first shared 2008 · discussion on HN
  14. 14
    Why Hate the for Loop?
    1 people · 1 points · first shared 2012 · 1 comments on HN
  15. 15
    Operator overloading considered harmful
    1 people · first shared 2013

What HN people wrote when they linked it

amouat · 2013-03-27
Considered by people who have used C++ and seen some awful problems creep in because of unnecessary operator overloading. Your last point actually highlights the problem - it is not more reliable because you are assuming what "+" and "*" do. EDIT: An old blog post about the issue: http://cafe.elharo.com/programming/operator-overloading-considered-har…
JamisonM · 2012-05-10
It is strange that the consensus in the Java community sort of ended up being against checked exceptions. I for one think that this consensus is completely wrong and I suspect that what looks like a consensus is just a bunch of very loud people shouting down everyone else (and to me not making very compelling arguments). Elliotte Rusty Harold's brief post on this pretty much nails it for me: http://cafe.elharo.com/blogroll/voting-for-checked-exceptions/
barrkel · 2012-03-09
Oh, I know about this already. Trouble is, panics aren't supposed to cross module boundaries. "The convention in the Go libraries is that even when a package uses panic internally, its external API still presents explicit error return values" http://blog.golang.org/2010/08/defer-panic-and-recover.html But crossing interfaces between modules is, IMO, core to exceptions. They're ideally suited to communicating the underlying cause of failure from the depths of the system to the top-most loop (usually a request/response dispatcher or UI event loop), where the error message can be logged or shown to the user, as required, indicating the nature of the failure. I expounded further on this point a few years ago, related to Java's misadventure with checked exceptions, but also relevant to module crossing: http://cafe.elharo.com/programming/bruce-eckel-is-wrong/#comment-47679…
scharan · 2009-09-15
I really like this comment from Uncle Bob: Inheritance is not ISA. It is a redeclaration of variables and functions in a sub-scope! http://cafe.elharo.com/programming/a-square-is-not-a-rectangle/#commen…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close