Better HN
topnewbestaskshowjobs
Log inSign up

shortrounddev2

2,427 karma · joined Jun 15, 2023 (3y ago) · 1,641 submissions

Submissions

comment 1y ago · link · parent

You pay $100 a month but the fine print is you have to show up everyday and work out!

comment 1y ago · link · parent

I don't think France should be the standard for acceptable Pizza toppings. What do the French know about Pizza?

comment 1y ago · link · parent

I think that the answer to #2 is you HAVE to aggressively kick out (aggressive) homeless people if you want a welcoming environment.

comment 1y ago · link · parent

I think most people (especially software engineers) who fantasize about leaving their office jobs and running a small retail or restaurant business are not upset with having to write code all day - they're upset with the people they work with/for and fantasize about independence, even if that means a more difficult day to day job. Or, they're unhappy with the sterile environment they work in and are disillusioned with the abstract nature of B2B products (what am I selling? Whose life am I improving by selling it?) and want to work with something whose value is more easily demonstrated.

I think that when someone tells you they fantasize about starting a small local retail business, that we shouldn't just shit on their naivite; we should listen to what they're really trying to say and help them find something that checks the boxes for them:

1. Something in the real world, preferably with physical products/services on physical products

2. Something with a larger degree of independence

3. Something whose value to the customer is obvious

4. Something which improves the world or their community in some way, and is not just extracting value from others.

Personally, I love writing software, but I hate Software companies

comment 1y ago · link · parent

Personally I would prefer a laptop which optimizes for heat and noise over one which optimizes for thinness as a measure of success

comment 1y ago · link · parent

I haven't used a MacBook in years but when I did, their power management was actually the worst thing about them - this was before they moved to ARM, so I assume it has improved, but it was common for a MacBook pro to turn into a screaming hot chunk of aluminum which would burn your legs on contact and misrepresent the actual battery life available to it.

comment 1y ago · link · parent

Im not saying that you should pay below market rates, im just saying that the equity calculation is just about supply and demand. It has nothing to do with fairness

comment 1y ago · link · parent

People are paid salary and awarded equity based on supply/demand for labor, the marginal product of that labor, and the amount of risk engineers are willing to accept by joining a startup. It's an economic transaction, the same as buying office equipment and signing contracts for cloud resources. Trying to imbue mysticism into it is just asking to be lied to by your employees

comment 1y ago · link · parent

Everyone deserves healthcare, a place to live, food to eat. Some people deserve to live happy lives and some people deserve to rot in prison. These are about your personal conduct and how much you contribute to society.

How much equity or salary you get in a company is a function of supply/demand and the marginal product of your labor. I would say there are probably fewer CEOs who can take a company from startup to unicorn status than there are really good founding engineers out there, so CEOs tend to get more equity in a company. Sometimes the founding engineer knows something that nobody else in the world does, so their equity reflects that. It's also a reflection of how much risk the engineer is willing to take on (they'll probably take a salary cut to be a founding engineer, and they also risk the company randomly running out of runway and finding themself suddenly unemployed).

But it has nothing to do with what you deserve. Maybe if the CEO/President is a sentimental type, he'll award you equity based on how much he feels you deserve but ultimately it's about supply and demand.

If a CEO puts in 90 hours a week at a tobacco company while his engineers put in 20 hours a week, does he deserve lots of money (and therefore a more comfortable life) because he puts more effort into killing people? Or does he deserve every bad thing that happens to him because he decided to spend his limited time on this earth making it a worse place?

comment 1y ago · link · parent

I just started reading this one https://dl.acm.org/doi/10.1145/325165.325171

comment 1y ago · link · parent

Are you using Visual Studio or another tool (vscode, vim, rider)? I found hot reload works a lot better in Visual Studio than any other IDE

comment 1y ago · link · parent

Salary and equity have nothing to do with what you "deserve", only what you're able to negotiate.

comment 1y ago · link · parent

The effect of Meta products from 2006~2022 has been disastrous for humanity. Social media companies are the new big tobacco. Allowing them to play a leading role in the development of AGI would probably be fatal for democracy around the world. I would not trust a single word that comes out of Mark Zuckerberg's mouth

comment 1y ago · link · parent

Yes, this is all on paper. Where I work we don't have QA

comment 1y ago · link · parent

Code review, to me, is not about validating the output. It's about a 2nd set of eyes to check for foot guns, best practice, etc. Code review is one step above linting and one step below unit tests, for me.

If someone were to submit this code for review:

    getUser(id: number): UserDTO {
        return this.mapToDTO(this.userModel.getById(id));
    }
