HNHacker News
TopNewBestAskShowJobs

trb

202 karma · joined June 19, 2011

submissionscomments
trb··on Why Noir doesn't have controllers
Sounds similar to the Pyramid web framework for Python, which skips controllers too:

http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch...

I prefer this approach over the usual web-mvc. It's important to note that a view is not a template, but something that generates output. In Pyramid, it's usually a function that passes data to the template (which generates html) or produces JSON from native types.

trb··on Modern Web Application Architecture
Aside from the API having no access restrictions (and therefore has to be internal), it's providing pure data, no html.

The template rendering would have to be done in JS, which means that the templates have to be delivered to the browser. Either you load every template when you need it or you have to transfer all templates on page load. The first case has no advantage over a simple application layer on the server and the second increases page load time.

Thought further, some older mobile phones might have a hard time rendering complex templates in JS, so that might be another factor.

He should just do what best fits his requirements, and that might require a simple application layer in front of the api.

trb··on Kendo UI - a framework for modern HTML UI
Using Chrome13 on Ubuntu, when I try to use the Drag&Drop Demo, the draggable element jumps to the lower right corner of the mouse cursor.

In the slider demo, rapidly clicking multiple times on the left or right arrow to increase/decrease the value fires a doubleclick event, highlighting most of the text on the site.

In the window demo, the mouse cursor does not change when I hover over the title bar, although the window is draggable.

It's these little details that scare me off. When I use a framework, I want it to take care of everything. If I have to add css classes for the mouse cursor or fix element positioning, I'd just build what I need myself.

trb··on The Semantic Grid System: Page Layout For Tomorrow
Ah yes, that's the one. Imho, it's an interesting concept and very useful for niche information, but can't replace the more semantic tags in html5.
trb··on The Semantic Grid System: Page Layout For Tomorrow
Semantic tags simply carry meaning in themselves whereas div-tags don't. There was a campaign to use standardized attributes to convey meaning (the campaigns name escapes me at the moment), but that's just a hack.

Just an example, if you want to scrape a website for the first 100 characters of its articles, you can just look for <article>-tags. If the website used <div>-tags you would have to figure out how to identify the articles (perhaps the author used the class .article or .main_article, etc.), and you'd have to do it for every website you want to scrape.

Screen readers would be another example of software that profits from semantic tags.

trb··on "Any time you have worked long hours, it is a sign of a broken process."
This breaks down as soon as you have dependencies, e.g. a family, as you can't simply abandon your source of income. But aside from that, just because it takes a couple of years to grow a business into profitability doesn't make it not worthwhile, even if you have to put in a lot of work during those years. A large customer with an gradual payment system based on accreditation would be such a scenario.

Of course it's incompetent to cling to an unprofitable undertaking, but there are valid reasons for working overtime over an extended period.

trb··on "Any time you have worked long hours, it is a sign of a broken process."
Don't you think it's a bit unfair to call everyone who works long hours incompetent? I've seen point two that edw519 made a few times. If there's not enough work to pay for another employee, but just enough to pay for your kids college tuition if you make a lot of overtime, what should you do? Growing your business can take years before you can relax a little.
trb··on Command line tools for web developers
Screen is a bit like a window manager for consoles. I use it to start multiple (software) servers without daemon mode. I can then switch between their outputs with screen.

Screen also detaches the console from your ssh session. In my case this means that the servers keep running if I loose my ssh connection to the (hardware) server.

It's a very handy tool and definitely belongs in the articles list of tools.

trb··on Life lessons learned in travelling the world for 8 years straight
I don't like the way this article, and many others like it, disregard peoples ability to be malicious. They portray all humans as good-natured, kind and helpful, and while this is true for the overwhelming majority, the small percentage to who this does not apply do exist.

I personally would love to read some good advice on how to deal with people who actively try to harm you, as most advice available focusses on how to make friends and acquaintances.

trb··on The Smartest Man in Europe Is Very Cautious
Maybe not capable, but surely more focused? As far as I know there are no elections that change the top leadership every few years. This way they have a larger interest in planning beyond their political term and the private industry has less influence through campaign contributions.

But I might be wrong, I'm way out of my comfort zone here.

trb··on When a Colleague Doesn’t Pull His Weight
I worked with a coequal person who often bugged me as I spend less time in the office than he did.

