Better HN
topnewbestaskshowjobs
Log inSign up

panic

29,749 karma · joined Sep 16, 2009 (17y ago) · 3,593 submissions

Submissions

comment 10y ago · link · parent

Being able to adjust flow direction, padding, etc. and then perpetuate those changes across multiple elements makes me more likely to experiment.

That's exactly my point. It makes you more likely to experiment in that way and less likely to experiment in other ways. That's not necessarily a bad thing, but I think it's one reason why designers and design tools don't focus on automatic layout as much.

comment 10y ago · link · parent

Automatic layout systems can constrain your thinking. Especially early on, you want to be able to tweak things and try lots of different options. Once something is in the automatic layout system, it's easier to explore the space of options the system can handle. But making even a small change outside that space is much harder.

2433.

Blame the Banks for All Those Boring Chain Stores Ruining Your City(bloomberg.com ↗)

4 points · by panic · 10y ago · 1 comment

comment 10y ago · link · parent

Browser engines like WebKit are (with some work) portable to any platform with a C++ compiler: that's how the current Haiku browser is built.

comment 10y ago · link · parent

Network stacks and web browsers are easier to improve incrementally than more fundamental parts of the OS.

comment 10y ago · link · parent

Depending on your life circumstances, it can be very hard. What if you're part of a club that mainly communicates using Facebook? What if your friend group uses Facebook for events? Leaving Facebook makes it much harder to participate.

comment 10y ago · link · parent

How does any part of "monitoring hashtags such as #BlackLivesMatter, #DontShoot, #ImUnarmed, #PoliceBrutality, and #ItsTimeforChange" work toward keeping peaceful protestors safe? These people are the peaceful protestors.

comment 10y ago · link · parent

Sure, but what's the alternative? Social media is too involved in most people's lives for them to just leave. Maybe we should have legal restrictions on what data can be collected.

comment 10y ago · link · parent

The City Hall official discussed the city’s use of the data-mining technology on background, and declined to provide the full list of data sources or describe what is contained in the datasets.

Presumably this technology is supposed to be helping the people of NYC. Shouldn't these people know what data is being collected about them so they can decide whether or not they actually want it?

comment 10y ago · link · parent

Maybe this is an odd question, but… why do you need a framework? Could you use plain HTML, CSS, and JavaScript?

comment 10y ago · link · parent

This recent talk about DDoS attacks is worth a watch if you're curious about why it's a hard problem to solve: https://www.youtube.com/watch?v=79u7bURE6Ss

2442.

A Game Player’s Manifesto(facebook.com ↗)

4 points · by panic · 10y ago · discuss

comment 10y ago · link · parent

But nobody can afford to fix their gamma handling code for on-screen rendering, because all the screen fonts we use were designed with the assumption of wrong gamma treatment, which means most text will look too thin after the change.

OS X dilates glyphs when using (linear) LCD antialiasing to counteract this effect. Chrome was having problems getting consistent text rendering in different contexts because of this dilation: https://lists.w3.org/Archives/Public/www-style/2012Oct/0109....

comment 10y ago · link · parent

Nowadays GPUs are able to convert between sRGB and linear automatically when reading and writing textures. There's no more excuse for incorrect rendering on modern hardware!

comment 10y ago · link · parent

The CEO was the one pushing the metric. This wasn't just a localized problem.

comment 10y ago · link · parent

You can use the pageshow event to detect when the browser navigates back in history to a page in the back/forward cache: https://developer.mozilla.org/en-US/docs/Web/Events/pageshow

More generally, you shouldn't make a "single-page app" unless you really need to. The web is designed for navigating between multiple documents. Browser features like history and bookmarks will work better if you stick to the standard behavior.

comment 10y ago · link · parent

Are you speaking from experience?

2448.

Arts Council to impose quantitative measures of arts quality(artsprofessional.co.uk ↗)

22 points · by panic · 10y ago · 28 comments

2449.

The Ergonomics of Type Checking(michaelfeathers.silvrback.com ↗)

7 points · by panic · 10y ago · discuss

comment 10y ago · link · parent

It's important to remember that the terms "statically typed" and "dynamically typed" cover a huge range of different language features. To have a good discussion about the tradeoffs, it's better to talk about individual features rather than "statically typed" or "dynamically typed".

For example,

Like puzzle pieces with shapes that we can observe fit together, we can think of types as specifying a grammar for programs that ‘make sense’.

All programming languages have a grammar for programs that make sense (it's specified by the parser). Algebraic data types give you a grammar for values that make sense. Separately, a type checker assigns types to expressions and checks that they're consistent. You can have algebraic data types without a type checker (e.g. Racket's 2htdp/abstraction), and you can have a type checker without algebraic data types.

You can also have constraints on values that are too complex to be easily checked at compile time (e.g. clojure.spec) or that can be checked at compile time but only incompletely (e.g. Erlang's -type and Dialyzer).

Anyway, I don't mean to be critical of the article: it does a good job covering the high-level tradeoffs. I just think people are too quick to generalize their experience with particular languages to entire classes of language features.

2451.

Faking your death(linkedin.com ↗)

384 points · by panic · 10y ago · 214 comments

comment 10y ago · link · parent

It's possible to be interested in philosophy while criticizing the field as it is taught. If you want to know how and whether the workings of the brain can produce rational thought, you'd be better off pursuing a neuroscience education.

2453.

How the right syntax can help teach recursion(akkartik.name ↗)

68 points · by panic · 10y ago · 62 comments

comment 10y ago · link · parent

IMO the whole idea of "potential" that can be "wasted" is toxic. As soon as you feel yourself falling behind -- which you always will -- that idea that you've wasted your potential shows up to make you feel bad.

This inevitably drives people toward easier kinds of achievement like awards, promotions, and degrees. But a lot of real progress happens outside systems like this! I think it's valuable to have smart people working on stuff for its own sake, not chasing any kind of achievement.

comment 10y ago · link · parent

It's also the Most Object-Oriented database: it combines the data and the procedures to access that data into a single encapsulated object. An exemplary design in all respects!

2456.

QuineDB – A quine that is also a key-value store(github.com ↗)

185 points · by panic · 10y ago · 23 comments

comment 10y ago · link · parent

I think a P2P social network that positioned itself as a counter-cultural movement could do pretty well. People are willing to put up with a lot to be part of something cool.

comment 10y ago · link · parent

Men commit more crimes than women. Do you think we should eliminate freedom of movement for men? "Import replacement populations" of women to drive them out?

The reasons people commit crimes are complex. Visible attributes like skin color or gender do not cause people to commit crime, and using statistics to argue this is incorrect and racist.

1
818283
120