HNHacker News
TopNewBestAskShowJobs

greenyouse

258 karma · joined August 21, 2012

ed@edbabcock.com
submissionscomments
greenyouse··on Ask HN: Tools you have made for yourself?
I wanted frontend debugging in prod so I've been halfway through building a source map injection browser extension for a while. The problem is that source map comments don't work well when the same artifact is deployed across prod and multiple staging environments. For each env at work we have different asset paths which need to be generated. Each server already serves up its source maps behind a firewall (for other reasons). The main work of the browser extension is to inject the source map dynamically at runtime when the page is loaded in the browser.

It can do this by taking a mapping of regex asset paths for each server in each env and the url of the source map location. Then it fetches the source maps internally, injects them using a SourceMap header with the chrome devtools network api, and that attaches the source maps in chrome's sources panel.

We used to get hit with production issues during oncall shifts more often. This came out of thinking about ways I could make debugging under pressure a bit easier for myself. If it helps I also automate common debugging steps with chrome snippets to save time.

We haven't been dealing with prod issues that need debugging for most of the last year so I haven't really needed it. It's not super hard to build though. If anyone wants to you should go for it!

greenyouse··on Billionaires Build
Alan Kay had an interesting talk about designing for the future. One part was on building a company to appeal to basic instincts vs creating tools and systems to benefit people.

https://youtu.be/1e8VZlPBx_0?t=2814

There are universal human traits that have negative impacts on people over the long-term but are craved during the short-term. These are like legal drugs. If you can use a few of these traits and tie them to an addictive feedback loop, then you probably have a product that's successful (and totally evil). It's concerning that some of the bestselling books in the startup bubble are about how to create these addictions in people.

It would be nice if there were more tools and systems companies for helping humanity grow. I guess most modern day big companies are like a mix of the two. For every major social network there are usually some awesome engineering tools that get open sourced. It's harder to create a tools only or systems only kind of company but they're definitely nice since they expand the way we all think.

greenyouse··on Billionaires Build
Persons B, C, and D are being paid a rate proportionate to the available labor market for their product building skill set. There was nothing stopping persons B, C, or D from being person A and founding a company for that idea.

If B, C, and D chose to strike for a higher wage then they could but there might be an E, F, and G which could take over for them at their previous rates.

Anybody can make a giant sized, billion dollar company. Those workers chose to work as employees under standard labor terms.

The early Microsoft employees that made lots of money from their stock options probably aren't bitter about their compensation.

greenyouse··on Most Americans Object to Government Tracking Their Activities Through Cellphones
Is there a good way to get around location tracking without losing out on having a phone?

Even a feature phone would have location tracking from your cell service provider which I'm sure they would monetize because they can. Are there more privacy based cell providers that people could switch to? I know it's possible to make your own ISP for home internet but can that be done for cell phones too?

I primarily use a smartphone because my job makes me use one for VPN. If it was possible I wouldn't mind keeping a useless smartphone with no data plan sitting in a drawer at home and going back to a feature phone (especially one with a slide out keyboard :D).

greenyouse··on Pianists for Alternatively Sized Keyboards
If the alternative keyboard sizes get more popular it may become standard to brush up on playing all the sizes.

Professional saxophone players usually specialize in one of the major sax types (like alto, tenor, or baritone) but they know how to play all of them. The key positions for those three are mostly the same but they play completely differently. It's not too hard to learn each one but it takes some practice. With prior experience it doesn't take that long to learn the ins and outs of a new model.

For the different keyboard sizes, that might be something that new students could train on. Professionals already out there might want to practice on them but that stinks to have to get stuck with a random piano size at a gig.

