HNHacker News
TopNewBestAskShowJobs

amadeus

221 karma · joined December 7, 2010

submissionscomments
amadeus··on The DOM isn't slow
Agreed. The DOM is incredibly slow, and his example is so asinine.

What is the use case for generating 2000 unstyled divs with one line of text? Try making that into a nice slick CSS list, maybe throw an image in each list item, with some title copy and supporting text. Perhaps you throw a bit of text shadow on it to create a nice beveled effect. Oh yeah, that 2000 divs per 200 milliseconds probably just turned into 10. Maybe even less, maybe 1 or 2 on a mobile browser.

amadeus··on Meteor in the Wild: How I Learned to Stop Worrying and Love Reactive Programming
I prefer to be interested in things that are ACTUALLY interesting; think Google's Spanner, SpaceX, etc, developed by neckbeards who know what they are doing.

Not some silly NodeJS/MongoDB API.

amadeus··on Meteor in the Wild: How I Learned to Stop Worrying and Love Reactive Programming
I've had a couple of my sites hit by Hacker News before, it's not that much traffic.

But I am perhaps a bit biased, I already think Meteor is a joke of a product.

amadeus··on Meteor in the Wild: How I Learned to Stop Worrying and Love Reactive Programming
How can Meteor be taken seriously with shit like this?

This site barely works... Simply hangs with spinning jewish logos...

amadeus··on Vim Git Gutter
Using the vim Fugitive you can quickly toggle a git blame sidebar to determine all this similar type of information.
amadeus··on Dunning-Kruger
Why is this petty shit on the front page? Who gives a fuck?
amadeus··on Are Designers Crazy?
This may have been said before, but I am posting anyways since there's so many comments here and I don't have time to read them all.

I think I have a way to explain why pixel perfection is a very good optimization that caters to more of a a developer mindset like yourself; it comes down to image compression, and specifically PNG compression.

When it comes to UI elements, the fewer colors you use, the better. This means avoiding things like gradients, or unnecessary colors can have a major impact on file size. It's also the 'art of design' to manage to create a beautiful design without a lot of crappy and needless 'veneer'.

