HNHacker News
TopNewBestAskShowJobs

phzbOx

548 karma · joined September 8, 2011

phzbox.com (phzbox at gmail.com)
submissionscomments
phzbOx··on Learn Knockout.js in 30 minutes
About the 'manually editing the DOM', in backbone.js you'd still want to include javascript template which is very similar.
phzbOx··on Bitcss - a centralized CSS repository powered by github
There's something I'm often wondering why it doesn't exist: A standard, community-based document specifying a protocol for commons html/css constructs. For instance, specifically saying what is a header, what's the best html structure for it and a couple css examples.

Some might think it's stupid or impossible, but I don't think so. How many simple header/2 columns/footer websites are they? Why are they all differently constructed.. Some uses #contents, others #main-container, others #wrapper, others #wrap, etc etc.

With a great specification for common patterns, it would be possible to document a HTML document by saying, for instance, this page respect the design #18. By that, you could clearly see the doc and it'd show a clear header/3 columns/footer page with all ids and classes used.

It'd make it easier for designers to submit design for project (Think Zen Css for instance). A css could be shared with different websites that use the same 'patterns'.

Think a little bit like the Gammas pattern; some love them, some have them, but we can't deny their usefulness when communicating or documenting a page. For instance, it's way easier to say: I've used the visitor and composite pattern for this tree of blabla rather than describing all the inner details. (Please, don't reply how Gamma patterns are in fact anti-patterns or lack of features of the language, I'm just stating that as example as what I mean by protocol, interface or pattern.)

Finally, it would just plainly make html, css (and maybe even Javascript) code less randomly hacked and easier to maintain. It'll be even easier for beginners to get started. (Take the html code of the pattern #18 and choose a css file from the list associated to the #18) - Dang, a righly constructed 3 columns html page, compliant which work out of the box.

phzbOx··on Trolls (2008)
There is a difference between trolling, making a funny statement and saying a contrived opinion. On HN, all of these get down-voted equally.

Often time, I find something funny, say it as a comment, and get down-voted. It's not a stupid joke or something inappropriate, just a comment that'd make the reader smile. And I know it's hard to judge because I keep saying the score of these comments oscillating (I.e. people upvote it because it's funny, and people downvote it because it's funny (or they don't find it funny.))

About contrived opinion, that one is sad. There's a difference between something wrong and saying your opinion. For instance, someone saying "I don't like Backbone.js because x, y, z" will get on average a really small or negative score. Why? People who agree with this statement in small minority +x, people who disagree with this statement but agree that it was some good arguments and points: +y, majority of people who disagree with the statement -z. It just so happen that z>(x+y) with controversial statements.

Lastly, trolling is more about searching for trouble or pissing of people. For instance, they'll say "Wtf, stop wasting your time with perl. It's a DEAD LANGUAGE, WAKE UP". This kind of posts should just get deleted and the user warned and then banned from HN imo. Note that there're a couple of wrong things with this statement. First, it's extremely aggressive and provocative. Personally, I hate this but some well known people act like that and are really appreciated so I won't judge. Secondly, there's no argument or fact.. it's just trash talking without ground to base yourself on. Lastly, there's usually lots of words in caps and 'wtf' 'lol' 'trololol' which make it look unprofessional for readers of HN used to read well written text. (Ironically, I know this current text isn't well written but it's because english is not my main language, not because I'm trying to skip words or be unprofessional).

Anyway, what I'd suggest is to have a way to differentiate between theses. 1- A 'flag as spam/troll/non-respectful'. 2- A +1 (like what we have) to say this is an interesting post/comment. 3- A Agree/Disagree button to express your opinion.

So basically, someone saying "You guys are fucking stupid; 1+1=2" would be flagged as unrespectful but could still be valid and agreed by the majority.

But in the end, is it worth it? As they say in engineering, it it works, don't fix it. HN is not perfect, but I still enjoy reading the comments and I learn quite a lot.. is it worth trying to fix it for a minority of trolls or disrespectful people?

phzbOx··on A Case Against Using CoffeeScript
To quote the author:

"Check out this one-liner I pulled out of the first .coffee file I randomly opened from our application:

