548 karma · joined September 8, 2011
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.
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?
"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.
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())
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.
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!
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?
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$?
Btw, I found that missing too in Python and created Moka (http://www.phzbox.com/moka/ It's still in heavy construction)