Better HN
topnewbestaskshowjobs
Log inSign up

sickcodebruh

1,339 karma · joined Aug 17, 2017 (9y ago) · 270 submissions

NYC technology generalist and musician.
Submissions

comment 7y ago · link · parent

My feelings about PHP are stuck in what I remember from 2004. If I’m starting a new backend web project in 2019, should I be considering PHP over Ruby, Python, or TypeScript? Why or why not? I’m curious to hear from anyone who’s used it professionally in the last couple years.

comment 7y ago · link · parent

I just deployed ActionCable into production yesterday. I’ll be using it to share some information between our users’ mobile app and our web client.

I’m concerned about performance. As much as I know that premature optimization is the Devil, it’s hard to stomach deploying something that is so notorious for becoming a bottleneck. Once I get past my MVP of this feature and have some maintenance hours budgeted, I plan on exploring AnyCable.

comment 7y ago · link · parent

I’m still on v3 for that reason. On the surface, the immediate value proposition of v4 makes sense: use actual React Components instead of things that look like components but are not. In practice, it introduced so many breaking changes that, to me, it’s always felt like a solution to a problem that didn’t really exist.

comment 7y ago · link · parent

I'm not sure if mine is a good way of doing it but it's working for me. I took the relevant portion of my own badly written shell script, moved it into its own Dockerfile that has its own CI project and its own private repo on Quay, and I rebuild/republish as needed. The remainder of my original shell script went into the Dockerfile for the project that holds my code. The first line of this Dockerfile just starts with my base image.

    FROM quay.io/my-acct/my-image:latest

comment 7y ago · link · parent

As others are saying, Docker is a tool for repeatable environments.

I have an application with a long, tedious setup process involving dozens of apt dependencies that I don’t maintain. In the past, I’ve had issues with things not updating properly, inconsistencies between versions, spontaneous breakages... Using Docker, I built an image that contains all the dependencies that are unrelated to my code or configuration, then another image relies on this and contains all of my stuff. My deployment process only needs to be concerned with updating this second image and all of the frightening dependencies are guaranteed to be consistent and reliable. This second image is deployed to each box. All of the production systems are identical and if I need a new production box, I can have it ready to go in minutes and be confident that it will work and behave reliably.

comment 7y ago · link · parent

