|
Pete O'Hanlon wrote: Did you read the book though? I spotted through it - which in most cases turns up some interesting stuff - but this one didn't. The complaints I enumerated (... complaining about ...) were not meant to be references to book content, but as an example of criticism. I'd have better served my point if I used an analogy of complaining about a free doughnut because it has a whole in it.
Stuff like '==' vs '===' operators are part of the language: I always tend to familiarize myself with a language's components, especially operators, before starting to use it. When I see anything odd (like '==='), I take a good look at it.
Possibly our perspectives differ in that I'm one of those people who read the instructions manual when I buy something. I will admit, however, that php also has the '===' operator, so I'd some familiarity with it.
Are there thing's I would fix? Sure - the DOM access sends me back to the references often enough. That, however, is often the result of how the DOM is laid out - not javaScript's fault.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I don't want to drag on the === v == thing, but it is an example of how the language got some things wrong. The key thing is that people coming to JavaScript from languages like C or C++ tend to be confused by this, for instance, because they have an assumption that an operator that they are familiar with behaves in the same way. I'd either have made == behave the same, or dropped it altogether.
The thing about this book is that it encourages people to write JavaScript. It lays out arguments as to why certain features are good, and it shows practical examples on how to use those features. OK it doesn't really equip you to write JavaScript that manipulates the DOM (as an example), but it gives you enough of the foundations that when you start working with the DOM, you concentrate on manipulating the DOM rather than on language constructs.
|
|
|
|
|
Pete O'Hanlon wrote: I'd either have made == behave the same, or dropped it altogether. When learning the difference in .php, I had to think about it for a while - but it makes sense in the context of these very weakly typed languages. A change I wouldn't mind adding to javaScript is adoption of .php's '.' concatenation operator. This would leave the '+'operator unambiguously for arithmetic.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I can't comment on php as I've never learned it (and no, I'm not going to start bashing php - I've just never really had the time or inclination to learn it; if the clients need it, that's when we'll invest in it).
|
|
|
|
|
Don't I love it, some a**hole decided to go through 3 of my comments (and all on different subjects) and downvote. Even programmers can be a**holes.
|
|
|
|
|
Looks like you ticked someone off. Ho hum.
|
|
|
|
|
And he did it again. Some people.
|
|
|
|
|
This post isn’t going to tell you that you should use MVC to structure your application. It isn’t going to tell you which framework to use. It’s not going to tell you to use CoffeeScript or MongoDB. But I’m going to talk about some small helpful things you can do to your Javascript application to make easier to develop and maintain. Too big to fail whale.
|
|
|
|
|
Not much information. Generic stuff should do in most any app.
|
|
|
|
|
Don't I love it, some a**hole decided to go through 3 of my comments (and all on different subjects) and downvote. Even programmers can be a**holes.
|
|
|
|
|
And he did it again. Some people.
|
|
|
|
|
Honza stated: there doesn’t seem to be a good way to manage dependencies
Shameless plug: Managing Your JavaScript Library in ASP.NET. That's a pretty good method if you are using ASP.NET Web Forms. There's another recent article for doing similar using ASP.NET MVC.
Though, including dependencies in a code comment at the top of the file, as Honza states, sounds like a good practice too (especially if you're working with pure HTML/JavaScript).
|
|
|
|
|
For each natural number n, we draw a periodic curve starting from the origin, intersecting the x-axis at n and its multiples. The prime numbers are those that have been intersected by only two curves: the prime number itself and one. The sum of all nerds.
|
|
|
|
|
It seems that we have come to a point where "Unix" has become synonymous with "Linux", and we're losing a significant in-depth understanding of how the Unix-family of operating system works. Our servers are being dumbed down... How can students learn about the history and flavors of Unix if the world has settled on Linux?
|
|
|
|
|
Terrence Dorsey wrote: How can students learn about the history and flavors of Unix if the world has
settled on Linux?
How can students learn about the history of operating systems if the world has settled on Unix?
How can students learn about computer architecture if the world has settled on the Intel 8086 family of chips?
They cannot. But they don't need to.
They can get a piece of paper called a diploma from some trade school that calls itself the Computer Science Department of a University and start coding in HTML.
|
|
|
|
|
Google's (former) VP of search products and user experience -- now stepping up to the CEO spot at Yahoo! -- shares the rules that gives the search company its innovative edge. Let's look back at some great 2008 advice from "Double M." It seems to have worked well for her.
|
|
|
|
|
The Telstar 1 satellite, which became the world's first active communications satellite, launched on July 10, 1961 from Cape Canaveral, Fla. Two days later it made history by transmitting the first global television signal from the Andover Earth Station in Maine to the Pleumeur-Bodou Telecom Center in Brittany, France. Happy birthday Telstar!
|
|
|
|
|
When we began planning how touch and new types of PCs might work on Windows 8, we recognized the need to provide an effective method for text entry on tablets and other touch screen PCs. Since Windows XP SP1, which had Tablet PC features built in, Windows has included a touchable on-screen keyboard. But those features were designed as extensions to the desktop experience. For Windows 8, we set out to improve on that model. The quick brown fox jumps over the Surface screen.
|
|
|
|
|
After a lot of theorizing, postulating, and non-human trials, it looks like bionic eye implants are finally hitting the market — first in Europe, and hopefully soon in the US. These implants can restore sight to completely blind patients — though only if the blindness is caused by a faulty retina. The first of these implants, Argus II developed by Second Sight, is already available in Europe. My lasers trace everything you do!
|
|
|
|
|
Guess if you are blind, anything helps, but that resolution is 2 orders of magnatude less than the original IBM PC screem (240x320 or 76,800 pixels). Still it should get a lot better pretty quickly.
|
|
|
|
|
Don't I love it, some a**hole decided to go through 3 of my comments (and all on different subjects) and downvote. Even programmers can be assholes.
|
|
|
|
|
And he did it again. Some people.
|
|
|
|
|
The American Customer Satisfaction Index (ACSI), which measures the customer satisfaction of business across 47 industries, released its latest report for E-business on Tuesday. The survey reveals customer satisfaction levels for social media platforms, search engines and portals, and news and information sites.Wired[^]
|
|
|
|
|
The tech world abandoned Internet Explorer before Firefox even had 30% marketshare. It was easy for us to get behind ‘the cause’ of killing IE, but that was an easily replaced software product. Today we’re on the verge of a hardware revolution, initiated by a premium brand, that may or may not trickle down to PC OEMs. How long before designers start imposing a “1x Tax” on consumers with non-Retina computers because it’s too expensive and laborious to maintain two separate asset libraries? Your old display is the new IE6.
|
|
|
|
|
Who what is "1x"? (other than - obviously - today's non-retina-displays?)
|
|
|
|