News for hackers. Stuff that matters.
Re:Why you should move that button 3px to the left by ricardobeat on Sunday February 16, 2014 @03:29PM (#7249125)
> moving a button 3px to the left shouldn't be a problem for any self-respecting developer

That's exactly the kind of thinking that developers abhore. Imagine that the whole interface is built on top of a planned framework that follows strict rules and conventions. This button is following the exact spacing and dimensions implemented in the framework, nevertheless the designer's static mockup is different for some reason (i.e. designed in photoshop).

Now, moving this specific button 3px to the left could be as easy as a `margin-left: -3px` or some other simple line of code, but that is a hack/code smell that will be met with contempt from everyone who looks at it in the future, a maintenance burden, and is deviating from the established standards created in collaboration with the designers themselves...

Other possible scenarios are interpolation mismatches, rendering differences between browsers, padding/borders unaccounted for in the original design, dynamic content that by chance nearly aligns to other element, etc etc. Very rarely is the case that the developer simply wrote 6px instead of 3px by mistake.

This happens way, way too often, and the resistance offered by developers is completely understandable.

Re:Why you should move that button 3px to the left by exizt88 on Sunday February 16, 2014 @03:51PM (#7249237)
> Now, moving this specific button 3px to the left could be as easy as a `margin-left: -3px` or some other simple line of code, but that is a hack/code smell that will be met with contempt from everyone who looks at it in the future

Yep, that's a compromise. But if it makes the product better overall, it must be done. If the designer says so, I believe them -- and if I say that a designer's request would lead to a significant setback for our production schedule, they believe me. It's not the matter of designer/developer interaction, it's the matter of product value.

I too abhor such things, but when a designer asks for it, I do "position: relative; left: 3px;". This is exactly what relative positioning was made for, and it makes the developer's intent obvious.

Re:Why you should move that button 3px to the left by kaishiro on Sunday February 16, 2014 @08:21PM (#7250138)
There's no point in arguing about this without context, since it's really all about the context. That is to say - depending on the framework/code base/whatever you're working in, just "do[ing] position: relative; left: 3px;" for a specific page element could actually be quite a chore. Not just now, but for the next guy as well.
Re:Why you should move that button 3px to the left by ricardobeat on Sunday February 16, 2014 @04:20PM (#7249375)
position:relative creates a new stacking context that could interfere with other styles.

Anyway, one-off hacks like that every full moon are not an issue to most developers, but you'll usually see they come in a constant trickle; after experiencing that for a couple years a strong emotional response naturally develops :)

Re:Why you should move that button 3px to the left by reefoctopus on Sunday February 16, 2014 @04:34PM (#7249420)
Furthermore, moving the button 3 px to the left might take a ridiculous number of man hours, and it's demoralizing work. Most coders are making smart trade offs and balancing a number of things to maximize productivity. How much is that 3 pixels really worth? Why don't you try again, and think of a way to design the interface that doesn't require that 3px move?
Re:Why you should move that button 3px to the left by exizt88 on Sunday February 16, 2014 @04:54PM (#7249510)
> How much is that 3 pixels really worth?

It's the developer's responisbility to estimate how much work a particular task requires. If it's too much work for too little benefit, no sane manager/designer would insist on that 3px move.

Re:Why you should move that button 3px to the left by kaishiro on Sunday February 16, 2014 @08:24PM (#7250147)
I'm uncomfortable with the sheer number of insane managers within our industry.
Re:Why you should move that button 3px to the left by voltagex_ on Sunday February 16, 2014 @11:59PM (#7250703)
Having just been asked to move something by 1 em, I agree.
Re:Why you should move that button 3px to the left by kaishiro on Monday February 17, 2014 @08:48AM (#7252035)
Heh. Eyeballed it, didn't they? "What's that look like, about 1 em?"

:o