nene | 13 years ago | on: Open Source in your Inbox: Code Triage
nene's comments
nene | 13 years ago | on: Rational Suckers
nene | 13 years ago | on: Use ack instead of grep to parse text files
grep 'silver.*needle' haystacknene | 13 years ago | on: The Problem With Comments
I can't really see the benefit of hunting the comments from your code with cursor. It definitely would make it even more unlikely that comments aren't updated when code is changed.
nene | 13 years ago | on: A book review written in JavaScript
Would have been much better if the review was exposed as an API which you could explore freely. And maybe some embedded silly programming challenges to be able to more effectively read the review. e.g. the example paragraph API could have just .nextChar() and .hasMoreChars() methods, so one would have to write a loop to comfortably read the example.
Opportunities are endless, though the book itself looks interesting.
nene | 14 years ago | on: Hubble to use moon as mirror to see Venus transit
nene | 14 years ago | on: How to Write a Simple Interpreter in JavaScript
And then there are articles about building compilers which do support loops etc, but the trick is that these constructs are implemented by some other already existing machine.
So I feel like there's some gap in my education. Pointers, anybody?
nene | 14 years ago | on: A Baseline for Front-End Developers
Especially what's wrong with a templating system? A templating system on server side can help avoid casual escaping bugs by doing automatic escaping of everything by default. Exactly the same thing can be done on client side.
OK, I think I found the quote that is troubling you:
> It has been well noted by the group that any kind of reliance on a JavaScript library for encoding would be problematic as the JavaScript library could be subverted by attackers.
So basically we are talking about the case where users machine has been compromised? In such a case I don't really see how you can be sure of anything - that user is screwed.
At the same time the article suggests multiple ways of encoding the data on client side... I'm a bit puzzled.
Maybe what they really meant was that you shouldn't hope at server side that the client side correctly performed the encoding, like hoping the client will escape you database query arguments... but that's just basic everyday knowledge.
nene | 14 years ago | on: Books for people in the software business
I'm more surprised that under the title "everyone should read" are three Joel Spolsky books.
nene | 14 years ago | on: Programming Styles in the Node Community
What I can say though, is that there is a correlation between a lousily indented code and bugs. Consistency is the key in indentation. Reading non-consistently indented code, that's what drives you insane... but two instead of four spaces... hardly.
nene | 14 years ago | on: Man with multiple degrees fails standardized test for children
You shouldn't be able to just guess the answers one-out-of-four. When I was in school (not in US) there never was such a thing. You simply solve the problem and write an answer, which usually is a simple number.
nene | 14 years ago | on: ECMAScript 6 looks promising
I've used Ruby quite a while and never experienced any problems with the very same construct in there.
nene | 14 years ago | on: Something is wrong with this picture.
nene | 14 years ago | on: The power of Google: how the Panda update hit Experts Exchange
I applaud that you have created a site that tries to compensate the effort to its contributors... I just hope that you have managed to tailor the site to avoid the problems that money can bring.
nene | 14 years ago | on: The Shakespeare programming language
nene | 14 years ago | on: Git is exploding
nene | 14 years ago | on: All patents are theft
But the main problem with software patents in particular is that you can never be sure if you're infringing something. You can only hope that you don't.
nene | 14 years ago | on: All patents are theft
1. Because of the legalese language in which patents are written it's pretty damn hard to even understand what is patented.
2. Even if you understand what the patent is about, it's probably of little help in implementing the thing by yourself, as the patent just describes the general idea.
3. If you indeed understand the idea, you might then come up with an improvement, but there's no benefit for you in publishing it, as the underlying idea is patented, the only one to gain from it is the patent holder.
4. You are encouraged by the system to not read patents, because if you happen to infringe one, your knowledge of the existence of patent can be used against you.
nene | 14 years ago
nene | 14 years ago | on: Google Killing Off Buzz and Code Search
- It's not case-sensitive, which sucks for searching code.
- It's unable to search for any punctuation characters (searching for "foo()" is the same as searching for "foo"), which totally sucks for searching source code.
- The search finds lots and lots of duplicates. Even multiple matches in one file are listed as completely separate results.
- You can limit the search to one of the languages in dropdown menu, but if your language of choice doesn't happen to be in there, you're out of luck. For example you can't limit your search only to C header files.
Simply by adding package:github.com to Google Code Search search box one can apply a better tool for code in github, but unfortunately the good times seem to be over soon.
Really sad to see it go...
I listed my project[1] there, but for some reason it's detected as having 0 issues.
Additionally my project is listed under JavaScript repos, while in reality it's both JavaScript and Ruby project, it just happens to have slightly more JS than Ruby code.
[1]: http://www.codetriage.com/senchalabs/jsduck