HNHacker News
TopNewBestAskShowJobs

phzbOx

548 karma · joined September 8, 2011

phzbox.com (phzbox at gmail.com)
submissionscomments
phzbOx··on Tell HN: Frustrated and feeling pretty useless at this point.
This example also stress the importance of checking assumptions as fast as possible. With a really badly done prototype, you could have found this problem 5 months 1/2 before. I think this is a huge lesson to learn from that. And if you did, you're on your way to start a great startup.
phzbOx··on Show HN: Veneer, modal dialogs in 75 lines of JavaScript
I wish more "library" would be written that way. I.e. make the 80% use case as simple and clear as possible, and let the programmer change it if needed.. instead of providing hundreds of useless configuration (knowing exactly that you'll encounter a case where you'll have to hack your way in the code anyway because it wasn't part of the "configuration").

I'm not bitching in any way on the existing jQuery plugins. I used (and keep using them) again and over again.. but for good javascript developers, simple plugins easily hackable is most often than not the easiest way to get the thing done.

For instance, Django provides a good authentication system.. and then lot of different ways to customize it. It's good.. but it happened to me lots of time to hack my own solution as what I wanted to do wasn't part of their initial "configuration" thingy. Some django plugins were created for that, but then again, they were hard to hack as 80% of the code base was to handle all the possible "configurations". So, basically, sometime the easiest way to get something done is just to find a snippet of code that does the minimum and code the missing part.. instead of using a huge plugin that does everything but still need to be hacked (Which is way harder the more the plugin is complex).

phzbOx··on Show HN: My weekend project, DailyPag.es
I really like! 3 small suggestions:

1- At the top, "Curate your own group" -> Create 2- There's only 2 groups on the front page.. try to create a couple more (Even if they are fake) so you can generate traction. 3- The yellow background hurt me

phzbOx··on Hackruiter (YC S10) Launches Hacker School
"This social pressure keeps everyone focused and accomplishing what they say they will. It also fights scope creep, because someone in the group will surely notice when your spell-checker starts turning into an OS." -> I Lol-ed in public, nice one.
phzbOx··on Emacs and Common Lisp
I'd rather have a Emacs on JavaScript; with a possibility to be run from the browser. (Yes I know, that'd mean rewriting everything. Not the end of the world, it'll be fun time.)
phzbOx··on Damn Cool Algorithms: Fountain Codes
Didn't know about that algorithm, pretty cool. Also, the way the author explained it made it a joy to read.. clear, simple examples, meaningful graphics. Can't wait to start reading the previous blog posts (About other cool algorithms).
phzbOx··on Ask HN: What's your experience with remote working? as employees/employers?
It's hard to work remotely if the company is not willing to adapt to it. In my experience, remote working is better when lots of employees are doing it (like github for instance).
phzbOx··on Never create Ruby strings longer than 23 characters
The way wtn said it might be a bit provocative, but here's the last paragraph of the post:

""" I don’t think you should refactor all your code to be sure you have strings of length 23 or less. That would obviously be ridiculous. The 50% speed increase sounds impressive, but actually the time differences I measured were insignificant until I allocated 100,000s or millions of strings – how many Ruby applications will need to create this many string values? And even if you do need to create many string objects, the pain and confusion caused by using only short strings would overwhelm any performance benefit you might get. """

So, basically, "Never create Ruby strings longer than 23 characters" is not true at all. In some specific cases, it might be true. A more accurate title might have been "Why ruby strings with more than 23 characters are handled differently." (Or something similar)

But then, it was an interesting post and I enjoyed it; so it doesn't really matter I guess.

phzbOx··on A Programming Idiom You've Never Heard Of
IIRC, we use this Idiom in SICP while doing symbolic algebra.

For instance, when we have x+y=z and know only x and z, we need to reverse the equation to have y=z-x. The system was built on nodes which would propagate change (a-la events).

IMO, python's with statement with __enter__ and __exit__ looks mostly like this.

phzbOx··on Sift.js: mongodb inspired array filting
Can someone explain me why is it useful? I.e. why not using underscore or whatever library provides map and filter?
phzbOx··on Python-Dev: Adding braces to __future__
I've been arguing for ages about that on #python/freenode. Otherwise, I don't know. Different attempts have been made to include lambdas but it always feel wrong and unpythonic.

I believe it's not so much about multi-lines but more about how the standard library is designed. It's mostly imperative/OO and use really few callbacks. Thus, when you try mixing long lambdas, it feels wrong. Unlike in CS with node.js or jQuery (for example), where callbacks are really the way to go.

phzbOx··on Python-Dev: Adding braces to __future__
What I miss the most with python is multi-line closures and "can't put statements in lambdas'. For instance:

  # Not valid.
  my_button.on('click', lambda x: raise 'unimplemented')
  my_button.on('click', lambda _: some_var = 'clicked')
I believe the whitespace delimiters is the main reason why we aren't allowed to have multi-lines lambdas. (CoffeeScript proves us wrong on that, but from my experience, multi-lines whitespaced functions look better in CS than in Python.)

Also, I'd like to point out that "where's the patch" is really unfair. Python programmers are 'users/customers'. So, it's like if a customer asked for a feature and you'd tell her to implement it..

phzbOx··on Ask HN: Best blogging platform?
Yeah, exactly. It's good for mothers and no tech people. But for hackers, I'd use something else.
phzbOx··on Ask HN: Best blogging platform?
I don't agree with wordpress. Wordpress is like a middle-ground with 'lots of features' vs 'easy to use for no tech people'. If you want something really simple to get started, tumblr rocks (You'll have something running in minutes). If you want to hack your blog with lots of custom features, just pick whatever blogging library in your favorite language.
phzbOx··on Poll: Will you move your domains from GoDaddy today?
For me, it's because it's a one time deal. I buy the domain, set the nameservers and never go back. But I'll still move them to name.com later on.
phzbOx··on Emacs for the rest of us: ErgoEmacs
In that same vain, I would love an emacs in a browser based on the Javascript language. So, a base API to create new buffers/windows. Ideally a theme manager and a plugin/extension system.