scores = (student["assignment_#{@assignment.id}"].score for own idx, student of @gradebook.students when student["assignment_#{@assignment.id}"]?.score?)

That’s 160 columns of “readable code”..."

You can write a 160 columns of unreadable code in any languages. If you guys enjoy coding like that, don't blame coffeescript.

You might be right however that it is "more tempting". For instance, with scheme, it's really easy to start using macro and redefining everything; or to nest lambdas into lambdas into lambdas "because you can do it and it avoids using variables".

Still, I think it's the programmer's job to write clear code, whatever the language.

phzbOx··on Suicide
If you want to talk in private about things, email me. phzbox at gmail.com. I know life is not supposed to be easy, but sometime it helps to be listened to.
phzbOx··on TextMate 2
Emacs with a vim plugin solved my editing problems.
phzbOx··on Pure python html templating using with statements
Here is a simple idea:

  html(
    head(
      title('This is the title')),
    body(
      div(id='header', body=...)))
We could also create a shortcut for div ID and classes.. for instance a keyword capitalized is an ID, or something starting with _ could be a class.

It could then be possible to make "custom" fields:

html( headers(), left_side(), content(), footer())

phzbOx··on Open Dylan 2011.1 released
Small suggestion: Post some code examples easily accessible from the main page! I've checked the documentation, the dylan book, the "get started".. I still have no idea what Dylan looks like. Basically, a quick "Dylan in 5mins" tour to give me a taste of the neat features.. so it gives me a reason to digg further in the doc.
phzbOx··on Louis CK self-produces, self-publishes content on his webpage
Oh, it's not about the karma. Downvoting is more a message saying to everyone: "This is not a good post".
phzbOx··on Louis CK self-produces, self-publishes content on his webpage
Why is he down-voted?

He didn't want to join paypal, fair enough.

He didn't know he could pay with paypal without joining it, now he knows it.

Other HN-ers might see this post, realize they don't need paypal, and go back to buy the video.

IMO this shouldn't be down-voted.

p.s. I know I could have just upvoted it instead of writing this useless post (Which I'd understand if you downvote me by the way), but I thought my point would be clearer with a message rather than a battle of upvote/downvote.

phzbOx··on Porting to Python 3: An offer for you
My 2 cents: stick with 2.7, it works well with all libraries and it's well supported everywhere. 3.0 provides nothing worth wasting million dollars on. The current mentality is "Avoid adding new feature to P3.0 to give time for people to port to it". What's happening? "Why would I switch to P3 if there's nothing worth switching for."
phzbOx··on Writing Eloquent JavaScript Without CoffeeScript
Well, it's written in small italic gray at the top of the page. To make it clearer, it could be written "Compiled javascript" on the top right of each compiled javascript code. Or, maybe instead of a left and right rectangle, there could be a kind of arrow to inform that the left side gets automatically changed into the right side instead of showing an equivalence between the two.
phzbOx··on What is the single most influential book every programmer should read?
Great programmers won't learn a lot of things from 'Code complete' but since the question says 'every programmers', I guess it makes sense to have it rank #1.

But talking for me, the most influential book I read is SICP.

But before that, the book that really opened my mind about 'professional programming' was effective C++. I wonder if Scott Meyers read HN.. and what's happening with him. For some reasons, I even remember the name of his dog (Persephone) which one of his book was dedicated!

phzbOx··on Elm: a functional reactive programming language that compiles to JavaScript
Interesting stuff! Seems like it's heavily inspired from haskell (great!) Good luck and have fun in your thesis.
phzbOx··on Node.js modules you should know about: node-lazy
I think some modules are far more important to know about than this one. Seems to me that it's more about marketing their startup (last 2 modules you should know about was from his cofounder with a paragraph on testling). Don't get me wrong, I agree that these are useful libraries but there are others that are definitively worth knowing about even though they aren't related to browserling. </end of me being grumpy>
phzbOx··on JQuery Shutters Plugin Site
Please forgive me, but I'll use this post to ask a question I've been wondering for a while. Is it better to use a minified js/css of all pages of the website or to make each pages as minimal as possible? For instance, if I use 4 jquery plugins on a splash page, 2 jquery plugins in the "signup" part and 5 other jquery plugins a little bit everywhere.. should I bundle all these plugins into one big .js, minified it and put it on the splash page so that it is cached?
phzbOx··on Ted Dziuba's take on Hubot
HuBot is part of the github culture and they have fun hacking with it. They even open-sourced it so that other people can hack on it too. I hate how this guy demolishes this project..: "This is a fork of GitHub's Hubot that's substantially less shitty." I find it kinda ironic how he forked github repository, hacked on the bot and then called it shitty.
phzbOx··on Sprint.ly: New software development management tool from Joe Stump
It's beautiful, the video is great, but I don't see myself using this instead of the other thousands of project management tools. What does it do differently? In what will it make my life easier? Is it for developers or managers (or everyone..?) Basically, why should I use this instead of trello or asana? (To name only 2 out of 1000 project management tools).
phzbOx··on [dead]
This is a risky subject to talk about. I guess it's mostly because everyone has a different background and view things differently. I do know however that different women will handle things very differently.

For instance, I'd open a door to a women and she'd put her best smile and thank me while another one might be offended that I'd treat her specially. (Happens to me from time to time in the metro.) Who's right? I guess both.. it depends of their background.

I always feel there's a blur when working with women between professionalism and amiability. I.e. If I talk with a colleague (man) about his weekend, it's fine. If I have the same conversation with a girl, it'd seem I'm trying to date with her. I don't know, maybe it's just me over-thinking things. What do you think?

phzbOx··on Kendo UI is out of beta
Well, the goal of using an already-made UI library is to not have to think about these issues. I.e. if you're paying a couple hundred dollars for a library, you assume it has been well tested. (And, if keyboard shortcuts don't work, it's obvious that it wasn't tested enough.)
phzbOx··on Kendo UI is out of beta
Can someone explain me what is considered 'open-source' in a web application?