greenyouse··on Ask HN: Are you depressed?
A be less alone chat sounds like an awesome idea! I want to not participate but doing this is probably one of those things that's better in hindsight (like getting out for a walk or cooking something fancy for yourself). Count me in if this ends up happening. My email is in my profile.
greenyouse··on Ask HN: What can replace my iPod for podcast listening?
You could bump up to an iPod mini v2 and optionally swap out the internals for some extra storage space. The stock battery with the latest apple firmware lasts about 18 hours with 450mAh. There are better 1300mAh+ batteries that offer a lot longer time though. Like others have mentioned Rockbox firmware is also available and will increase the battery life too.

The iFixit site has nice repair articles for how to change the internals. An upgraded SDXC memory card with 128GB of space runs about $30. You could also buy a modded mini with this kind of storage off ebay for around $125 but it probably won't have the nicer battery life.

If you really like the nano you could also swap out the nano battery to bring it back to life. It doesn't look like the storage is replaceable though.

greenyouse··on Ask HN: Peer Programming Without a Peer
Can you introspect on what was helpful about having a peer? Are there parts of that process you could replicate without needing a real coworker? You could talk to your engineering manager or team about how helpful it was to use pair programming.

If you've found that sporadically jumping into new work has a negative effect on your overall productivity, are there steps you can take to ignore distractions? Starting with 10 minute meditation sessions might help.[0] Be aware of when random thoughts are taking over and pulling you off task. If your higher-level goal is to focus better it will most likely require an internal change rather than an external force watching you. Although I guess software to block distracting content could help temporarily.

Building up focus and the ability to work in isolation probably takes time. It might help to write your frustrations down in a personal journal to try to identify issues and trends. Maybe the wikihow articles on how to focus would help for some focus strategies?[1]

Getting a friendly desk animal and doing some rubber ducking might help too. :D

Work shouldn't be so adversarial... The way you frame it makes your job sound like it's at odds with your personal development. Maybe your manager would have some ideas? Remote work is weird so lots of people are most likely running into things like this. Engineering people are probably the exception since having isolation for work is usually seen as a good thing.

[0] "The Mind Illuminated" is a good meditation book

[1] https://www.wikihow.com/Focus

greenyouse··on Ask HN: Tool that can check my front-end files for browser coverage
It's probably easier to find tools by searching GitHub instead of SO. It looks like doiuse also comes as a PostCSS plugin so you could have better compile time linter integration with that[0]. There's also a similar plugin for ESLint called eslint-plugin-compat which checks for JS cross browser compatibility[1].

You can also set up automation via WebDriver for cross-browser functional and visual testing if you really want to be sure everything works well. WebDriverIO is good for that[2]. Unless you're going to sink over 1000 hours into the project it's probably not worth it though. It's notoriously tricky to set up correctly if you haven't done it before.

[0] https://github.com/anandthakker/doiuse

[1] https://github.com/amilajack/eslint-plugin-compat

[2] https://webdriver.io/

greenyouse··on Ask HN: What are your favorite developer-efficiency tips?
This is a cool ask HN. Here are some things I do for frontend programming.

Things I like to use:

- org-mode for structured note taking (debug sessions, wip tasks, architecture, rubber ducking, other team details, scratch buffer is like a giant clipboard manager, used to use notes for tracking time on tasks and starting + ending the day too but now only do if there's a crunch)

- isolated testing envs where I can test apps

- automated e2e tests via Sauce Labs + WebDriver with emails for catching regressions

- adding APM tools like email alerts when prod goes funky

- quokka + wallaby.js + personal development setup for interactive programming (yes proprietary but super helpful)

- personal scripts for automating work (little stuff like: run triage steps while debugging, control tools that have bad UIs, add git hooks so I don't do as much dumb stuff, etc.)

- using code formatting like prettier, stylelint, eslint (other teams contribute code to us so breaking their work locally saves us time in the PR later)

- pay attention to where you get stuck, optimize

- pay attention to what you burn large amounts of time on, optimize

- lots of little debugging things like look for adjacent problems after finding a new issue (9 debugging rules book is a good starter)

- thinking about Rich Hickey talks (lol)

- get unstructured time everyday to just hang out with other developers on your team and talk about issues or new tools to try out (favorite part of my work). Other people are really smart and come up with good ideas!

Things I want to get:

- source maps for all frontend scripts pulled in only for my browser, works for all envs at work

- full source code search across the company at work (large group, thousands of projects)

- automated a11y and performance tests to catch regressions early

- automating small code changes across hundreds of projects

- somehow get rid of webpack's complexity (pipe dream, yeah right)

Edit: list formatting whitespace

greenyouse··on Ask HN: Recommendations to revive an old MacBook (2009)
This is fun! I use a 2007 macbook for travel since it's cheap enough to be a disposable laptop. It was my primary laptop up until last year.

The setup seems to work best if you treat it as a dumb terminal. Any compute heavy tasks will basically not work so you should network into a desktop or server to get things done.

On LAN you can use X window forwarding over SSH without problems. This works for most applications.

Over WAN you can set a raspberry pi with wake on lan and use that as a jump box. If you port forward your router to the pi, you'll be able to hit the pi off network. Then tunnel your ssh connection through the pi to the main workstation. Lots of options exist for working remotely, emacs tramp + sshfs is my go to.

Not sure if you have the 2009 Core 2 Duo macbook but getting most linux distros installed is quite a pain. It has a complicated firmware setup. No modern linux distro that I've tried supports it out of the box so you have to manually perform some of the install setup by using grub-efi-ia32 and blessing the boot partition. Debian or Lubuntu work well if you get over the install hurdle. OpenBSD is the only OS that works out of the box on this model.

For hardware getting a SSD and new battery are good ways to improve performance. The DVD drive can usually be swapped out for more storage or something if you want.

greenyouse··on Ask HN: What are you learning?
I started hacking on a browser extension to inject source-maps into requests using HTTP headers this week. It's a dev tools extension which should allow full source-maps to be used in production sites without the usual comment at the end of the file. I've never done dev tools browser extensions before so it's fun to learn about.
greenyouse··on Ask HN: People working remotely, how do you plan your workday?
We have a weekly on-call position on our team where that person tries to shield everyone else from non-sprint distractions. They would usually be on point for handling requests from other teams, production issues, release problems, helping stuck people, etc. It's generally a nice way to balance the workload across the team and make sure knowledge is spread evenly.

For a team without that, I would either context switch each time a problem comes up (which could be hard if you're pinged a lot) or make a more formal intake process. I've gotten pretty used to context switching so my general flow is to keep a list of the problems I'm working on and break each down into small sub-tasks with check marks for progress. It's sort of like caching your current work and thoughts on the problem but that is still not as good as just working through the issue uninterrupted. I don't think the tool for note taking matters, it could be a journal, org-mode, plain text, outlook, trello, or whatever you're comfortable with.

Some teams which I've worked with have built out intake systems to keep random fire drills under control. The system they have is to keep a triage channel open in slack and a triage board in Jira. If you have a small question or need a bit of help, it's usually fine to ping the on-call for their team in the slack channel. If their on-call is swamped or the issue is bigger, they'll usually request that you file an intake ticket with Jira. This probably seems like overkill (especially if the company is a small startup) but if you're spending a significant amount of time helping people and solving production problems, this should be tracked so people can see the extra work you're putting in. It's important that people don't burn out or become the sole person who know how everything works. Newer management may not understand why you're struggling unless you give them tools to see your actual workload.

greenyouse··on How Google Code Search Worked (2012)
Weird, I was just looking into google code search this weekend so I could use something like it on my work computer. It's a little surprising that big co git storage companies don't have a proper code search tool as part of their package. I use Bitbucket right now but the search is built over Elasticsearch and special characters aren't handled so regular expressions won't work.

A couple open source projects that I've seen are Hound and Zoekt. Hound actually uses this code search backend with a nice frontend in React. Zoekt is what I was going to use since it scales really well, is faster, and has good search operators for filtering by repo name, language, etc. Google was using Zoekt until recently for code search across all their open source repos.[0]

[0]https://cs.chromium.org/

greenyouse··on Today’s Top Tech Skills
I'd be interested in other resources for this too. The best I can think of is Udacity's Web Performance Optimization class[0]. It's by Ilya Grigorik, chair of the W3C Web Performance working group.

Other than that there are some older docs for the Blink engine which drives Chromium. It's much more low level and hard to follow though[1][2].

The Navigation Timing spec is good for building an understanding of the major events that go into a page loading and creating HTML elements[3]. It's not the whole picture but gives the timings for navigation and DOM element events.

[0] https://www.udacity.com/course/website-performance-optimizat...

[1] https://www.chromium.org/developers/the-rendering-critical-p...

[2] https://docs.google.com/document/d/1wYNK2q_8vQuhVSWyUHZMVPGE...

[3] https://www.w3.org/TR/navigation-timing/#processing-model

greenyouse··on Ask HN: Does being practical act as a hinderance to one’s imagination?
Nobody's stupid because they're not sure about something. It's totally cool to ask for help or opinions when you're thinking through a hard problem.

To answer your question you should understand what creativity and practicality mean in your context. I would generally think that being practical and creative aren't at odds with each other.

When working through a problem for work I tend to err on the side of practicality. We could be coming up with a new way to do data transformations, building out distributed tracing tools, or trying a new way of scaffolding our projects. Each of those solve a real problem and have practical implications. They also require creative thinking to imagine and design new tools and workflows.

These projects are practical in the sense that they need to solve an actual problem (e.g. deliver a net benefit to customer UX or development velocity). Contrary to how they sound, they often aren't obvious projects to take on or straight-forward solutions. It usually required days or weeks of lateral thinking to cook up one of these. In this context, creative thinking complimented practical thinking and produced a better result than one of those modes taken in isolation.

Sometimes it's helpful to circle around the problem you think you want to solve to better understand what your actual problem is.

Be careful reading other's ideas since it will affect the way in which you see the problem. Your view of the problem may be skewed after reading other information. OTOH, it's common that you can piggyback on existing ideas (see taco bell/duct tape programming).

There are lots of good resources on this subject: John Cleese talk linked elsewhere - https://www.youtube.com/watch?v=y70nbDJI5Uk

Rich Hickey Hammock Driven Development is a more direct application to software development.- https://www.youtube.com/watch?v=f84n5oFoZBc

Another good Alan Kay talk from YC - https://www.youtube.com/watch?v=id1WShzzMCQ

A Mind for Numbers

How to Solve It

Psychology of Intelligence Analysis is interesting too but less applicable (eschewing the Einstellung effect) - https://www.cia.gov/library/center-for-the-study-of-intellig...

greenyouse··on Games with Famous Bad Translations into Japanese
Does anyone know the history behind the Pokemon green translation (or maybe pocket monster green). I remember that there were some roms with pretty funny translations. Was that the unofficial English port before Pokemon Blue was released?
greenyouse··on Parkinson's Law: Work expands to fill available time
Why doesn't manager A, who is manager of official A, keep track of the work that official A does? That person could deny the unnecessary budget for more underlings and hold official A to be accountable for their work.

I don't think these can really be called statistical proofs either. There are some proof like axioms but it's being applied to social orders where there's nothing very logical happening.

The original paper was published in 1955. Now that we have issue tracking software which management can easily use to determine the efficiency of each worker, isn't this type of bureaucratic bloat a bit harder?

greenyouse··on Hailing a Driverless Ride in a Waymo
If using driverless cars for rideshare companies becomes more popular will they start designing cars for computer control only? Has that already been started?

It seems like they would have no use for human steering controls and they seats could be moved around to open up more space for passengers.

greenyouse··on Ask HN: How to deal with seasonal affective disorder?
I'm not sure if life hacks and self-psych will make any major impacts on SAD. If you feel down it never hurts to get a mental health consult. I'm from Minnesota so here's more or less how I would deal with winter, ymmv. This list is kind of light-hearted so I hope I'm not offending. Winter is my favorite season so maybe this won't connect very well.

Read lots of books and watch shows to stay away from the gray outside.

Stay in office environments during the day to benefit from florescent lighting.

Take up outdoors activities like skiing, broomball, or hockey (I think it develops a positive association with the winter weather). Otherwise curling is indoor so maybe that would help distract from the weather. Adding friends and beer to all of these events makes them more fun of course.

Feel free to eat heavier foods like cheese curds and pasta. They make you feel good and nobody can tell that you gained 10lbs because you have heavy winter clothes anyway.

Take comfort in talking to strangers and coworkers about how bad the weather is.

Look at the ground during the winter so you don't see the ugly, gray skies. The cold windchill usually forces this anyway.

greenyouse··on Ask HN: What do you self-host?
I'm just starting out with building a virtual workstation system for myself with Eclipse Che. My home desktop has always been much more powerful than my laptop so I've always thought it would be ideal to have mainframe style development. I learned about Che 7 this week and figured that it was worth a shot. Using containers for everything sounds like an interesting idea to try out too!

Surprisingly (at least to me), there are some really big companies like Microsoft, IBM/RedHat, and others pushing this workflow. The editor is supposed to basically be VSCode in browser and compatible with most extensions.

I'm using my RPi as a jump box and have some commands to turn on my home desktop + mount the file system and that kind of stuff when connecting. I've used it in the past and it's worked nicely.

I got k8s running but got blocked by some bugs when installing Che. Looks neat though. It would be cool to have a 2007 macbook with the computing power of a 2990WX workstation :).

greenyouse··on Dealing with anxiety, absent-mindedness, ineffectiveness as a developer
I don't have much advice for emotional issues but you could try taking stock of how the day went. What was good and what wasn't?

If you have trouble remembering you could keep notes about what you're doing while you work so you can review things later.

If you identify misses on your part, you could start digging into what didn't work, why, and what you could do in the future[0]. Like a mini retro for yourself. Hopefully you'll be able to catch when you're slipping on something and implement a strategy that helps you improve. Are there software tools you could build for yourself to give yourself guard rails or automate error prone tasks? Could you have applied your focus elsewhere to get different results? Do you have knowledge gaps anywhere?

This works for things that are going well too. Are there ways you can increase your velocity or bring helpful stuff to your team?

Keeping notes on tasks and issues talked about during meetings is really helpful too. It's easy to forget details if you get context switched out of things or lots of time passes. Pay attention to what business is doing and other teams are up to too. Sometimes you can see patterns and suggest things that help the larger org in nice ways.

Don't freak out - you got this!

[0] sort of like this but probably less extreme - http://edweissman.com/Wiki0205.html

greenyouse··on Ask HN: Where do you find new music to listen to online?
Aside from community radio stations and major sites like Spotify, you could try looking through slices of the record industry yourself. There's a big list of record labels on Wikipedia that you could read through[0]. They've also sorted by genre if you want to try a more targeted search[1]. Most decent labels will have a big list of signed artists and events going on.

It's been fun getting to know some of the record labels and listening through full albums. If you type in an artist name in YouTube they usually have most of the albums to sample. I've found lots of good artists this way :D

[0]https://en.wikipedia.org/wiki/List_of_record_labels

[1]https://en.wikipedia.org/wiki/Category:Record_labels_by_genr...

greenyouse··on Tech Interview Handbook
I've been through a few different types of interviews and the random algorithm style seems off to me. I recognize that there are companies like FAANGs that want a deep bench and will have expert algorithm people on-call for that one time when it's needed. Most companies should be OK to just present real problems either solved or being worked on which they would expect applicants to be able to solve.

This is more true for startups that need less know "how to reverse a binary string" and more "how to properly design a database with 3rd order normalization", etc. If you're presenting an interview question, it should have actual job relevance and your co-workers should be able to solve it in the same time as the candidate. If you're drilling people on non-job qualities (e.g. invert a binary tree for a web dev role...) then you should expect a large difference between audience that can pass your bad interview tests and audience which will perform well at actual job.

Not trying to complain. I think job interviews should focus more on the 99% of what you do in your job on a Tuesday. Poor interviews seem to be more gotchas and algorithm tricks to disqualify roles which have little actual use for algos + data structures. The tests might seem too easy but as a front-end engineer I would rather be with a coworker which understands the CSS box model, knows semantic markup for accessibility, and similar web things than a person which is good at creating hash tables and doubly-linked lists in JS. Leet code probably doesn't test vertical centering techniques with CSS but if you're applying for a web dev position you better know them.

greenyouse··on Ask HN: I don’t have a company, how can I be paid on the internet?
Sounds like you pretty much have it. Set up a Stripe/Shopify/PayPal/etc. account for free and hack shit. There are no rules. Or there are some rules - the most important one being that you solve user's problems. If 3.5% vs 2.5% is a problem for you early on, you probably have other problems...
greenyouse··on Ask HN: Should I exhibit my rough early-stage product?
If you're still early stage and looking for feedback you should look for feedback from actual users. Taking feedback from non-users may skew your feedback away from what actual users would provide. The audience which pays for a product and provides feedback will be different from the feedback you would receive from people watching a conference demo.

There is some hype provided by a conference demo and you may get feedback from designers + programmers. This type of feedback will be different from normal users and at an early stage the benefit may be low if your saas product provides a substantial benefit to users.

If you've already put down some money though, it may be worth seeing what other technical people think. At least you should know that this will likely be more nit-picky than the general utility type feedback non-technical people would give. It will probably help with UX + programming but less with the value prop of your product.

If it's a technical product - think about what would make the conference audience recommend your product to other potential users.

greenyouse··on Why Didn't Plan 9 Succeed?
This. Do you currently use Plan 9 for your operating system at home?

By not making the operating system abstractions similar to other existing operating systems all popular applications had to be rewritten for Plan 9. There was a network effect of existing apps that worked well enough and developers were already familiar with the existing systems which made it hard for users to switch over.Plan 9 was a better operating system technically but it didn't have the utility that existing operating systems already provided to users.

Non-computer people would also probably just use whatever OS the computer they bought had. Using something outside of MacOS or Windows was not normal for a non-technical person in the mid 90s.

greenyouse··on Earbuds are bad for your hearing
Beyond the inefficient audio design of the headphones it feels like there should also be a better audio feedback so users are aware of how loud the sound is. Why can't the device read you back the volume level in words when you change the volume so you have an objective measure of how loud the volume is? The computer could say a number 1-10 based on the sound level. It makes sense that older devices wouldn't have this feature but a modern computer or phone should be able to do this without a custom app.

On linux you could hack something together to speak the alsa volume level like amixer set Master 2+ && amixer get Master | grep dB | awk '{print $4}' | espeak -s 300

Do other people use something similar?

greenyouse··on Types and Tests
I don't quite agree... I feel like, theoretically, yes we should feed bad data to all the functions and use property-based tests to ensure the features hold. However, in the real-world if you're using a language like Clojure for day to day development your team is probably skilled enough to write basic functions without meticulously checking every little thing for errors. There has to be a trade off between 99.9999% confidence of your functions and fast development velocity. For most products the application code matters a lot more than tests.

There should still be strong checks on the external interfaces to your system with bad data tests, schemas, property based testing, etc. For a normal function inside your system it's mostly overkill to be testing those things. Integration tests should validate that your functions call each other correctly and some acceptance tests could generate data from one interface and check that it flows through the system well. There could be corrupted types that you use for testing with Clojure's spec library that either return the expected type or a random corrupted type. Those combinations should adequately exercise the functions to find most of the errors.

greenyouse··on Ask HN: How to come up with sideproject ideas?
http://www.paulgraham.com/startupideas.html
← PreviousPage 2 of 5Next →