HNHacker News
TopNewBestAskShowJobs

bzalasky

190 karma · joined June 26, 2011

I’m a software engineer at Lookout that builds large-scale JavaScript applications, data visualizations, design systems and prototypes with uncompromising craftsmanship.

Talk to me if you’re interested in learning more about Lookout, or if you need to solve a problem with technology.

Let’s build something.

submissionscomments
bzalasky··on Ask HN: How to prepare for a Front-end Developer interview?
Generally the candidates that don't pass that first question don't have sufficient experience with JavaScript. Sometimes this is because they have more experience on the backend and for whatever reason said they knew JavaScript on their resume and found themselves in the frontend portion of a fullstack interview. Other times the candidate has a lot of experience with CSS and layouts, but doesn't have much experience with JavaScript beyond jQuery. Out of five candidates, two might fail this... but it comes down to the candidates in the pipeline. Working closely with your recruiters can take that number down to zero. I've found that filters like this become more necessary when there are a lot of positions to fill.
bzalasky··on Ask HN: How to prepare for a Front-end Developer interview?
It's not meant to be difficult. You'd be surprised how many people don't pass this. The most important part of the interview for me is when we advance to talking about what a candidate has actually done.
bzalasky··on Ask HN: How to prepare for a Front-end Developer interview?
Generally, I start by getting an idea of how well a candidate understands JavaScript with a problem like this:

Write a function that enables the following API...

    createOlympian()
      .name('Katie Ledecky')
      .sport('Swimming')
      .country('USA')
      .log()

    // Katie Ledecky, Swimming, USA
Next, if things are going well, I have the candidate transform a JSON collection response to match some arbitrary requirements using Lodash/Underscore.

After that, I focus on the candidate's experience and talk about projects they've worked on, their process and what they're looking for in their next position.

If you're a front-end candidate that's solid at design, visualizations or complex layouts, I'd encourage you to bring your personal laptop and show off some of the work you've done on your own.

bzalasky··on San Francisco's homeless problem: A civic disgrace
sfchronicle.com is their premium, subscription-based offering. I suppose it'll only allow you to read 10 or so articles before putting up a paywall. sfgate.com is their free ad-based offering.
bzalasky··on Ask HN: Best books on understanding recursion?
The book you're looking for is The Little Schemer (just noticed another commenter suggested this as well). Even if you're not that interested in LISP, you'll come away from this book with a solid grasp of "programs as recursive functions." I found that the format of the book lends itself well to reading during a commute. It's easy to pick up and work through a few pages. If you get to a section that you don't understand right away, slow down and make sure you get it before moving forward.

https://mitpress.mit.edu/books/little-schemer

bzalasky··on Ask HN: Should I quit my highly paid startup job at a failing startup?
How many employees does the company have (roughly), and how much money has been raised?
bzalasky··on Open-Sourcing CloudFlare’s UI Framework
With regard to adopting React, coming from Backbone in the past. I've found that it simplifies the view layer, particularly when it comes to extracting shared functionality. It's not to say that you can't do this in a Backbone application, far from it. However, it's less work in a React application because of how React enables composition.

There were two primary drivers the led me to adopt Redux.

1) When working with multiple services to build a single view, Backbone models are the wrong abstraction. Redux allows you to work with arbitrary data structures without the need to deal with hooking up events between nested models/collections. It also prevents overfetching or having to resort to nested models when a single endpoint serves multiple views.

2) Managing complex asynchronous flows becomes easier when there's a single source of truth.

The backends for frontends pattern that Netflix and Thoughtworks have written about is another approach to dealing with the multiple services issue, but in reality, it's not an option for every project.

bzalasky··on Ask HN: Your favorite open-source JavaScript Library for charts?
These two videos from Scott Murray are a great intro to D3 if you haven't worked with it before:

https://www.safaribooksonline.com/library/view/an-introducti...

https://www.safaribooksonline.com/library/view/intermediate-...

bzalasky··on Ask HN: Your favorite open-source JavaScript Library for charts?
After using several different libraries over the past few years, I've started using D3.js on its own. While it's more work than dropping something ready-made into an app, it's more flexible.

If you have specific designs/requirements to work from, it may be easier to build the charts with D3 than trying to shoehorn a stock chart into matching the spec. Behaviors like linking chart interactions to independent components (or vice versa) become easier to implement as well.

If you care less about flexibility, Chartist is a solid contender: https://gionkunz.github.io/chartist-js/

bzalasky··on Why Cities Aren’t Ready for the Driverless Car
Henry Petroski is well known for writing about the history of civil engineering failures, so perhaps he's just extrapolating from his experience?
bzalasky··on Ask HN: How do you build a healthy code review culture?
Code reviews shouldn't dwell on style issues that can be handled by linting. To the extent that you can automate some of the review process, and prevent sloppy commits from being merged in by having them fail CI, you'll eliminate part of the problem. Another thing that helps is reducing the semantic distance between what a commit message says a commit does, and what it actually does. This is pretty easy to enforce relative to more subjective aspects of coding. The last thing that can make a big difference is not getting hung up on wanting to rewrite a commit as you would have written it, but focusing on improving understanding and clarity for whoever will inherit the code next. If there are serious issues with the architecture and patterns the code is using, CR can be too late in the process to address them effectively (depends on the scale involved). I'd try to collaborate with other engineers earlier in the process to help set them on the right path.
bzalasky··on Ask HN: Is there a good tour of the modern JavaScript landscape
Frontend Masters has a lot of content that you may find helpful... https://frontendmasters.com/

Egghead.io also has some good courses https://egghead.io