The goal would be to have this app open 24h/24 on a server and be able to totally use it from the browser and customize it with Javascript.

I would also be able to have a irc client (Think erc) directly in this 'editor' coded entirely in Javascript using this API. Basically, anything you could do with emacs would be possible, but directly from the browser hosted somewhere and running 24h/24.

phzbOx··on Namecheap.com: We say no to SOPA
Which is fair IMO. I wouldn't want to provide domains for highly immoral websites.
phzbOx··on John Resig: JavaScript as a First Language
Well whatever the language you want to use, you'll have minor installation/configuration to do. For real beginners, the teachers can do it for them. So, if they use Eclipse for instance, the IDE can be configured to automatically use JSlint.

By "Command line", the OP meant that it's easy to plugged it wherever you want it; i.e. it is not strictly an online tool.

About:

  "fascination some programmers have for tools that are cumbersome and difficult to use is unhealthy" 
Not sure what you're thinking about. It's more an opinion than a fact. I.e. Some programmers like emacs better than vim, some prefer Eclipse.. some prefer notepad++. "Cumbersome and difficult" mostly depends of your taste and your background.

Is 'grep' hard to use? What about ctrl+shift+f in Visual Studio? Which one is the most cumbersome and difficult to use? Highly subjective imo.

phzbOx··on John Resig: JavaScript as a First Language
Also, as stated by John, JSlint will be used. That by itself avoid the big majority of JS' gotchas. And IMO, C++ has way more gotchas than Javascript and that doesn't stop universities to teach it as first language.

In fact, I think the first language is not just about giving a strong foundation but also give students the chance to find a good internship. So, with that logic, even though I enjoy hacking with Scheme, I'd feel bad to teach that to students who will try to find an internship and writing on their resumes "Scheme" while other universities students would have "C++/Java". And, please, before your argue that a language can be learned or something else, have in mind how companies recruit and parse resumes.. they often just search for a keyword. Now, one might say that you don't want to work for a company who does that, but then, you have to start somewhere in your first internship.

Thus, I like JavaScript as a first language; not because it's the easiest to learn but because I believe it gives a strong foundation but also gives students the ability to find a good internship.

phzbOx··on 37signals doesn’t like you sorting stuff. Are you just remaking a spreadsheet?
I remember a place where I worked where they'd show users a big table with dozen of statistical numbers and percents everywhere. I kept saying to just show one number (The relevent %) because users didn't care about all these numbers. In fact, it'd make everything harder to understand.

