Better HN
topnewbestaskshowjobs
Log inSign up

hn_acc_2

168 karma · joined Feb 3, 2020 (6y ago) · 43 submissions

Submissions

comment 1y ago · link · parent

I prefer this to having app.use / router.use scattered anywhere throughout the app init (i.e. Express)

comment 3y ago · link · parent

Success is a lousy teacher. Mr. Musk has been dreaming about his "everything app" i.e. X.com for a very long time. The fact that he thinks the sinking Twitter ship will bring it to fruition is laughable.

comment 3y ago · link · parent

Looks like the top comment was spot on. Were HN users the "Avengers" mentioned in OP?

comment 4y ago · link · parent

There are a limited number of people willing to spend a limited amount of time fuzzing, reviewing, and scrutinizing crypto libraries. The more libraries exist, the more their efforts are divided, and the total scrutiny each library receives decreases. How would this help the problem?

comment 4y ago · link · parent

Actually, among the MAGMA companies I've found the _least_ bias for leetcode-memorization at Amazon.

My interview with Meta was exactly as you described (a CS riddle taken from a textbook, to be solved without running the code or receiving hints). But in my interview with Amazon, each coding interview also included a couple leadership questions. If you want you can look up the exact questions that they'll give you to test what they call their "Leadership Principles"

Also the Amazon coding questions were not taken directly from Leetcode, and were easily reasoned out without prior knowledge of a special algorithm.

comment 4y ago · link · parent

Obviously this is true but CK doesn't sell dollar bills for 90 cents.

comment 4y ago · link · parent

Yes..... and the only way a $444M quarterly revenue company "aren't profitable at all" is if their costs are >$444M / quarter. That's what my comment was getting at. Does GP really think a business like CK costs that much to run?

comment 4y ago · link · parent

Your guess is wrong, their Q2 revenue this year was reported $444M

comment 4y ago · link · parent

Having seen several projects written by people who "happen to know some code," I can tell you there's a good reason this hasn't caught on.

These sort of people can work the very foundations of the company into an ungodly quagmire that would send you screaming back to the fad-chaser dev in a heartbeat.

Also despite the meme, most mid-senior devs are actually keen on making their contributions valuable to the business, having gotten over this phase of fascination with new tools

comment 5y ago · link · parent

The difference will be painfully clear once you try to walk a junior developer through installing and linking new files to a large project in Visual Studio, vs "copy this .h file here and include it".

Whether or not a "good build system" should handle it, the fact that single-file libraries are much preferred these days should demonstrate most people don't have such a build system

comment 5y ago · link · parent

1) Include it wherever it's used. The convention is to use the preprocessor[1] so it only appears once in the final binary

2) Most developers just want to compile to a single binary. Any developer who for some reason needs separately compiled objects should be able to quickly achieve that from a single-file library

[1] https://github.com/phoboslab/qoi/blob/324c2243b2fb35f741a88d...

comment 5y ago · link · parent

There is a stigma amongst "real programmers" against "web developers". So a "real programmer" will never become adept at CSS because it doesn't appeal to their ego

comment 5y ago · link · parent

Sure, high salaries are justified for this minority.

The people mentioned specifically in the comment are of more concern; sales, admin, etc. salaries in this field are also inflated compared to other industries.

comment 5y ago · link · parent

What other packages have you seen abusing import side effects?

Shopify is the first one I've seen, so I don't think it's quite as common as you are implying, but I'm curious to know what other bad behavior you have found

comment 5y ago · link · parent

What "moat" does Bitcoin have protecting it from other crypto which may have more attractive features?

It seems to me that it's just the first one that everyone's grandma has heard the name of.

Some journalists will say BTC is just the "most stable" but the fact that it has the most miners is just a consequence of the high price, not the other way around.

As for the technology, what is actually maintaining BTC dominance in the crypto world other than general first mover sentiment?

comment 5y ago · link · parent

Unfortunately the Python package ecosystem is enough of a headache.

Now we add additional complication "OK, these pip package authors have upstreamed Alpine packages, and these other ones are only on PyPi".