I guess he saw me as a colleague who didn't pull his weight. But I was more productive than him. I got my stuff done and left, whereas he needed much longer for his tasks.

This caused a lot of frustration for me and him, as we both felt we were treated unfairly. I thought a lot about our problem and came to the following conclusion: This was a trust issue, as most things are. He simply did not trust me to complete my tasks on time and wanted to monitor my progress almost to the point of obsession.

I told him that trust was the foundation of our relationship, and that if he couldn't trust me enough to complete my tasks on time, I would not continue working with him.

In my opinion, stress between colleagues about getting work done should never be an issue in a healthy company. People need to be able to trust each other that they work in the interest of the company. Before a lazy employee can affect the whole team, the employer should have handled the situation.

trb··on Interview with key LulzSec hacker
I wonder how Antisec or LulzSec are supposed to bring about change. The interviewee talks about educating and changing people to fight corruption and abuse, but I'm not sure that is happening. For example, look at his involvement in the Tunisian revolution. He talked about disrupting the Tunesian government by defacing the prime ministers website. Did that actually help the Tunisians? I'm under the impression that the hard work got done by the protesters on the street, triggered by Mohamed Bouazizi when he burned himself.

I think it's not that different in democratic countries. Change comes about when enough people demand it and put pressure on their representatives. People have to be motivated to work together in large groups, since three letters demanding the same thing won't impress anyone, but a few thousand might. The work of lobbyists has to be countered, corruption has to be documented and brought to court, where hard evidence is a necessity. It takes lot of very demanding, hard work, without any direct gratification for a long time.

LulzSec/Antisec/Anonymous do nothing to help with that work. Instead, I fear that their actions will be used by politicians like Sarkozy to effect a policy of stronger internet regulation. In the end, these hacker groups might even do harm.

trb··on Why your contact form sucks
It should be common design sense to think about what the users wants to accomplish and how to help them achieve their goal faster. It would make a lot of interfaces much more pleasant to use.

It doesn't take a lot of time. The html for a simple comment form takes me more time to write than to think about what the user wants to do (tell me something). I would even go so far as to not ask for anything besides the email address for replies, and make that optional:

If you sign with your name, I can greet you. No matter what convention you use. If you don't that's fine, too. Want me to call you? Write it in your message.

Even if you didn't enter an email address, I still got whatever you had to say, and who knows - your suggestion could be the one thing I've been missing all along.

trb··on Show HN: Registry Notebook - universal gift registry app built on App Engine
Ah, that was what my assumption. In that case, you are likely targeting everyone, so you should make it very clear what the benefit of your service is. Be very blunt, maybe something like "Manage your gift-getting for any occasion".
trb··on Show HN: Registry Notebook - universal gift registry app built on App Engine
Whom are you targeting? I have never heard of a gift registry, so unless you are targeting only people that already know the term, try to describe the general purpose of your app. Copyblogger is a nice resource on how to write marketing texts and headlines:

http://www.copyblogger.com

For example, your headline (Welcome to..) is basically meaningless. Instead, try to describe your service in it. AirBnBs headline says "Find a place to stay". Maybe yours could say something like "Manage your gift-getting"? (Wikipedias description of a gift registry).

Also, read up on typography, a few small changes can have a great effect:

http://www.smashingmagazine.com/tag/typography/ http://www.alistapart.com/topics/topic/typography/

For example, your headline (Welcome to..) doesn't differentiate itself from the text and therefore doesn't grab the viewers attention. Try to squint your eyes and move back from the screen, you can't see if it's a headline or a part of the text. Try making the font larger and bolder.

I wish you good luck on your endeavor.

trb··on Show HN: HN Trends - like Google Trends, but for Hacker News
Some rather social search terms:

http://hntrends.jerodsanto.net/?q=they%2Cwe%2Cyou%2Ci

I don't understand why "they" doesn't occur. Maybe a bug?

http://hntrends.jerodsanto.net/?q=they+deserve%2Cwe+deserve%... http://hntrends.jerodsanto.net/?q=they+should%2Cwe+should%2C... http://hntrends.jerodsanto.net/?q=they+failed%2Cwe+failed%2C... http://hntrends.jerodsanto.net/?q=i+am%2Ci+was%2Ci+will+be

← PreviousPage 2 of 2