bzalasky··on Grace Hopper Academy
For advertising no up front costs, 22.5% of first year salary upon graduation spread over 12 months is a pretty aggressive payment plan. At 100k that's over $1800/month. It could be a good deal for someone that's still increasing their monthly take home though.

It'd be interesting if the payments were structured so that they were made by the hiring company, bringing the developer on with a reduced salary (or not) for the first year... or if they could be taken care of pre-tax. Not sure about the feasibility of those approaches.

bzalasky··on Ask HN: Incentivising maintainable code from freelancers?
Budget time for clean up after you get the deliverables. If you're bringing on the right person, hopefully they won't leave you with pile of messy code. But even if it's mostly clear and organized, giving them paid time to increase the maintainability and DRY it up will pay dividends in the long run. Obviously the trade off here is that it costs more, but that's something you'll have to consider for yourself.
bzalasky··on Ask HN: Do you play Chess?
Bughouse chess might fit the bill in this case. If you're not familiar, there are two boards with four players, with teammates playing opposite colors on each board. A captured piece on one board can be held in reserve by the teammate and played on any subsequent turn on any open square on the other board.
bzalasky··on Ask HN: Best book/resource for SEO?
Moz.com is really solid if you're not already familiar. They have tools to manage campaigns, in addition to content and community.
bzalasky··on Ask HN: Good JavaScript codebases to read?
I'd start with the repos for the libraries/framework(s) you've been using lately. Or for something a little different, take a look at Babel's codebase (https://github.com/babel/babel).
bzalasky··on React Performance
Completely agree. I had to implement something like this when I worked at Stipple in the past, and the biggest problem became optimizing the DOM interactions (adding and removing images from a masonry feed as the user scrolled).

Vanilla JS or React, you can't have 1200 images sitting on a web page all at once without optimizing for what the user is actually looking at and interacting with.

bzalasky··on Free online masterclasses in Erlang programming
Elixir (which leverages the Erlang VM) has been gaining some momentum, so it could be related to that. Alternatively, distributed systems are more abundant than they've ever been, and many of the problems they present have been solved in Erlang.
bzalasky··on Ask HN: How do you translate your app?
I've used WebTranslateIt and i18next.js, and found i18n and l10n to be much easier than I'd anticipated. While I've primarily worked with actual translators, I think WebTranslateIt has some automated translation options as well.

- https://webtranslateit.com

- http://i18next.com/

bzalasky··on Ask HN: Resource for writing text for web applications?
You should read The Elements of Content Strategy by Erin Kissane. It's from A Book Apart. As for shorter display copy, starting with a simple, clean writing style is a great start. From there, validate the assumptions you make with your initial copy. You can use tools like Kissmetrics or Optimizely to test how successful different approaches are.
bzalasky··on Ask HN: Why did you Not hire that candidate?
Understanding 'this' is foundational when it comes to understanding JavaScript, IMO. So, I don't think it's that unusual. Out of curiosity, what's another question that demonstrates a solid understanding of JavaScript as a language?
bzalasky··on Ask HN: Why did you Not hire that candidate?
Something along the lines of this:

  function myFunction() {
    var a, b, func;

    func = function () {
      return {
        attrA: function (attr) {
          a = attr;
          return this;
        },
        
        attrB: function (attr) {
          b = attr;
          return this;
        },

        toString: function () {
          console.log([a, b].join(' '));
          return this;
        }
      }
    }

    return func();
  }
This allows us to call myFunction multiple times, set attributes (imagine it were createPerson instead, with a name, age, etc...) and not run into problems with state being shared.

I like this question because it covers closures, this, objects and functions. It also doesn't qualify as a brain teaser, IMO.

bzalasky··on Ask HN: Why did you Not hire that candidate?
Because the candidate couldn't write a JavaScript function that allows chaining method calls on its result... along the lines of myFunction().setAttr('a').setAnotherAttr('b').toString(). In my experience, candidates either tackle this in 5-10 minutes, get close and finish with some hints in 20-30 minutes, or have no clue.

If it goes well (first scenario), I like to spend the rest of the interview pairing on a task like writing a parse method for a Backbone model that needs to transform a response for a charting library or something like that with Underscore/Lodash.

One time, a candidate started checking emails on his phone during an on-site interview. That candidate wasn't hired.

bzalasky··on Ask HN: How many people pay for Sublime Text 3?
No problem!
bzalasky··on Ask HN: How many people pay for Sublime Text 3?
I've paid for it, but have since switched almost entirely to Emacs(evil mode), Vim and IntelliJ. LightTable intrigued me for a while, but I'd say I'm more interested in the source code (as it's a sizeable ClojureScript application) than using it for active development.
bzalasky··on Ask HN: How many people pay for Sublime Text 3?
You should create a ~/.gitconfig file that specifies an excludes file for all of your git projects that keeps editor generated files/directories out of your repo. (http://365git.tumblr.com/post/519016351/three-ways-of-exclud...)
bzalasky··on elgooG
What's up Justin?! Spotted your name and then figured out it was you from comment history. It'll be interesting to see what happens over time, but I think that with the proliferation of mobile we could see something akin to Okta for consumers that gives them a page of icons to click on... like the apps on their phones. Chrome already does this (kind of), but people tend to be very habitual in the way they browse and I could see it go a bit further.
bzalasky··on elgooG
Maybe my wife typed in in wrong when I told her to try it. Or some enterprising Googler decided to be an MVP and push out a new release.
bzalasky··on elgooG
Unfortunately, com.google doesn't support the "do a barrel roll" command. That kind of attention to detail would have impressed me.
← PreviousPage 2 of 6Next →