I don't know the specifics of the PNG algorithm, but it can do an amazing job at compressing an image if it's made up of few and often repeating colors (typically it's terrible at photographs, however).

When you apply a scaling algorithm (as exemplified by the post) other than nearest neighbor, it tends to create a lot of intermediary colors that end up hurting the size of the image.

Looking closely at the borders of those buttons, that blur is going to end up adding to the file size because it adds colors that didn't exist before. If you properly 'scale' (which sometimes requires a redraw at a smaller size to get it right), it can have a huge impact (sometimes as much as 2x or 3x).

Oftentimes you can get away with it from a 1/2x scale fairly easily, but you have to remember there are many android devices at a 1.5x scale, and that can sometimes require completely new rounded corners that take advantage of that pixel density.

This is of course anecdotal, but it's not as simple as 'looks' even though I could immediately see the differences between the properly and unproperly scaled images.

amadeus··on Mumford & Sons Warn Against 'Unauthorized Lending' of Their CD
I think one of the first comments on the Wired article sums this all up pretty well:

http://www.wired.com/underwire/2012/12/mumford-sons-lending-...

TL;DR: The term lending has been on most records in the last 20 years and actually refers to public rentals, or something to that effect, and has nothing to do with letting your friend borrow your CDs.

amadeus··on IRecognition: I am no longer Apple's Target Market
I don't know if you can justify statement like that from the proposed evidence.

The App Store and iTunes Store are pretty damned successful services, whether you like them or not.

iCloud is not a joke, it does it's job well for the 99%. I turn on my new phone, enter my apple id, and I have all my settings, apps, etc synced and ready to go.

amadeus··on Anatomy of a Native Feeling HTML5 iOS App
This app is so painfully a web app.

Here's why.

First thing I did, started dragging around when I was presented with some grey/brown screen (an intermediary between the load image and the web app actually being loaded?) so I got a nice little rubber bandy action on a grey screen. Web app.

Since there is no normal iOS UI pieces, I find myself being more critical of it because it's unfamiliar.

I tap the input for the dollar amount, I am presented with the default keyboard. Very crappy for entering dollar amounts. Web app.

Oh yeah, also the entire view slides up on focus. Web app.

When changing the number of guests, I get a weird white flash before everything animates in. Typical sign of a... Web app (a symptom of poor usage of translate3d, generally).

And then of course, there's the final piece, this app is a tech demo, not a serious application. It makes no calls to the server, has no serious scroll views, etc.

There are decent examples out there of what can be a good web app, this is not one of them.

amadeus··on JS Adolescence: Change of opinion regarding certain JavaScript practices
Agreed. This article is utterly worthless.

Why is this on the front page?

amadeus··on The Ultimate Vim Distribution
So then why the hell did you say Pathogen was better than Vundle? Vundle is Pathogen + crack.

People should think about what they say.

amadeus··on Using the HTML5 Fullscreen API for Phishing Attacks
[firstWorldProtection]Not rMBP optimized. Was painfully obvious to spot[/firstWorldProtection]
amadeus··on The front of the iPhone 5 is not flush with the frame
Also note, it's the guy using a fucking generic blog template.

Gotta love and hate Hacker News sometimes. Idiots.

Edit: Bury me all you want, but by booting this post off the front page you've essentially agreed with me ;)

amadeus··on Fleksy - Awesome new predictive text input method
I'm gonna guess that it does a couple things, but the main one is the shape you create with each touch, since you can type without typing on the keyboard itself.
amadeus··on Vim - Putting arrows to use
Basically what dedward said before me.

EasyMotion is not for searching, it's for moving the cursor deliberately to a place onscreen where you need to make an edit.

amadeus··on Vim - Putting arrows to use
Even better, just learn to use EasyMotion, it's one of the most efficient ways of navigating around a file:

https://github.com/Lokaltog/vim-easymotion

amadeus··on Ctrl-P for Vim: Pure Vimscript Command-T
If you are on Unix, add this to your vimrc and the directory indexing speed should go through the roof:

https://gist.github.com/ee14d6ecb9196a07da56

amadeus··on Opera confirms support for WebKit vendor prefixes
Wonderful [sarcasm].

So now when I create something that requires a browser that actually has good hardware acceleration, it will be a dastardly turd of a performer in Opera.

amadeus··on Two decades of productivity: Vim's 20th anniversary
Are we talking about the same thing here? We are talking about a TEXT EDITOR. The INTENTION is to EDIT TEXT.

Vim does EXACTLY that. It doesn't add silly buttons that require you to remove your hands from the keyboard to the mouse to interact with. It doesn't add silly gradients that get in the way of showing you text. Aesthetically it's incredibly simple, and interactively it's incredibly complex, but IN A GOOD WAY. Not everything, especially tools, should be easy to use and learn. A well designed application knows its target and exploits it. Vim does exactly that. It doesn't mean it's a catch all tool for everyone, generally those kinds of tools end up half assed.

And for the record, I am actually a designer, I used to use TextMate, I now mostly use Vim. The UIs are similar in their sparseness. The 2 small beefs I have with Vim is the title bar text being overly verbose and and the rounded corners added by Lion on the bottom are rendered a bit glitchy.

TextMate on the other hand, while a decent text editor, has perhaps the most hideous project drawer around. Wait, actually, TextMate was never 'designed' as you describe it either. It just uses built using Mac OS libraries. I would think that if you were going to harp on design so much you would at least bring up the more 'designed' text editors, like Coda and Espresso, not TextMate.

amadeus··on Two decades of productivity: Vim's 20th anniversary
Again, I think you are missing the point.

Notice how I said it 'can be'. Out of the box, Vim is not very attractive, but with a bit of work it actually looks rather nice (yes, I did modify the application icon, but that's not really what I want to get at here).

Some of this beauty is subjective due to the syntax highlighting used, configuration of invisibles, etc, but that's configurable and therefore can be customized to your liking.

There are clean and elegant fixed with fonts, which again, you can choose whichever you prefer.

What I meant by simple was the complexity (or lack thereof) of the UI. It only shows you some basic information that is readily important, everything else is hidden away in various keyboard shortcuts. This makes it more complex to use, but it also means the beauty of your work, the code, is at the forefront with little distractions. Hell, I even turn off scrollbars.

At the risk of starting a discussion of opinions over my choice of syntax highlighting, here's a screenshot of my vim setup:

http://dl.dropbox.com/u/18782/macvim.png

I don't really understand how you can call this ugly, unless you're referring to my taste in syntax highlighting.

amadeus··on Two decades of productivity: Vim's 20th anniversary
Easy, no, beautiful? It can be. It can be very beautiful in its simplicity.

I like to think learning Vim akin to learning a musical instrument. It's not easy, the learning curve is very steep and it forces you to think about writing code in a completely different way. But once you get the hang of it, the power available to you is absolutely incredible and you'll code with efficiency never thought possible.

My 2 cents.

amadeus··on Building a pure CSS 3D City
Tried cranking up the number of buildings...

http://dl.dropbox.com/u/18782/durp.html

amadeus··on Why a great individual is better than a good team
Another good example!
amadeus··on Why a great individual is better than a good team
I know they are talking about businesses and everything here, but let me throw a wrench into that entire theory.

2010 San Francisco Giants.

amadeus··on CSS3 generator
Nice little utility.

If interested, you should add these easing formulas:

https://gist.github.com/983364

amadeus··on Screw Hashbangs: Building the Ultimate Infinite Scroll
It's interesting that there is no mention of BFCache anywhere in this article. This is one of those fantastic features that (although unfortunately not supported in Chrome) allows for very simple infinite scroll and use of the back button.

Unfortunately this guy's script takes it a little too far for browsers that DO support bfcache and unfortunately breaks functionality a bit, or at least makes it confusing, despite it being intended functionality or not.

amadeus··on Fructose: compile Ruby into PHP
He's sitting right across the table from me :)
amadeus··on Fructose: compile Ruby into PHP
Sarcasm is lost on this one :)
amadeus··on Finally someone makes sense of JavaScript's this keyword
It's only messy if you don't understand it. Just because a concept is difficult to grasp initially, doesn't mean it's messy. Using this properly can prove to be a very powerful and flexible tool in your JS skill set.

Ultimately I think it forces people to think about JS differently than what they might be typically used too.

← PreviousPage 2 of 3Next →