I record and mix metal bands and have stuck with 48 kHz for years like many of the engineers I know. 96 kHz sounded better to my ears last time I checked in the studio (it's been years, maybe I wouldn't notice now that I'm older) but it's not worth the heavier storage and processing impact when nobody is actually going to use my stuff that way. I certainly don't feel limited by working at 48 kHz, either, but the hit to my workflow would be significant. Additionally, a lot of converters start imposing track limits when you go beyond 48 kHz, so that's one more reason to stay put.

More important than sample rate is AD/DA quality. I'll trust a new high-end converter at 48 kHz than an old prosumer device at 192 kHz.

Plenty of the albums we love as listeners were recorded at 44.1 or 48. Plenty were recorded with absolutely horrendous equipment but played and mixed by professionals who created magic. MANY modern vinyl releases where people brag about superior sound quality are just the CD master in all its 16/44.1 glory remastered for vinyl. Little of it matters when the end result is special.

comment 7y ago · link · parent

This is great advice and I really appreciate it.

I work on a piece of fitness equipment. At the moment, our entire UI is built with TypeScript + React and it's been great: predictable, flexible, easy, and sooo fast to build and deploy. When we were still figuring out how to define our core product, this was crucial (especially the development speed) because I was working as a solo developer, responsible for quite a few environments, apps, aspects of the product, etc,... Now that things are more well-defined and we have actual customers, I'm thinking less about how many deploys I can do in a week and more about performance, stability, and the experience of using the product. As long as we're stuck in the browser, I worry about some of the compromises we'll have to make in all of those areas. We already have some C++ in the stack, so it wouldn't be _completely_ alien, though I'm sure it would still be _mostly_ alien.

All that said, this is still a long way off. I can still go a long way with what we've got and I have far too many concerns that matter more to the product than this. I'm really just starting to think through options so I'm well-informed when the day comes that this does matter enough to actually start planning a change.

Again, I really appreciate the advice!

comment 7y ago · link · parent

Perfect, thank you. More and more, Qt sounds like the right fit for the product I work on.

comment 7y ago · link · parent

Thank you! That’s helpful. Since you’re comparing it to JS/CSS/HTML, does this mean you moved from that to Qt? If so, do you think it was a worthwhile move?

When you say many of _their_ customers, who is they? Qt or the people responsible for QML?

comment 7y ago · link · parent

I know nothing about Qt beyond the most basic description but I’m interested in exploring it as an alternative to Electron. I see lots of debate in the comments here but limited context to help me understand what is being debated. Is this book for me? What background should I, a total beginner, be aware of before I dive in?

comment 7y ago · link · parent

Please do!

comment 7y ago · link · parent

I think it's best to just call it what it is: nazi black metal or racist black metal. Anything else dresses it up. Even fully spelled out, "National Socialist Black Metal" has always struck me as far too sophisticated a label when you consider the content and the people making it. Most of them aren't threatening soldiers writing political treatises, they're sad kids LARPing as Nazis.

comment 7y ago · link · parent

It’s a tough question for sure and I don’t think there’s a clear answer. We can start by refusing to support the worst of it, calling out the friends and artists who do, and making it seem less normal and acceptable than it really is. Black metal has become such a safe space for it. Even the term “NSBM” helps whitewash it!

Edit: I'm not trying to insult or shame you for using "NSBM." Everyone says it, it's totally normal at this point, and that's the problem.

comment 7y ago · link · parent

I encounter and consider this when creating ads for my black metal band. Avoiding supporters of nazi metal is such a common concern that I didn't even think of it as odd, just business as usual. I actually appreciate that I'm able to explicitly exclude audiences, as it limits the likelihood that I'll deal with a deluge of hate mail.

Incidentally, Facebook seems to have already reacted to this article by removing "national socialist black metal" from its interest targeting options.

comment 7y ago · link · parent

TO BATTLE!

Reducing it to "pro type-safety vs pro-flexibility" doesn't tell the whole story. For me, it's "pro-consistency vs pro-inconsistency" or "pro-tooling-that-makes-sure-I-don't-screw-up-something-trivial vs pro-keeping-absolutely-everything-in-my-head-at-all-times." Of course, that's _also_ pretty superficial and unfair -- plenty of amazing work has and will be done without type safety -- but as a bonafide Kool-Aid-drinking TypeScript Cultist, I feel obligated to share that because it's made my life better.

comment 7y ago · link · parent

Re: usability of the Start Menu...

When I used to do tech support, from Win 98 all the way through Win 7 days, I would consistently find that reasonably intelligent human adults had difficulty understanding the Start Menu. If something wasn’t on the first menu, they weren’t going to interact with it. It seemed like such a no-brainer to me — just expand the folders! — but a staggering number of people found it alien and never adapted. Even the idea of a right-click VS left is too much for many people.

comment 7y ago · link · parent

Experimenting is the key word there. From the caveats section of their readme: "This is not an officially supported Google product." It's promising if they decide to officially support but it's dubious until then.

comment 7y ago · link · parent

What is everyone's take on the future of Flutter for Desktop? It's exciting to think that it could be a viable alternative to Electron or Qt but the fact that this is enabled entirely by third-party projects concerns me. Is Flutter for Desktop something that has a future? Will apps built with these tools be maintainable a year from now? At what point would you say it's safe to invest time building and deploying projects built with it?

comment 7y ago · link · parent

There’s a similar effect mostly experienced by women: they want to eat babies. Not really — there’s no danger — but the idea pops into the head. My wife had our daughter seven weeks ago and noticed it, we’ve had friends say things from the common, “I want to eat you up” to an outright faux aggressive “I WANT TO EAT HER” from one of her friends. Some articles claim it has something to do with the way they smell. https://www.csmonitor.com/Science/2013/0923/Why-do-people-wa...

comment 7y ago · link · parent

As someone with absolutely no knowledge of the topic, I found that course to be very digestible and pleasant.

comment 7y ago · link · parent

This is my first time seeing it but so much of it looks great. I don’t think I’m a fan with how it handles dependencies, though. It feels like they’ve just reinvented GOPATH.

“Deno caches remote imports in a special directory specified by the $DENO_DIR environmental variable. It default to $HOME/.deno if $DENO_DIR is not specified.

...

Production software should always bundle its dependencies. In Deno this is done by checking the $DENO_DIR into your source control system, and specifying that path as the $DENO_DIR environmental variable at runtime.“

https://github.com/denoland/deno/blob/master/Docs.md

The suggestion to import and reexport dependencies in a central `package.ts` file sounds absurd to me.

Clearly, I’m not a user and am just now reading this for the first time. Has there been discussion about this in the community? Are there plans to correct it? Go has been digging out of this hole for years, I can’t imagine why they’d start in the same place.

comment 7y ago · link · parent

Thank you! This is great. For all of Go’s warts, it lived up to every single hope and expectation I had for it in this last project. I’m looking forward to improving it with these suggestions.

comment 7y ago · link · parent

Go’s lax attitude about shadowing jumped right out at me, too. Coming to Go recently from TypeScript, where the combination of the compiler and tslint will aggressively bark at me, was jarring.

Coukd you point me towards any crash courses on using the Go linters you mentioned to increase safety of my code? I’ll look them up, too, but if you have any resources handy or think there’s work for me beyond RTFM, I’d appreciate it.

comment 8y ago · link · parent

I (and I'd assume many others) received this email from Mixpanel this morning at 7AM. I posted it to pastebin because the length prevented me from posting direct to HN. Their JS client wasn't updated until about 45 minutes ago, 5 hours after they issued the warning and told users to update.

265.

Mixpanel Notification – SDK Update – Action Required(pastebin.com ↗)

5 points · by sickcodebruh · 8y ago · 1 comment

comment 8y ago · link · parent

One of the reasons I love Hacker News is because of the high quality of content and discussion. Looking like HN is nice but the fact that your top post includes a nice little "(((bankers)))" remark from /u/BigNuts881 was a rough reminder that this isn't to be a much better than just looking through the results of a broad Twitter search.

comment 9y ago · link · parent

Regardless of what you might think about Yammer's UI, a repo full of tested React components written in TypeScript is very valuable as a reference.
1
56789