172 karma · joined Mar 17, 2018 (8y ago) · 42 submissions
comment 8y ago · link · parent
Lodash also differs from the standard lib's implementation, notably it's too permissive. Take this example:
const uhoh = null
_.forEach(uhoh, () => {})
uhoh.forEach(() => {})
lodash's forEach has no problem running on a falsey value (it gives you back the value) whereas standard lib leads you to a TypeError.
Two thoughts here. The standard lib forces the programmer to think more about types, which is a good thing. Second is that lodash's more loosey goosey approach acts as vendor lock-in. In two years, when there's 60 lines and 3 files of separation btwn uhoh's assignment and the _.forEach invocation, you won't know whether it's expected to be null or not. So you won't know if you should replace the code with
uhoh.forEach(...)
or
(uhoh || []).forEach(...)
comment 8y ago · link · parent
There's probably a handful of functions in lodash that are still useful but why take on the security risk and maintenance of another package dependency if you can just copy a couple ten-liners into your own utils folder? It's not like the world is going to come up with a more performant debounce anytime soon.
I guess lodash also relies on jquery which is in the same boat. es6+ has stolen a lot of its thunder and target-aware transpilation is a better approach to cross browser support
comment 8y ago · link · parent
Some things I visited to blow time like imgur have infinite scroll in their apps but are paginated on their mobile site, so I just visit the mobile site and stop after one page. I had disabled infinite scroll in RES at first but eventually left Reddit altogether.
I no longer browse app stores, Netflix, hulu, etc. I already know what I want to watch and search for it directly.
comment 8y ago · link · parent
comment 8y ago · link · parent
I was bored at first but then I started filling my time with more productive hobbies, which was the point. Infinite content providers are designed to steal all your time.
It's crazy how little I use the internet now. I never realized what it had become until I put some restrictions in place that ended up blocking out like 90% of the web.
comment 8y ago · link · parent
If it's one thing entitled early adopters and east bay commuters have in common, it's that they DGAF about the sense of community in SF. So they park these things in the most selfish ways possible. I swear some of them have to be doing it on purpose. I've seen them blocking turn styles at embarcadero station before.
I had a friend visiting from out of state and usually the first criticism of SF I hear is something about homelessness as we pass through the 'loin. But this time we were by embarcadero and it was "did a scooter gang of children all get raptured at once?"
comment 8y ago · link · parent
People also take a wide berth around the scooters so they congest sidewalks even if leaned to one side.
If they come back I hope they do it by replacing the stupid bike docking stations with scooter docking stations. Scooters are a better fit for that model. Pay homeless ppl to return them to the docks and solve two SF problems at once
comment 8y ago · link · parent
Then you just develop the app as any other demo-with-upsell app. Users even continue to get bug fixes and other updates after they let the license lapse.
In cases where features are removed, combined, refactored, you'll have to be judicious about what timestamp you apply to the refactor. I would resolve in the customer's favor personally.
Edit: Thinking on this more you might also want a rule like feature flags are only implemented at the view layer. That way your biz logic never gets tripped up on flag checks as features cross paths under the sheets. So its does require a fair amount of code discipline to pull this off
11.
Ask HN: Good software for evergreen list making?
1 points · by heckanoobs · 8y ago · 1 comment
comment 8y ago · link · parent
Anyway, my advice is write down your own thoughts and discoveries. You'd be surprised how much content there is when you start collecting it all in one place and it will help you be more critical of your inner workings
comment 8y ago · link · parent
I don't know of a word that captures what feels like an arbitrage-ish assault on our law books. Without knowing that word I can only suggest something too generalized like organized crime economy
comment 8y ago · link · parent
comment 8y ago · link · parent
Now you provide advice when I didn't ask you for any. I don't know you. You don't know me and you certainly don't know what will "serve me better" as readily as I don't know that Microsoft will fix all my problems.
If you've found stability in your world view then good for you, it takes all kinds. Skeptics and optimists and more. Spend less time putting others down and more time melting in the pot.
comment 8y ago · link · parent
I think you're mistaking your blind hate for my blind hype
comment 8y ago · link · parent
Windows laptops that run Linux well enough for development. VS Code. I now develop on my PC at home using the same workflows that I use on my fancy pants work MacBook.
I have a lot of faith in this acquisition. My software team is growing fast and we have so many little problems that feel like they should be solved at the GitHub layer but the solutions aren't there. Microsoft will fix that.
comment 8y ago · link · parent
Looks like it's gonna be a nerdy Saturday night binge watching these. Too bad there isn't a Netflix for this kind of stuff
comment 8y ago · link · parent
This is an issue I see with effective altruism and other (new atheism, veganism) hyper-rational movements. It's not enough to establish a viable alternative; they also have to exterminate every other line of thinking, in the pursuit of the almighty rationalization.
There's a lot of charities out there and I think it's enough if EA creates a marketing channel for some of them to have a unique advantage. "No one paid attention to us until we showed we save the most lives per dollar". If everyone agreed donating was entirely about maximizing lives/dollar then maybe this truly is the most important stat. But people donate for scads of less-than-rational but still well-meaning reasons.
It works against EA's (new atheism's, veganism's) best interests to draw a line in the sand and alienate everyone else. To me this feels as rational a conclusion as you can get, which makes it funny to me that the people particularly taken up by hyper-rationalism behave the way they do.
comment 8y ago · link · parent
I've since quit Reddit but comments here have convinced me to take a second look. I think this time around I will put even more filters in place, like no subreddits with over 10k subs, and some way to hide everyone's karma count including my own.
I guess what I'm trying to say is maybe you and I don't need a pay wall to filter, we just need an opinionated browser plugin (or easy way to share settings in RES)
comment 8y ago · link · parent
comment 8y ago · link · parent
Slack was a side project by a failing game company. Its growth was largely organic.
I think the original premise is right that user experience is more important than ethics or philosophy or whatever the heck it is we're talking about when federations come up
comment 8y ago · link · parent
The bathrooms are expensive because they need technology that prevents ppl from hanging out in them, so they automatically lock down and power wash the inside after every use.
The sidewalk cleaning is also expensive, it costs the city millions per year to power wash the civic center sidewalks every morning. And that's just a fraction of the area.
These expensive things don't make the city better they just improve the quality of life for the homeless population, which can now boom until the quality is right back where it started. Would you then add even more bathrooms and street cleaners in response or realize that cleaning the mess isn't going to solve this problem?
comment 8y ago · link · parent
I'm just looking for the candidate's thought process and some pseudocode. I could do the same thing in an empty text file but the substance of the interview wouldn't change.
My feeling right now is that being anti whiteboard is focusing on trivialities like complaining that the office style guide uses Allman vs K&R bracketing or something. But I'm open to having my mind changed if there's something more to it.
comment 8y ago · link · parent
You could try living in the present more. Alan Watts' The Book is a good way to explore that perspective shift, if you enjoy reading philosophy.
If not, try questioning your assumptions and getting out of your comfort zone a bit. The prison exists because we forget that we made the walls and the bars.
comment 8y ago · link · parent
Another theory is a lower budget production produces a similar movie to kind of 'draft' the marketing success of the main movie. These are called mockbusters