and I knew that `userModel` throws an exception when it doesn't find a user (and this is typescript, not java, where exceptions are not declared in the method prototype) then I would tell them to wrap it in a try-catch. I would also probably tell them to change the return type to `UserDTO | null` or `Result<UserDTO>` depending on the pattern that we chose for the API. I don't need to know anything about the original ticket in order to point these things out, and linters most likely won't catch them. Another use for code review is catching potential security issues like SQL injection that the linter or framework can't figure out (i.e, using raw SQL queries in your ORM without prepared statements)

comment 1y ago · link · parent

I'm not trying to shit on this as a neat tool, but my phone is not the single place for all my data, and I find it considerably harder to manage. If I'm bringing my phone, an external keyboard, and a portable screen (and, presumably, a mouse) with me, it's not really a "single device", it's more like 4 devices that poorly imitate a laptop and don't offer as much functionality

comment 1y ago · link · parent

Serious question: if you have to read every line of code in order to validate it in production, why not just write every line of code instead?

comment 1y ago · link · parent

If I'm doing that, why wouldn't I just bring my laptop

comment 1y ago · link · parent

I would assume that the tunnel would be more expensive to build than a light rail system, and that the light rail system would cost less for riders. The light rail system could also have stops other than the airport (I'm not familiar with Nashville's layout). It seems to me like this tunnel is good for tourists and people with enough money to avoid public transportation, but pretty much useless for anyone who lives in Nashville

comment 1y ago · link · parent

I don't understand why they would dig a tunnel to make a private Tesla-only highway instead of just putting in the overstreet light rail system that they voted down in 2018. Like it seems stupidly impractical and expensive. New york has underground subways because it's a very densely packed metropolis. Why does Nashville need an underground transit system?

comment 1y ago · link · parent

Well yes because the US dollar's value is regulated by economic experts. Bitcoin's core idea was always based on pseudo-economic monetary theories

comment 1y ago · link · parent

If the government has to regulate cryptocurrency for it to be useful as a currency, then it's not very useful as a decentralized currency, is it? In my view, most cryptocurrencies (bitcoin, at the very least) are built on fundamentally unsound economic principles which incentivize hoarding and speculation.

comment 1y ago · link · parent

Because Crypto has historically found more use as a form of high tech gambling and vehicle for fraud than it has as actual currency

comment 1y ago · link · parent

I would think Maya is the most influential of all of them. Blender is popular among hobbyists and people who aren't able to shell out a few thousand every year, but Maya dominates in the commercial world. Plus many animators are using Unreal Engine just for traditional animation now

comment 1y ago · link · parent

Until they find it too tiresome to support two different interfaces and deprecate one or the other

comment 1y ago · link · parent

I understand all these things, I think they are weaknesses. They make web components less generally useful, and really only useful for one thing. Constructors are only useful for dependency injection.

comment 1y ago · link · parent

A framework to reduce boilerplate when writing directx 11 code

comment 1y ago · link · parent

Yes but their choice to abandon constructors as a primary part of the lifecycle means that adding some kind of member field to the class will leave it inherently uninitialized in the `connectedCallback`. All fields basically have to be declared as `| undefined` if you're using typescript, which leads to reall ugly code:

    class MyComponent extends HTMLElement
    {
        private width: number | undefined; // must be | undefined or
                                           // you'll get a typescript error
        constructor()
        {
            // useless, unpredictable
        }

        connectedCallback()
        {
            this.initAttributes();
            // using this.width will still require an undefined check at some point
        }
   
        initAttributes()
        {
            this.width = Number(this.getAttribute('width'));
        }
    }
If you could reliably load attributes in the constructor instead of being forced to do everything in connectedCallback (or even better, load them automatically with decorators), it would make typescript implementations much cleaner. Just some way to validate attributes before connectedCallback, or work with typescript guarantees would make this much more attractive

comment 1y ago · link · parent

Who do I assign blame to for horrible modern UX design? Is it the hubris of designers who believe that the constraints of the human body should be felled by minimalist purity? Is it bean counters who weaponize industrial psychology to create flat, boring UI to increase engagement/addiction? Is it the average technology user who has simply become too stupid to use anything other than a touchscreen? Why does it seem like everyone I've talked to about this agrees that basically all modern technology products are boring and uninspired compared to just 15 years ago, but it also seems like we keep building (and buying) boring, uninspired technology products?

comment 1y ago · link · parent

Unsafe because of telemetry or unsafe because of the plugin ecosystem?
1
8910
55