HNHacker News
TopNewBestAskShowJobs

harlanlewis

1,333 karma · joined October 20, 2011

submissionscomments
harlanlewis··on React-MD – React components built with Sass
This is a very fair point. We've followed a similar approach to what you're considering, with styles living in a couple places:

- Scss library of variables, mixins, and functions that can be imported in whole or piece-by-piece into components that can use them. Doesn't compile any CSS classes on its own.

- A lean global “browser reset”, uses some of the global style variables from the library.

- A simple React component (we call it `Cell`) that is used absolutely everywhere. This component has its own .scss file which imports the global scss library, and is essentially a one-stop-shop for `functional` CSS for colors, dimensions, typography, elevations (drop shows and zindexes), scrolling, etc. React authors use it via props instead of writing class names. Eg `<Cell color='action-primary' elevation={2} fontFamily='header'>`. Heavily reusing this component is what most directly addresses the performance concerns you note.

- While Cell is sufficient for composing most layout and aesthetics at all levels of the page, one-offs are often needed for fine detail work:

--- Simple cases are handled directly where needed via inline styles (easy to read when everything is in one place). We don't do anything fancy here for authoring (no radium etc), just an inline style autoprefixer that runs through postcss loader via webpack.

--- Per-component scss files for more complicated needs (unique animations, novel compositions, complex interactions, etc). The component scss imports the global scss library so all our standard theme/helpers/etc are available everywhere. The component scss outputs to unique hashed classnames via webpack, so there is no risk of class name collisions between components. This allows for very focused scss files with short, straightforward names.

A lot of this works very well - in particular the global scss library, the Cell component, and the ability to opt-in to more fine grained control per component. However, there is some duplication between the scss library and a few javascript utils we've made to help keep inline styles consistent. These issues are somewhat made up for by how transportable our style layer is - if we were to switch away from React, or start a new project on a different stack, having the style vars and class library defined in scss already would make it easy to simply drop in and get rolling.

harlanlewis··on The Elephant in the Smartwatch Room
You're beating around the bull in this China shop.

