HNHacker News
TopNewBestAskShowJobs

jpr

648 karma · joined November 12, 2009

submissionscomments
jpr··on Microsoft quietly shuts down Office Genuine Advantage program
Your dream, my nightmare.
jpr··on Coder Needed for Social Networking Website
"Never ascribe to malice that which is adequately explained by incompetence"

When I first learned to program (err, actually just to press buttons in an IDE, anyway), I had a "great" idea how you could make a site like Facebook, just simpler and better. Thankfully the friend I explained my idea to was more sensible than me at the time.

jpr··on Opera 11 goes final
Do you know if there is a way to quickly jump to a specific window in Opera, with a strings search, like in Vimperator? This would be really nice.
jpr··on Jesus Christ, Use a Password Manager Already
My bank password is 4 digits. But they ask another, one shot 4 digit password from a table they've sent to you when you actually move money. I thought all banks did this?
jpr··on I Miss Lisp
Last time I tried SBCL on FreeBSD, the binary package didn't have threads enabled, and when I compiled it from ports, the configuration dialog had me enable the threading manually and said it was "experimental".
jpr··on Oracle VP: “We have a strategy to run Java inside a Javascript environment”
No it can't. Browser is pretty much the only platform where you have to use a certain language.
jpr··on The String Memory Gotcha (2005)
I wonder about the legality of such licenses.
jpr··on Why getter and setter methods are evil
Whan was this published? "09/05/03" doesn't say anything to me.
jpr··on How to impress Joel Spolsky
What is that a reference to? I suppose this is what I get for not owning a tv.
jpr··on What OOP Isn't
Extensibility of the type without breaking existing code. When you add or remove a case from an algebraic data type, you pretty much need to modify all functions that operate on it since they contain patterns that mention the data-constructors that you either removed, or they don't cover all the cases anymore.

(if you meant pattern matching as in text/regular expressions, disregard what I just wrote)

jpr··on What OOP Isn't
There is no need for (implementation) inheritance just to use dynamic dispatch. Many languages provide mechanisms for dynamic dispatch without needing to use inheritance.

Also, you can certainly have encapsulation even in pure C with proper use of header files and use of typedefs, though C in no way requires you to encapsulate anything. Ever wondered what is the FILE in FILE* that many C/Posix functions use? I certainly have. But it's not necessary to expose it to callers of functions that use it. So much for encapsulation and inheritance going hand in hand.

jpr··on I always forget the argument order of the `ln -s` command
I use emacs and dired as a condom that shields me from the stupidity that is remembering this kind of trivia.
jpr··on Objects vs closures
Sufficiently Smart Compiler(tm) should be able to optimize `case` that switches only on a known set of symbols pretty well. Certainly not necessary to do hash-lookup.
jpr··on Version Control for Writers
AFAICT, free Github repositories are always public.
jpr··on I’ve given up using soap & shampoo forever
This seems like good advice for getting rid of bad habits:

"just because I did something yesterday is not a good enough reason to do it today"

Gotta keep that in mind.

jpr··on Ask HN: What is the Holy Grail for Software Engineering?
KISS
jpr··on It's not an arsenic-based life form
I was with the author until this:

> A dangerous myth To wrongly suggest people need to eat animal protein for nutrients will encourage them to add foods that are known to contribute to the incidence of heart disease, diabetes, obesity, and many forms of cancer, to name just a few common problems.

jpr··on John McCarthy on the importance of doing the math
For some values of "actual". I think these kinds of retarded units are one reason for not doing the arithmetic.
jpr··on Can you name the Programming Language if You Know The Creators?
Or Niklaus Wirth:

http://www.sporcle.com/games/supreddit/prog_lang_wirth

jpr··on Lisp compiler in 89 lines of Python
Try entering

   (eval. '(lambda (x) x) nil) 
to the REPL with the following definitions:

http://lib.store.yahoo.net/lib/paulgraham/jmc.lisp

jpr··on Ruby is beautiful (but I'm moving to Python)
Overly clever or confusing to you, idiomatic to others (and vice versa).
jpr··on A Bully Finds a Pulpit on the Web
Why is everyone, including NYT and HN doing exactly what that scumbag wants? This disgusts me.
jpr··on Katahdin - A language where syntax and semantics are mutable at runtime
Common Lisp does this and it's not restricted to being interpreted, you just have to include compiler, linker etc. as part of the language runtime.
jpr··on C#'s Greatest Mistakes by Jon Skeet
Uh oh, I wouldn't want anyone to copy anything that has to with typesystem from Go before they tell how they are going to have typesafe containers without generics. Haskell typeclasses would be a better source of inspiration IMNSHO.
jpr··on Spanish woman claims ownership of the Sun
"I am not stupid, I know the law."

Those two things are not mutually exclusive, obviously.

jpr··on Sweet-expressions: A readable format for Lisp-like languages
It's funny that Lisp's "syntax" draws so much attention when it is pretty much the simplest and most unambiguous syntax possible, and that messes like C++, Python and Perl don't seem to bother anyone enough to propose alternatives.
jpr··on You say sin, I say disease
It's likely much simpler than that. Stop eating and subsidizing cheap carbohydrates - acquire health.
jpr··on Swastikas and context
Are there shapes that are non-geometric?
jpr··on Coding Horror: Your Internet Driver's License
Something about using one set of credentials for a bunch of unrelated sites rubs me the wrong way.

I think it has something to do with what commenter Kevdog said:

> Here's where the driver license analogy breaks down: I have physical control over my license, it stays with me. No one can lose my license for me.

jpr··on CL or Scheme?
Setting up SBCL+Emacs+SLIME is really easy if you use Ubuntu or some other distro that contains packages for them. All you need to do in current Ubuntu is

    $ sudo apt-get install sbcl emacs slime && echo "(require 'slime)" >> ~/.emacs
and then start emacs and press Alt+x, write `slime´ and press enter (M-x slime for the initiated).

Now using all the available features of that combination will take a lot of time, but starting isn't really hard.

← PreviousPage 7 of 12Next →