But, "the leay way says to do something and iterate based on feedback" they said. So, a couple of months and iterations later, it was all redesigned with a single number: the important percent.

A trick to help focus on the important stuff is to ask: "If I ask a user that doesn't care at all about my product and is extremely busy, what should I show to make it interesting (Or convenient)?"

phzbOx··on Desingineer – the mythical person every startup is looking for
And be wary of people who say they are great coders and designers. In most cases, it's more half designer and half engineer; meaning you'll have an ugly design and a messy code.
phzbOx··on Silly Python riddle
There is also this: f = lambda: g();g=(f)

Which produce a 'RuntimeError: maximum recursion depth exceeded'; But that's only because my computer is not powerful enough :)

phzbOx··on Silly Python riddle
I had this (with 8 characters):

  );g=(int
giving:

  f = lambda: g();g=(int)
  f() -> 0
phzbOx··on Ask HN: Your code editor, black on white or white on black?
I'm surprised nobody talked about Wombat. It's the theme I use everywhere I can. It's on a dark gray background. Here is a screenshot:

http://dengmao.wordpress.com/2007/01/22/vim-color-scheme-wom...

phzbOx··on The Zelda Test (or Why no Zelda Clones?)
Although I understand what you mean, I also understand the author's point about 'being zelda-ish'. I.e. I really like Zelda (I'm currently playing the last one and really enjoying it), but I'd enjoy any other games based on Zelda's principle game mechanics which the author rightly described.

For instance, I enjoy how the same region will evolve over time depending on where you are in your main quest. At first, it's just a road to go to the temple. But as the game progress and you get more items, you can explore it in depth and discover awesome quests/items.

I agree with him/her that there's really few games out there that mimics the game mechanics of zelda. Mario 64 comes close but, for instance, miss the in depth strategy and the various items. Zelda really have unique game play and it's not just about the world of Zelda.. you could create a totally different world and still copy the game mechanics.. but lots of really successful game use only a part of zelda's game play which is on what the author argue.

In fact, it can be summarized as Zelda being the intersection between multiple 'genres'. And it's surprising that nobody copies it exactly as we all know how Zelda is a success and is popular.

phzbOx··on CoffeeScript 1.2.0 is out
The fun part about CS is that it's widely use and is thus a great success. The sad part is that it's nearly impossible to change the language without breaking the backward compatibility.
phzbOx··on Famous Last Words by Bosses I've Had
I don't know if it was a joke I didn't understand, but no my name isn't Buttle..
phzbOx··on Famous Last Words by Bosses I've Had

  One month ago: 
  
  me: Hey, everything is alright with project X?
  boss: Yep, perfect.  
  
  Next monday, employee call me.
  employee: Can you walk me through the code.
  * me explains everything* 
  employee: Ok, just to let you know you are fire.
  me: :-/ Why?
  employee: Boss will call you
  me: ok
  
  next day, boss don't call
  I write an e-mail
  No answer
  Another email 6-7 hours later
  Boss: Sorry, I'm really busy. Calling you tomorrow  
  
  *Tomorrow*
  no call
  *next day, for a week*
  no call.
  
  I go to the office to talk to him. 
  boss: I have a meeting, I have to run. I'll call you when I get back.
  
  And he still haven't call me back, and I have no idea why I got fired.
phzbOx··on Recipes with Backbone.js
I'm a bit scared and skeptical. The page looks extremely amateurish (Even in the source code, div class="one", div class="two", class="three", wtf?!)

Also, nothing about Jashkenas. Did the authors thought about asking Jash what he thought about it?

From the chapter excerpt, it shows how to include view into views.. which is already clearly explained in the todo example from the main backbone page. I mean, I've used backbone a few time, but don't consider myself an advanced or expert with backbone.js, and I've learned nothing from these excerpt chapters.

It seems more like an amateurish marketing splash page looking to test interested readers.

But then.. maybe the authors are really backbone.js experts and just not designers, and didn't one to spend money or ask a friend to design it for them (but why doing that if you're trying to sell something?!). And maybe I've just read an excerpt that I knew all about. And maybe Jash said something in the intro of the book?

phzbOx··on Show HN: A new way to consume the social web
So.. click Movie Stars, Natalie Portman, and then click Image, and then enjoy.
← PreviousPage 4 of 10Next →