(yeah yeah it's a Reddit -like comment but this whole thread should probably be downvoted)

harlanlewis··on Uber ordered to stop self-driving vehicle service in San Francisco
I agree with you that ratings should mean something. However, Uber requires an absolute minimum score of 3.8 for drivers to stay on the platform, and a 4.6 minimum for any area that has reasonable driver supply (eg: everywhere). This means every time you rate a driver a 4 it's effectively a statement that they should be fired.
harlanlewis··on Annotated version of an original Deus Ex design doc surfaces
This is cool to see.

I even more enjoyed the oral history of Deus Ex development that it links to from the intro. A really fun, nostalgic, and pretty relateable read. And somewhat in contradiction to this post, has the quote:

> From what I can recall, there was no continuously updated design doc for Deus Ex. If there was, I never saw it and I didn't get access to it.

Another cool excerpt:

> Basic sounds in speech, like "ah" or "ooh" or whatever, they all have frequency fingerprints, basically. Even with the low CPU power at our disposal, I could do a really low-resolution fast Fourier transform to analyze the speech as it was being output to the sound card, chop it up and try to match it with phonemes. Then I could use that to send hints to the animation system to move the lips.

> So I had the artists animate the face bones, of which we only had like two, I think -- it was super low-poly -- and I had 'em go with eight phonemes to animate face poses for. Except, they'd do it on the base pose and I'd blend in the animations on the face in real time based on what the audio does.

… for a game that came out in 2000! Pretty cool.

http://www.gamasutra.com/view/news/240456/Developing_Deus_Ex...

harlanlewis··on What it means when a huge Antarctic glacier is unstable
Near the end of the first video they overlay an image of Manhattan for scale. Penguins would be invisible - some of those chunks are as wide as the borough! Boggling.
harlanlewis··on Women rise through the ranks of IT more rapidly than men
> And in fact, studies have demonstrated that fewer girls are interested in programming because of society.

I agree! But why? And when? And is it just girls? The filter I'm talking about extends far beyond and is applied far earlier than the job interview, or the application to college, or which classes someone takes in high school. The paths laid out for all of us have varying degrees of difficulty, and shape how we grow.

Speaking as a white male from California who grew up with a computer in the house, in many ways my own career in tech is the path of least resistance. Sure, I've worked hard and chose to invest myself in these skills and this career, but the impediments to doing so were much, much less significant than the social and structural biases that people with other backgrounds run into at every. single. step.

Simply recognizing that I got to shoot for the hoop from a few feet closer than the rest of the population has given me a great respect for those who made the same shot from farther out. It's not that an individual like myself (like you?) with an advantaged position couldn't overcome the same challenges, we simply have not been tested in the same ways. I don't mean to speak for you as an individual, only that over a large enough group you're going to see a lot more people make it who got to take the easier shot.

I think our fundamental disagreement is that you're saying people like me (perhaps us?) don't actually get that easier shot. And that I simply do not believe, because of my experience in and observation of this industry, and because of the near-endless supply of evidence to the same. [citation needed: plenty in this thread, and every thread like it]

harlanlewis··on Women rise through the ranks of IT more rapidly than men
Edit: your comment has been edited extensively, so I'm responding to whatever it was at the point in time I started typing.

---

To put this very dispassionately, filtering more aggressively reduces both total count and false positives (if the filter shares any correlation with success). The population subjected to the stricter filter will have a higher percentage of people who are deserving of promotion.

This would be true even if we limited our entire workforce to ivy league white men and then applied an additional filter to a random subset of them. If the filter correlates, the subset will outperform. I don't mean to say this is the only thing impacting who works where and how successful they are, but it is certainly present.

You're responding to an argument that I didn't make. The global population statements about which gender is "smarter" are your own.

Regarding Trump (I'm pretty sure I didn't bring this up, either), his recent exhibit of repeatedly mentioning that he was being shortchanged on time during the debate while actually having (negligibly) more time to speak (~40min vs ~39min) is a perfect illustration of the “prejudice” you're describing. When used to a privileged position, equality feels like bias.

(Debate time to speak, pick your source: https://www.google.com/search?q=trump+clinton+time+to+speak)

harlanlewis··on Women rise through the ranks of IT more rapidly than men
Absolutely.

It's not a hard argument to make that women (and many other underrepresented people) are subjected to a stricter filter in the tech world, playing with a deck socially and structurally stacked against them. It's no surprise at all that people who can find success despite playing on a harder difficulty level will be among the most capable. An article like this is actually heartening, as it indicates that achievement and ability are internally recognized.

And now I've broken one of my cardinal rules (don't engage with social flamewar threads on HN), but you're exactly right - many of these comments are too embarrasing to let pass.

edit: calex just made this point far better than I in another comment in this thread. https://news.ycombinator.com/item?id=12687015

harlanlewis··on Hugo: A fast and modern static website engine
I just last weekend revived a Jekyll site that had sat dormant for 3+ years and experienced exactly what you're describing. Not a fun afternoon. I do feel fortunate it was only _an_ afternoon, though.
harlanlewis··on The eye of hurricane Matthew passes directly over a weather buoy
That's a great visualization. Reminded me of one posted to hacker news a few weeks ago that let's you cycle through visualizations of cloud cover, atmospheric pressure, precipitation etc in addition to wind:

https://www.windyty.com/?20.551,-74.487,5

I really love seeing all these conditions moving in concert at a global scale. As someone who's never experienced a hurricane, it makes the effects feel much less abstract.

harlanlewis··on Wikipedia’s resident shipwreck aficionado
Thanks for sharing that tip! By the War Museum, do you mean the Army Museum? I was not able to find the war museum with some quick googling.

http://www.armemuseum.se/languages/english/

harlanlewis··on Some cities are taking another look at LED lighting after AMA warning
Even worse is the extreme latitudes in summer! I tried sleeping under just a mosquito net in Alaska when the sun stayed up until 2am and rose again by 4. I brought a sleeping mask but found it hard to keep on, as we'd encountered three separate grizzlies earlier that day…

At lower latitudes, a full moon over snow is stunning and surreal when you can get away from local light sources - no flashlight required. Light at night (of appropriate color temp) is quite natural.

harlanlewis··on MacOS Sierra
I also find this frustrating. For applications where it happens frequently, you can map paste/paste-and-match to keystrokes you can remember using System Prefs > Keyboard > Shortcuts > App Shortcuts. There isn't a global change you can make without 3rd party tools, AFAIK.

For frequently-used shortcuts that have hard-to-remember modifiers, I change them to the full set of shift-ctrl-opt-cmd so that just mashing my hand across the entire corner of the keyboard will get the job done. Has the nice side effect of (usually) avoiding the unexpected overwrite of other default app shortcuts.

harlanlewis··on I quit my job, bought an army truck, and spent 19 months circumnavigating Africa
Beyond Top Gear, the hilux is the standard light cav for irregular armies around the world.

https://en.m.wikipedia.org/wiki/Toyota_War

https://en.m.wikipedia.org/wiki/Technical_(vehicle)

http://www.newsweek.com/why-rebel-groups-love-toyota-hilux-7...

harlanlewis··on Why Do Tourists Visit Ancient Ruins Everywhere Except the United States?
Big Sur is terrific, with lots of beautiful rugged and ritzy places that a google search will quickly turn up. Might I suggest Cone Peak. It's 5000 feet above sea level and just 3 miles from the beach, with a road almost all the way to the top. (you can camp on the side of Nacimiento-Fergusson road overlooking the coast, too). Great entry point to the Ventana Wilderness if you find time for backpacking, even in December.

Inland from Big Sur and equally south of SF, Pinnacles was recently made a national park. It can be fully explored in a couple days and, aside from the stunning volcanic scenery, is the first place the Califirnia Condor was reintroduced after very nearly going extinct. These days you can spot quite a few of them if you're willing to wake up early and watch the sunrise from the summit. The park attracts a crowd, and it's worth reserving a camp site early, but it's far less hectic than some of the better known parks.

Going east from SF, the Sierras has a number of wilderness areas that attract a fraction of the people you'd find in Yosemite (the valley is an absolute must-see, but it's a zoo outside of winter. The outdoors will require more gear in December, but the snow capped valley rim is one of the most beautiful places I've seen). If the snow is late in falling, I'm partial to Emigrant Wilderness - the same granite as Yosemite, none of the crowds. South of Yosemite, look into King's Canyon. Both should have snow in December, which is a good reminder to check seasonal road closures if you intend a scenic route across the Sierras. North of Yosemite, highways 120, 4, 88, and others typically close.

North of SF, Mendocino National Forest has an abundance of dirt roads accessing enormously underutilised public spaces. There's a drive-in campground just south of Snow Mountain (in the Snow Mtn wilderness) that's stunning and empty. Despite the name, it doesn't get much snow. Closer to the city, Sugarloaf above the Sonoma valley makes for a great low-key 1 or 2 day trip that can be worked into visiting a winery or two.

The Sonoma coast north of SF also has a lot of beautiful places. Check out Salt Point. A bit out of the way for Vegas, though.

Death Valley is mostly on the way to LV and in December will be cool enough to stand.

These are a few of my favorites that are varying degrees off the beaten path but all incredible natural places.

harlanlewis··on VotePlz – The Easiest Way to Vote
...but just imagine how much less it would matter if everyone voted! Wait, that doesn't sound quite right.

Determining the value of a vote based solely on its probability to be the _deciding_ vote seems like it's overlooking some of the benefits of an engaged participatory democracy.

harlanlewis··on The Dropbox hack is real
A false positive from your perspective doesn't mean your email address isn't actually being used to sign up for things.

My primary personal email address is routinely used by a small handful of other real people (all strangers) for all sorts of things - college applications, car insurance, some address books think it belongs to a cousin who gets included in a lot of group threads about reunions and full of photos. I've found the families more difficult to unsubscribe from than the services, name+email associations spread like a virus. I routinely get alarming/misleading "Someone has your password!" security alerts from Google after someone tries to list my email as a backup account.

These little strings we use to identify ourselves can be typed by anyone, anywhere, bot or human. I wouldn't worry too much about false positives.

harlanlewis··on A Monument to Outlast Humanity
Yup, exactly.

I don't think they're a source of materials used in the project (my first guess) because they can be found quite far away from the site, are present across varied terrain, and lack road access and indicators of work (eg tailings). Such uniformity in natural features always piques my interest. Will just be one of those endless mysteries of the desert, I suppose.

harlanlewis··on A Monument to Outlast Humanity
Looking at it from space, I'm much more interested in the small circular clearings of regular size that are everywhere in the surrounding landscape. Each one looks the size of a truck. What are those all about?
harlanlewis··on How Startup Options and Ownership Work
Carveouts are one approach. Some quick googling found this very readable explanation with pros/cons from a reputable source: https://www.dlapiper.com/en/us/insights/publications/2014/04...

This article primarily describes carveouts for management retention in a public company, but they can be used in private companies and are not restricted to management.

This is the only mechanism I have any familiarity with, I'm also very interested in hearing about others.

harlanlewis··on The traits of a proficient programmer
Counterpoint (taken from those google results):

http://cooking.nytimes.com/recipes/1016885-tomato-fruit-sala...

harlanlewis··on Instagram photos reveal predictive markers of depression
I interpret the issue k-mcgrady brings up as the inconsistency inherent to self-assessing issues like these.

Standardized assessment has its issues (it doesn't replace a professional), but at least it works with a single definition that doesn't rely on calibrating each participant's understanding of depression. People struggling with depression often fail to recognize or be willing to admit it, and the opposite can be true as well.

By testing against participant answers, this study is actually determining if your photos correlate with saying you're depressed, which is a different and less predictable thing.

harlanlewis··on [dead]
You're getting some downvotes, but it raises a question about the basic concept of utopia as it's been explored by many, many authors. All the ones I can think of achieve peace through homogenity and comformity, often with quite restrictive rules on how you can dress, where you can live, who you can live with, what you do for work, how you spend your leisure time… and these are legitimate attempts at exploring the qualities of potential utopias, not just setting the stage for "then it all fell down" narratives.

Perhaps the area Star Trek does better than most (if one goes with the premise that it's a utopia, and really quite contradictory to it) is how humane and permissive it is with those who break the rules or fail to match the ideal (utopias don't tend to survive this kind of behavioral diversity). It might be big government, but there's still quite a bit of freedom in individual lives despite the militarized hierarchy and silly outfits.

There's a great book on humanity's grasping attempts at the ideal called Imaginary Cities by Darran Anderson: https://www.amazon.com/Imaginary-Cities-Darran-Anderson/dp/0...

harlanlewis··on Salesforce buys word processing app Quip for $750M
https://nylas.com/security/ (buried under the More menu)
harlanlewis··on Salesforce buys word processing app Quip for $750M
This subthread is quite offtopic now, but I'm a happy Nylas pro user (and something of an email client nerd). Keep up the great work!

Definitely worth a look for those who haven't heard of it before.

harlanlewis··on The Dreaded Weekly Status Email
My team adopted Geekbot as we transitioned from in-office to primarily remote. We tried a handful of tricks and tools early on, with Geekbot the stickiest. Spending 30 seconds submitting my report while getting up to speed each morning is an easy routine. Nowadays, I prefer Geekbot to in-person standups (and definitely don't miss the interminable ramble that they too easily fall into).

I think you're right to wonder about alternatives, though. The aspects of Geekbot we use would be fairly easy to replace with a bot of our own. Geekbot pricing has a very narrow sweet spot, which I imagine varies significantly by team.

harlanlewis··on How to Keep a Journal
> Edit: I had a handwritten journal once when I was 13 or so, it disappeared, probably my mom finding and reading and destroying it.

That is the most awful thing I've read today.

harlanlewis··on The Politically Incorrect Guide to Ending Poverty (2010)
Hope that things work out for you. Definitely agreed there's a difference in immediate existential threat between those categories, but concentration of wealth isn't wholly unrelated. Some would argue it's a cause.
harlanlewis··on Skimmers Found at Walmart: A Closer Look
It's interesting how the standard design of ATMs has created an opportunity for skimmer apertures. Straight from factory, ATMs are often a 1980s-vision-of-the-future with lots of bevels, mixed plastics of assorted shiny/matte, inexplicable recesses and protrusions. Even bulky skimmers and cameras (to capture your pin number) can be attached to the faceplate and most wouldn't think to question it.

Snopes posted some photos and explanations: http://www.snopes.com/fraud/atm/atmcamera.asp

harlanlewis··on Microsoft is the first big company to say it's serving the legal marijuana trade
Of course, the old IE box model is what everyone else overrides the default to match nowadays. Maybe they were on to something!
← PreviousPage 4 of 12Next →