For instance, say I have a sushi website where people can order. The web site (html+css+javascript) is obviously public but the backend is private. (Database containing credit card + django code for instance).

If I use this library on my website (I.e. including the javascript on the client side), should I have to pay 400$?

phzbOx··on Making Coffeescript’s Whitespace More Significant
There was a conversation on this recently on HN. IIRC jashkenas said he liked the idea but it would be better to encourage library author's to write a functional style enabling chaining rather than adding a new feature to the language.

Btw, I found that missing too in Python and created Moka (http://www.phzbox.com/moka/ It's still in heavy construction)

phzbOx··on Only fast languages are interesting
Not sure what he means by "interesting". I'm often delighted to learn new languages.. and even ones that are only on paper.
phzbOx··on Show HN: Slowy app, Real-world connection simulator and bandwidth limiter
I really liked the design of this page. The gray/white/red color scheme was right for this product IMO.
phzbOx··on Code sober, get things done drunk
I used to say: "There's nothing wrong about coding while being drunk, just don't commit!". But now, it'd be more "There's nothing wrong about coding AND commiting while being drunk, just don't push it!"
phzbOx··on Creativity requires isolation
I've somehow created my best piano song when drunk; so I guess alcohol might also help creativity.
phzbOx··on MBA or PhD – Picking the right degree as a University Entrepreneur
I had the choice to: Do a MBA or a PhD. I chose to do a startup. Best decision ever.
phzbOx··on What's wrong with OKCupid's matching algorithm.
What I hate about OKCupid is that all the girls I've met only wanted sex. I.e. we have sex, it's all fun, and then they leave saying to call them back whenever I feel like having fun again. It's just not serious.. I clearly checked "Long time relationship".
phzbOx··on Offer HN: create a collaborative tech blog?
I like it; I do agree that there are many blogs hidden somewhere with gems in them. Meanwhile, when posting on HN, you can use the 'text' inside of the url and write the article in it. It's not nearly the same; but it's tweetable and can get feedback/exposure to the community.
phzbOx··on Moka - Minimalist functional python library
Thanks for sharing. And ya, it's freaking slow right now.
← PreviousPage 5 of 10Next →