Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajanuary
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
541.
▲
by
ajanuary
14y ago
In clean object-oriented code, the internal state of a class is not exposed to the outside. One could argue clean OO code also follows the uniform access principle. I guess everything being a method is uniform. In which case why
542.
▲
Avoid ‑webkit‑text‑size‑adjust: none
(blog.55minutes.com)
1 points
by
ajanuary
14y ago
|
0 comments
543.
▲
by
ajanuary
14y ago
The problem here is still "the technique of fetching remote content into JavaScript", not json itself.
544.
▲
by
ajanuary
14y ago
To add some figures: * vi is 36 years old, vim is 21 years old * Eclipse is 12 years old vim is on pretty much every linux box. Eclipse isn't.
545.
▲
by
ajanuary
14y ago
I've yet to see a general purpose programming language that doesn't. Simpler languages have fewer edge cases.
546.
▲
by
ajanuary
14y ago
Indeed. This is where I agree with to that the article is a bit weak. It overstates the problem of repeated hashing and doesn't explain how bcrypt solves that problem at all. It makes it sound like a completely different and magical solutio
547.
▲
by
ajanuary
14y ago
[Replying to tryeng] No, there is an infinite number of inputs that produce the final output O. Only with an infinite number of inputs. If we restrict our domain to things that are likely to be passwords, say string under 1000 char
548.
▲
by
ajanuary
14y ago
Every hash function has a probability of collisions. For illustration, let's imagine a really bad one where every output has another input that results in the same value. With a single round of hashing, there are two possible inputs A1 and
549.
▲
by
ajanuary
14y ago
I raised this with them when I went through the process about 7 years ago. Seems not much has changed :(
550.
▲
by
ajanuary
14y ago
I find it strange that it doesn't mention lack of salting among the most common mistakes. True. I believe bcrypt requires a salt, so you can't forget it. Bringing that up would have strengthened the case. In order to retriev
551.
▲
by
ajanuary
14y ago
The University of York have a similar length requirement. When I enquired about it, I was told it was because some of the older systems have a maximum length, and they keep your password the same everywhere.
552.
▲
by
ajanuary
14y ago
TRUE and FALSE are defined in obj-c ( http://www.opensource.apple.com/source/objc4/objc4-371.1/run... ), mainly for compatibility with C code. It's recommended YES and NO are used ( http://www.opensource.apple.com/source/objc4/objc4-371.1/r
553.
▲
by
ajanuary
14y ago
This isn't about the indentation. From TFA: Also, having the mandatory indentation whitespace increase the line width is a good visual way of minimising the nested loops in your code and suggesting, in a subtle way, to refac
554.
▲
by
ajanuary
14y ago
Personally I find the splitting in the for loop much harder to read, though the smatch splitting is fine. I would favor splitting only if you're indenting to line up with the first couple of tokens. In those cases the pattern is obvious as
555.
▲
by
ajanuary
14y ago
I wish jQuery's setter methods worked this way. It's too easy to accidentally turn a setter into a getter.
556.
▲
by
ajanuary
14y ago
So developers try to future-proof their project by using those patterns everywhere. Something I've seen a lot (and been guilty of myself) is trying to fix the problems of past projects in new projects before they crop up. A better s
557.
▲
by
ajanuary
14y ago
I'm guessing there are attempts to blacklist DOM manipulation.
558.
▲
by
ajanuary
14y ago
What if you have projects in other jvm languages?
559.
▲
by
ajanuary
14y ago
Why should your workflow be prioritised over other peoples? Why should other people, who don't know much, have to go get an extension while you, who does know enough to go get an extension, get to use the product as-is?
560.
▲
by
ajanuary
14y ago
Is it associated with Google Instant failing? I've noticed frequently Google Instant will fail half way through searching, and it will ignore everything I typed and just go with what Instant guessed before it crapped out. If Instant is prio
561.
▲
by
ajanuary
14y ago
1. When I already know what I'm doing and it's just a matter of coding what's already in my mind A concept often used in TDD is spiking. If you don't know what you're doing, do a quick and dirty untested version until you do know
562.
▲
by
ajanuary
14y ago
The article talks about how to blind the tea tasting lady to make the results more accurate. It's pretty hard to apply that same blinding to reading code with large or small methods. There are definitely ways to test it, but it's not quite
563.
▲
by
ajanuary
14y ago
Your local machine could be doing coarse grain calculations while their server did fine grain calculations, and periodically sync up, in the same way FPS's do (which is why you get laggy players jumping about). But from what others have sai
564.
▲
by
ajanuary
14y ago
"So then the decision came down to which language to use." I find this tendency to constantly jackknife between talking about languages and talking about frameworks a little dizzying. Shouldn't the decision have been what web stack to use?
565.
▲
by
ajanuary
14y ago
True, though language design can have implications on how fast things can be implemented.
566.
▲
by
ajanuary
14y ago
I did a quick [1] google around some of the most popular programming languages to see if their stdlibs had binary search: Python: No Perl: No PHP: No Lua: No Java: Yes .NET: Yes Objective-C: Yes Of course your point then becomes "Why haven'
567.
▲
by
ajanuary
14y ago
It also uses -webkit-text-size-adjust: none; which means you can't zoom in to make the text bigger (I've emailed them about this)
568.
▲
by
ajanuary
14y ago
What's your workflow like? Is there a reason the browser/OS spellcheck won't do?
569.
▲
by
ajanuary
14y ago
This is almost exactly what I've been designing in my head.
570.
▲
by
ajanuary
14y ago
The original code could have been written as "condition ? true : false" and it's just not a pattern the minifier picks up on.
More ›