Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
M1573RMU74710N
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
31.
▲
by
M1573RMU74710N
15y ago
When I lock the door when I leave the house, I am not "prematurely optimizing" against burglaries. The lock is there, I just have to turn it. I'm expending a minimal amount of effort for a comparatively large payoff. When I spend 10,000$ on
32.
▲
by
M1573RMU74710N
15y ago
> Perhaps it was a conscious decision not to minify and concat Yea, I thought about that, but It doesn't seem to be the case. A lot of the scripts have credits that indicate they weren't written by Loren.
33.
▲
by
M1573RMU74710N
15y ago
Yea, in any other case I would agree with you. However, considering the whole point is to apply for a front-end dev job, and the stuff I describe is SUPER easy to do. I think it's relevant. I'd think I'd want to "put up" so to speak, and sa
34.
▲
by
M1573RMU74710N
15y ago
Hey, I hate to be "that guy"...but since you're applying for a front-end job, here goes: - You're loading scripts in your head tag, and a crap-ton of them. At least some of these could be concat'd together. HTTP request carry a lot of overh
35.
▲
by
M1573RMU74710N
15y ago
>Somehow I thought it was because of boredom and just something to do, That's definitely part of it too. I hear (and I would guess everyone can imagine) that prison is excruciatingly boring. So having something to do can help a lot, als
36.
▲
by
M1573RMU74710N
15y ago
FWIW, I don't think they were saying that Indonesia is part of India or that the two are related. I could see how one might make the leap logically, but it's not what was being implied. The "India" was part of a descriptive label, and "Indo
37.
▲
by
M1573RMU74710N
15y ago
I see where you're coming from, but it seems a lot like "my biggest complaint about languages I don't know is that I don't know them". To be fair, I think there are varying degrees of intuitiveness, clarity, etc with languages but I don't t
38.
▲
by
M1573RMU74710N
15y ago
awesome...I actually just downloaded Dosbox yesterday and was enjoying massive waves of nostalgia playing Super Solvers: Gizmos and Gadgets. (Incidentally anyone with nerdy kids should check out the Suprer Solvers games ASAP)
39.
▲
by
M1573RMU74710N
15y ago
I think what Klonoar was trying to do was contrast the Javascript generated by Coffeescript with what a Human would write in the same scenario. Note in both Klonoar's example and the article, we are using jQuery. In Klonoar's example inputE
40.
▲
by
M1573RMU74710N
15y ago
> marginally better. I'm not so sure. As written it's wasteful of resources and not cross-browser. (also not entirely functional) All the stuff with the closure and defineProperty is basically pointless.... In the end what they have is
41.
▲
by
M1573RMU74710N
15y ago
> he essence of sktrdie's comment Sure, however the first part of my comment is not intended to address the essence of their comment, so it has no bearing. What they said is incorrect, and in fact a common mistake and I wanted to correc
42.
▲
by
M1573RMU74710N
15y ago
Hey, sorry to be pedantic but this is one of my pet peeves. "JSON" is a way to serialize data to in a string. It's based on Javascript's object literal syntax. JSON has absolutely nothing to do with this article. What you mean is the memor
43.
▲
by
M1573RMU74710N
15y ago
The "free" function as written won't work. When using Object.defineProperty if "configurable" is not set, the default is false (at least in Firefox, I don't recall what the spec says but I think it's just toBoolean whatever calling [[getow
44.
▲
by
M1573RMU74710N
15y ago
> camel casing variable names is right, Personally I disagree. In my code-bases it's: functions: doSomeThing() constructor: new Foobar() object/array/primitive: some_object "constants":
45.
▲
by
M1573RMU74710N
15y ago
I for one am quite dubious when it comes to the idea of people learning Coffeescript "instead" of Javascript. I don't think you should pick up CS until you have at least a moderate understanding of JS. Also, I don't think CS is a tool to ab
46.
▲
by
M1573RMU74710N
15y ago
> "This" is an ill-defined concept (illustrated by the 3 categories and 5 subcategories of the OP) I would disagree with that. The concept behind "this" is actually pretty simple and well-defined: it's part of the execution context that
47.
▲
by
M1573RMU74710N
15y ago
> Pre-allocating an array using new is measurably better for performance in some browsers. If you need to create a new array and populate it with values, then using new Array( size ), and then looping through it to populate it will be f
48.
▲
by
M1573RMU74710N
16y ago
>Dude, long post, little content. I find sometimes you have to repeat yourself a lot before people will understand a point. > That's a subjective claim that I also think is untrue. It's obviously my opinion, and I can't speak for th
49.
▲
by
M1573RMU74710N
16y ago
There are different vectors of attack when it comes to optimization. The point of CS is to optimize for developer productivity and happiness, so I think your questions are largely missing the point. It's like asking "well that's a good scre
50.
▲
by
M1573RMU74710N
16y ago
Well there's a few problems with that example: 1) You've got a "global" named a and then a local variable (via the argument) inside the each function called "a"...so that really confuses things. 2) a[i] where a is a jQuery object returns an
51.
▲
by
M1573RMU74710N
16y ago
>why is the practice of rerunning the same selector frowned upon? Rerunning the same selector is frowned upon for (at least) 2 reasons: 1) It can make for more readable code. Sometimes it makes more sense semantically to have a local va
52.
▲
by
M1573RMU74710N
16y ago
Ben Franklin was actually fairly athletic. One of his many occupations was being a printer, which required carrying around heavy equipment. He was known to carry 2 trays where many Printers only managed 1. He was also a very avid swimmer (u
53.
▲
by
M1573RMU74710N
16y ago
That's a fair point, and there are a few things I would point out in no particular order: The first is that CoffeeScript is ultimately a sort of dialect of Javascript. CS and JS can interact with eachother seamlessly, so as mentioned in the
54.
▲
by
M1573RMU74710N
16y ago
Well it seems your assumption that "pretty" is purely a luxury, something that's nice to have but serves no practical purpose other than aesthetic satisfaction. Personally I disagree. I think a programming language is not like a car, at lea
55.
▲
by
M1573RMU74710N
16y ago
Yea, and what's the deal with people wearing seatbelts? It's like HELLO...just don't crash your car! If you think your car might crash, you shouldn't drive it! Seriously though...there is a small kernel of truth in what you are saying: quit
56.
▲
by
M1573RMU74710N
16y ago
W3schools is pretty bad for "teaching" in my experience. It's serviceable as pure reference to look up bits, but even then it's inferior to other references available. You're right that there are other sources available to learn, and those
57.
▲
by
M1573RMU74710N
16y ago
I think it's a way to schedule a visit from a dominatrix?
58.
▲
by
M1573RMU74710N
16y ago
I would say avoid his books because hes a hack. He gets away with it because 1) most sci-fi (especially in the past, it's actually made a lot of strides) is pretty bad in terms of writing....it's more about the strength of it's ideas and fa
59.
▲
by
M1573RMU74710N
16y ago
I'm not suggesting I know what is the "correct" way of portraying the Hacker community.. I'm suggesting nobody knows. I'm also suggesting that Emmanuel seems to think he knows how to precisely define the Hacker community. That's the impre
60.
▲
by
M1573RMU74710N
16y ago
> I think it doesn't hurt to remind people that 4chan is to hackers what a tagger is to banksy. Well I'm not saying that...my problem is when someone paints this as something completely removed from hacking....especially when it certain
More ›