HNHacker News
TopNewBestAskShowJobs

mantrax

151 karma · joined March 7, 2014

submissionscomments
mantrax··on Lessons from an Interaction Designer- TRUST THY USER...
Guess what will happen to Wikipedia if they decided to just "trust their users".

All the good content will be gone within 24 hours. Effin gone.

mantrax··on Prominent GitHub Engineer Quits, Alleging Gender-Based Harassment
How can you believe or not believe without any information at all (that applies to both sides here)?

Sometimes our society recognizes a problem. It becomes a sensitive, emotional topic. Racism, sexism, all real problems.

And when a society is in this sensitive state, some formerly (or even currently) oppressed people take advantage. The oppressors become the oppressed and the oppressed become the oppressors. It's a real thing, and it's quite natural, if undesired.

You don't know what the situation is here. I don't. No one commenting from aside knows.

mantrax··on HTML is almost 100% responsive out of the box
Thanks! I'm checking it out.

I've come to a similar conclusion that using @media incantations only covers the basic cases, so any advanced web layout would need a mix of CSS and JS anyway (so we might as well have a solid JS toolkit help us keep things flexible and tidy).

mantrax··on Prominent GitHub Engineer Quits, Alleging Gender-Based Harassment
Information is vague, so it's best not to take side (yet, at least).

This caught my eye, though: "In one day, all of the work I've done at that company to be a better place for women to work has come undone."

"All work undone in a day" feels off. Either too impulsive, or speaking ill of her alleged work.

I'd be suspicious of anyone claiming great progress in their activist agenda (or whatever agenda) for two years, and then suddenly announcing it was all undone by a single remark or in a single day.

mantrax··on HTML is almost 100% responsive out of the box
I'm highly interested, can you please post a link here? Thanks!
mantrax··on Update on Metro
Because "the artist formerly known as Metro" was too long.
mantrax··on Why Node.js is becoming the go-to technology
I'm 32. Let's just point at the overexcited crowds and have a chuckle as another fad is about to peak.

I like Node.JS a lot, as you say it's a tool in my toolbox. But due to the it's nature the code is quite fragile. It's best to keep Node.JS apps small and simple and play to Node's strengths, which are a high volume of computationally simple (and potentially long-running) requests.

That article is definitely hype-inspired.

mantrax··on Mozilla's 4.5” Dual-Core Reference Phone
You know, I'm not a technology luddite, and I have a smartphone (iPhone), but I have to wonder about all those complaining about battery life.

Your problem isn't battery life. Your problem is you spend many, many hours a day staring at that phone and depleting its quite reasonable battery life. What the hell are you doing that takes you all so much time?

And what's with "last many days". I mean, don't you sleep? Where you sleep, is electricity not available? Honestly, I want to know.

I don't think you're "some kind of direct-current junkie", I think you're a smartphone junkie.

mantrax··on From the "you call this agile?" department
I feel like I have a malware that randomly inserts "Agile" into every 10th item of my Hacker News stream. Help.
mantrax··on 2048
"EDIT: Make sure not to get addicted!"

Oh, no we have another Flappy Story in the making here!

mantrax··on How to Think
This kind of leadership / teaching is also known as the "hero / shithead" rollercoaster, a term coined by Apple and NeXT employees for what it was to work with Steve Jobs.

As the name suggest, it's just as important to strongly praise to correct moves as it is important to strongly scorn the bad moves.

We don't have emotions as some quirk of our evolutionary paths. Emotions are a tool. Like any tool, when used correctly, it produces amazing results.

mantrax··on Smart Guy Productivity Pitfalls
To answer you and nextos both, I don't have a hard goal. As the saying goes:

"A good traveler has no fixed plans, and is not intent on arriving."

I'm optimizing and seeing what happens. If I hit a stubborn limit, and nothing works to break it, I'll accept it. But at least I'll know what's going on, and as you say, I may plan better the rest of my day.

mantrax··on Smart Guy Productivity Pitfalls
This guy is very right. I wrote myself a simple time tracker (I tried a bunch of other ones, but I was unhappy), to track my daily activities. Like John Carmack, I'd turn the timer off any second I'm not spending doing real work, even if I go to the bathroom.

I found out that during a "8-10 hours workday" I'm actually working, as in coding, getting shit done - maybe for about 2, tops 3 hours...

That's not just an interesting observation, I was FUCKING HORRIFIED. I'm pissing my limited lifetime away!

The first step is awareness. Always. Then comes improvement. I kept tracking myself, now being very aware of what interrupts my work, and limiting my distractions. I have yet to claim 8-10 hours of solid work in a day, but it's getting better.

mantrax··on PHPUnit 4.0 Released
Good question. This won't happen. You know why? Whether a test fails, or succeeds, the PHP request is over.

What happened to all those people proud of PHP's principles? "Shared nothing", remember? Why on earth would your tests share resources and state? This is not Java. It's PHP.

Look at PHP's own tests: PHPT files. They're simple files containing code to setup a test, and the result of a test.

How tests run, well, in a nutshell:

foreach (glob('/tests/*' as $test)) exec('php ' . $test);

Then you check the logs. You can have your little pretty log formatted if you want, but it's not that important:

- If there's stuff in the log, your test failed, you go check why.

- If there's no stuff in the log, you're good to go.

It can catch output, exceptions, even fatal errors. Can PHPUnit catch fatal errors? You need to use its "process isolation features", which is just reinventing the wheel by doing... what I just did in that one-liner above. Well I did it! Process isolation! And I didn't need PHPUnit to do it.

A lot of those "modern PHP" libraries are basically a masochistic exercise in copying designs that make sense in Java into PHP where they make no sense.

PHPT style tests wouldn't make sense in Java. And Java style Unit test frameworks make no sense in PHP.

However all those blindly supporting this, can please continue to waste their time, for the benefit of making sure they're buzzword compliant & in sync with groupthink.

"I write my mocks and fixtures in PHPUnit. Oh yeah it has all the latest assertions, like you can assert XML using CSS selectors". I can almost hear the collective taps on my back just saying this out loud.

mantrax··on PHPUnit 4.0 Released
My litmus test about a package is can I reduce it to one line of code, for 80% of the benefits. If yes, it's useless.

assert($condition);

It's useless.

mantrax··on Show HN: Luculent, a new code/terminal font
God damn, that's an ugly one. Super-thin, and look at the lowercase "i" slant backwards so much, it merges with the character before it, especially at small sizes.
← PreviousPage 2 of 2