Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leif
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
601.
▲
by
leif
16y ago
I disagree. A "real programmer" should know something about how the computer works, and should not revere anything below his level as "magic" or be afraid of it, even if he/she will never need to deal with it. Understanding that integers
602.
▲
by
leif
16y ago
Yes. Microsoft asked me to verbally test my code (come up with a few examples and walk through the code), and Google asked me to describe a range of test cases to start with, and to decide if my code passed them. They want to know that you
603.
▲
by
leif
16y ago
Did anyone else think "don't you just check if it's on the positive real axis?"
604.
▲
by
leif
16y ago
Re: 8, you don't need decorators to compose functions: def comp(f, g): def h(*args, **kwargs): return g(f(*args, **kwargs)) # fix up h.__doc__ and friends return h or simply (lambda the, ar
605.
▲
by
leif
16y ago
Util.pm?
606.
▲
by
leif
16y ago
At a good university, with the intent of putting in lots of extra effort on your own and going beyond the scope of the classes. I contest that the vast majority cannot program effectively without the foundation you get at a university, no
607.
▲
by
leif
16y ago
At a university. I can't tell you how sick I am of laypeople thinking they can just pick up one or two programming languages in a couple hours a week and get a job. These people end up with a very small skillset and no knowledge of what
608.
▲
by
leif
16y ago
leifleif.ww.com please, but thanks for the option :)
609.
▲
by
leif
16y ago
leifleif.ww.com -> leifwalsh.com plz thx
610.
▲
by
leif
16y ago
No, I'm not opposed to references being modified by functions, I'm opposed to the "ampersand" syntax of C++. I am fully in support of just passing a pointer and being straightforward about it.
611.
▲
by
leif
16y ago
This actually bothered me to no end at google. At the API level, it's great, I can learn a lot about what your function is going to do just by looking at the signature, but when reading code that uses an API I don't know, it's hell. For m
612.
▲
by
leif
16y ago
They aren't, but it would be nice to see all his opinions laid out at once so I could absorb the good ones.
613.
▲
by
leif
16y ago
Yeah, I didn't mean "int" to be the offensive part. Read my response. I'm not talking about performance, you shouldn't be copying around large structs or strings no matter what, I'm talking about code readability. In general, your compiler
614.
▲
by
leif
16y ago
Because it gives you no more power than passing a pointer. If you're handling pointers, it's better to be totally explicit about what you're doing. I don't want to read your function call that looks like it passes a whole object and have t
615.
▲
by
leif
16y ago
What is a "real identity"?
616.
▲
by
leif
16y ago
> And never _ever_ make the "pointerness" part of the type. People who > write > typedef struct urb_struct * urbp_t; > (or whatever the name was) should just be shot. I was _soo_ happy to see
617.
▲
by
leif
16y ago
oh, to be so lucky...
618.
▲
by
leif
16y ago
...especially if you use proper CFLAGS (-Wall -Werror at least, -Wextra if you want to hang with the cool kids).
619.
▲
by
leif
16y ago
posted to hn right before a posterous downtime, bad luck
620.
▲
by
leif
16y ago
oh whoops nice catch thx
621.
▲
by
leif
16y ago
you also probably don't want to memoize, you aren't going to re-use, so why waste the memory?
622.
▲
by
leif
16y ago
I can't read ruby, but here's something a little smarter than brute force in C (on its way to DP, but I couldn't be arsed to work out the recurrence so I just iterated until it stabilized): http://gist.github.com/617854
623.
▲
by
leif
16y ago
I'm wonderfully amazed that coreutils has factor.
624.
▲
by
leif
16y ago
No, the OP is talking about encrypting the data (the mail), not the credentials (the password). EDIT: oh, you caught on
625.
▲
by
leif
16y ago
Because we've already got pgp, and when we can get the people we communicate with to use it, we don't mind using a command-line program (or a browser plugin, though we don't even really trust that) to decrypt. We definitely wouldn't trust
626.
▲
by
leif
16y ago
The "dead field" you speak of is deterministic A.I. research. Statistical methods (read: machine learning) are doing extremely well these days, and only get more powerful the more data we get our hands on.
627.
▲
by
leif
16y ago
An isomorphism requires a metric, which metric do you mean? I'm talking group homomorphic, though they're also topologically isomorphic, a.k.a. homeomorphic.
628.
▲
by
leif
16y ago
beer on the deck, play with cats, go for a walk outside if it's nice (it's just getting to be fall weather around here which is great), really, anything but the computer played some diablo 2 the other night with some friends though, fun tim
629.
▲
by
leif
16y ago
Only once did I see emacs malloc all of my ram, but it did it on the server and crashed it. No clue what happened, but I barely got top open to see it happen before the kernel panicked. A once-in-a-lifetime experience though, I start the e
630.
▲
by
leif
16y ago
I learned linear algebra from axler and real analysis from bartle and sherbert too. :) Great books.
More ›