Maybe this approach would work if you can keep your Python dependencies to a small list of well-maintained packages

comment 5y ago · link · parent

If you ask me, installing glibc / compat layers defeats the purpose of using Alpine, especially since Alpine ultimately only saved me ~50 MB on image size versus a similarly configured debian:slim-buster image

comment 5y ago · link · parent

I did settle on Debian, using i.e. python:3.9-slim-buster (though you can just as easily start from debian and install your python version)

comment 5y ago · link · parent

Another "I want to love Alpine but can't" user here.

Their use of musl libc makes it a very poor choice for running python in a container, because it forces a lot of manual rebuilding since the PyPi wheels don't work on Alpine, among other issues [1]

[1] https://pythonspeed.com/articles/alpine-docker-python/

comment 6y ago · link · parent

Thanks, that makes sense. The computer terms helped :)

comment 6y ago · link · parent

> Results showed that attention lapses in the moment prior to remembering impacted on behavioural and neural memory signals and were associated with greater likelihood of forgetting.

Can anyone translate this for me? This sounds like someone throwing a bunch of big words together to me.

I don't have a Nature subscription but this seems like another non-study, 80 adults in a contrived experiment with flashing images then given a "questionnaire" with which conclusions are drawn...

comment 6y ago · link · parent

If the atom bombs had no effect in forcing surrender, why then are they mentioned specifically in the Japanese surrender broadcast (with no mention of Soviet aggression at all)?

https://en.wikipedia.org/wiki/Jewel_Voice_Broadcast

comment 6y ago · link · parent

Not sure about the first part...How is Python's approachable design "so limiting" to all those dimensions?

Nobody writes performance-critical code in pure python.

Not sure how "tooling" is bad, what would you say is limited there?

Package management, again, what package management problems are unique to Python? Many people say this but it seems the problems they bring up are not unique to pip or the python ecosystem, same problems are found with rubygems, npm, Maven, etc...

Maintainability is a responsibility of developers and not a programming language, and unmaintainable code can easily be written with any language. However I'd argue Python should score positive points for maintainability; one of the languages I feel most comfortable picking up old code from someone else and groking it easily.

comment 6y ago · link · parent

It depends on your compiler.

But as a general rule, the programmer will have a hard time "outsmarting" the compiler by using different objects or abstractions.

Compiler authors have spent many hundreds of combined hours making C code run as fast as possible, and optimizing the switch statement is something they've most certainly done to death.

I.e. if your control flow is switch-case-like, use a switch-case.

comment 6y ago · link · parent

This is not a case of gallivanting engineers running free.

All of the moonshot projects are done at the direction of executive leadership in the hopes to open new profit streams.

In fact some of the more technically promising projects (like Servo) had their whole entire team laid off recently to "refocus" on more of these executive-sourced profit grab moonshots

comment 6y ago · link · parent

Just curious, what problems does fail2ban suffer with thousands of unique ips? (A crowded iptables I guess...)

I still use it with a super oppressive jail time and few retries, with a few whitelisted IPs and it seems to work ok.

comment 6y ago · link · parent

That's not fair...

1) Costs were not zero for the re-release. The only version of the game data (stats, items, enemy spawns etc.) was in the form of an original database backup (from an old employee's personal stash!). Classic runs on the modern WOW engine, so work was required to shoehorn the old data in and reimplement systems and interfaces which don't exist in the current WOW engine.

2) Before Classic's release, by far the most vocal crowd making demands of Blizzard were shouting their slogan "NO CHANGES". I really don't find it surprising that Blizzard has not made major changes since the majority of the player base requested as such...

comment 6y ago · link · parent

Just like a two-year old enjoys their newfound power over their parents by screaming in public until they are appeased.

So too do students with authority issues enjoy exerting newfound power over the authorities they oppose by complaining to their risk-averse boss.

comment 6y ago · link · parent

No, the drive motor rpm is not controlled by OS drivers but by the drive controller. You'd have to write custom firmware and flash it onto the drive controller (inside the HDD) to change the rpm
12