Better HN
topnewbestaskshowjobs
Log inSign up

Merad

2,800 karma · joined Mar 14, 2015 (11y ago) · 772 submissions

Submissions

comment 4y ago · link · parent

Does a child being stabbed in the face make knives evil? Or a child being crushed by a car make vehicles evil? Guns are inanimate objects and I don't really understand the desire to assign them attributes like "evil." There are absolutely evil people who use guns to do evil things, but the same can be said for many other objects.

comment 4y ago · link · parent

IME at least people who are really into guns are also very serious about gun safety. The problems mostly tend to come from those guys who bought an AR or pistol because it seemed cool who only take their guns out of the case once or twice a year. Unfortunately in a country the size of the US there are a lot of people in the latter group.

WRT to training, I'm of the opinion that if we as a country are going to maintain a relatively unrestricted right to bear arms (which I'm in favor of), the responsible course of action is to have broad gun safety training. Personally I'd make it part of the high school curriculum, just like english or algebra. That's where I start to hear objections from conservatives - they're totally in favor of people seeking training, after all those people probably already have an interest in guns and they're most likely seeking training from a pro-gun source, but they're concerned about broader required training being hijacked by anti-gun groups. And they probably aren't wrong, but I don't think we should ignore addressing the problem just because some people would abuse the solution.

comment 4y ago · link · parent

As a liberal and a gun owner, I think it's an intentional stance by both sides. Conservatives dislike gun safety training because unless it's in carefully controlled settings (i.e. controlled by conservative groups) because they're afraid it will be used to push a "guns are bad/guns are evil" narrative. Liberals don't like it because it's pretty hard to teach effective gun safety without actually handling and shooting firearms, and when people experience that they have a tendency to a) realize that guns aren't as scary and evil as they had been led to believe, and b) think that shooting sports are kind of fun.

comment 4y ago · link · parent

If you like the idea of this but aren't on Linux or want something with a little ui involved, check out the Rainbow CSV extension for VS Code, vim, Sublime, and Atom. It includes RBQL [0] which lets you query CSVs with a sql-like syntax.

(Not affiliated with Rainbow CSV or RBQL at all, just a happy user)

[0]: https://rbql.org/

comment 4y ago · link · parent

This 100%. This line is an immediate nail in the coffin:

> This business unit has a pretty aggressive roadmap as management and HQ has no real understanding of these blockers. And post COVID, budget is really tight.

I've been at a company not unlike this... several MLOC of VB WinForms that was total spaghetti, but a highly successful app that brought in a lot of revenue. In our case the majority of the dev team was in agreement that the situation wasn't sustainable, and at first (meaning when I joined the company) we had engineering leadership who mostly agreed. They brought in several rounds of consultants to evaluate the code base and announced plans for a major modernization effort. But the consultants largely agreed with the dev team that the code was in such bad shape that it effectively needed a rewrite. At one point we did a prioritization and t-shirt sizing exercise and came up with _30 man years_ worth of items in the "critical tech debt" bucket. Apparently engineering leadership was not aligned with the C level suite about how much money they were willing to spend on this thing, because within the next year there was 100% turnover of management in the engineering org. A couple of (talented!) people who had been hired for the modernization effort left first, then the other engineers who knew the code base well followed. Last I heard the company was limping along relying on Eastern European and Indian contractors to keep the lights on.

In short OP, you can probably get some wins; maybe some major process improvements like using source control, maybe more minor things like introducing patterns or frameworks so that net new code isn't a total mess. But there is zero chance that you're to do anything like a rewrite or major refactoring without leadership understanding that they're in an unsustainable situation and a willingness from them to invest time and money to fix it.

comment 4y ago · link · parent

Meaning no offense but if you aren't exaggerating you might want to invest some time in typing lessons. I'm not even remotely close to being an expert typist and I spend most of the day going back and forth between a C style language (C#) and modern style that uses the colon (Typescript). The difference needed to type a colon doesn't even register.

comment 4y ago · link · parent

Sure, but if the US government was on top of passing legislation to force businesses to stay up to date in order to protect consumers we wouldn't be having this conversation.

comment 4y ago · link · parent

We're talking about people often in their 60s or 70s who quite literally hate technology and don't want to spend any money on it unless someone puts a gun to their head. Seriously, the company I worked for had dropped support for windows XP before I ever started there, but they still had some customers running it when I left (this year).

From the POV of these small business owners that Sumup terminal doesn't do anything to help them and if anything makes their life harder. It won't integrate with their business management software (our product) and most likely will have higher transaction fees than their current payment processor. The company I was with offered EMV terminals that were fully integrated with the management software (I helped write the integration), but there wasn't a lot of interest in them outside of larger companies. The small guys in general don't have a lot of incentive to care about information security. One of the other projects I worked on was migrating the management software from using encrypted CC numbers stored in its database to using tokens. When we took away the ability for users to unmask and view the full CC number some of them started saving saving card numbers in the plain text customer info fields (address, etc.).

comment 4y ago · link · parent

I guess you're just SOL if you don't own a Mac?

comment 4y ago · link · parent

This spring I left a job working with payments in a SaaS for the self storage industry. I don't remember exact numbers but the overwhelming majority of the card present payments we processed were either keyed by hand or swiped with a magtek reader. A great many self storage companies are mom and pop operations that only have one or two locations, often run by retirees to supplement their retirement income. Needless to say they (and the industry as a whole) are highly resistant to change.

comment 4y ago · link · parent

> Is it really a better alternative to putting some bomb bay doors on a modern Boeing?

The B-52 can carry about 70,000 lbs of bombs. You can't just hang that amount of weight from the floor of a 777, you're going to have to redesign the entire aircraft to support the load. The B-52 also has a range that's absolutely insane. With a combat load it can fly 8,800 miles, beating a 777-200LR by a few hundred miles. If it's just flying from point A to point B with no bombs it can go more than 10,000 miles.

comment 4y ago · link · parent

> In case there are people here who are really to young to remember this

I'd guess there's quite a few of them here. Most current college age kids hadn't been born yet. College seniors were newborns. Those under age 30 probably remember it, but they were most likely too young to really understand what was going on at the time.

comment 4y ago · link · parent

At least in terms of gaming I think multi-core CPUs killed them. A big argument for sound cards used to be that they'd give you higher quality audio and use less CPU. I can remember benchmarks from the mid 2000s showing less CPU usage with a dedicated sound card vs onboard sound. But by the time you get to the early 2010s anyone building a mid to high end gaming PC was using a quad core CPU, and with 4+ cores it's really hard to care if onboard sound is using a few percent extra CPU.

And while 3d audio is/was a cool concept, most people don't really have a sound system that will really take advantage of it. Even most "serious gamers" that I know use headphones or stereo speakers... now that I think about it I'm pretty sure I'm the only person in my friend group with a 5.1 speaker setup on my PC.

comment 4y ago · link · parent

Look at the example dockerfile farther down in the article. They're performing the build inside of a dotnet sdk container then creating the application container. It sounds like you're performing the build outside of a container and just packaging the artifacts.

comment 4y ago · link · parent

> If what you’re asking of these students can easily be automated by a tool then the problem is in the assignment. Either don’t request it, knowing it can be automated with ease, or accept that bubble sorts are a long solved problem and move on to teaching other things.

If assignments that are easily automated are a waste of time, do you have any suggestions on how instructors should help students move from "I know literally nothing about writing code" to "I know the basics well enough to solve problems that aren't trivially generated by Copilot"? In my anecdotal experience (albeit years ago) as a graduate assistant, for students who are totally new to programming that phase often lasts throughout the typical intro to CS course and it's not unusual for it to stretch into the second level course.

comment 4y ago · link · parent

> How about - as an employee - using external offer to get a raise and stay at current job? Is that always a bad idea?

I'm too lazy to look it up and verify but IIRC the majority of employees who ask for a raise with another job offer on the table end up leaving within about 6 months even if they get the raise. So yeah, it wouldn't surprise me if doing that basically puts a red flag beside your name for management. You also probably don't want to go that route unless you are actually prepared to leave... there's no guarantee that they will agree to give you a raise. I left a company this spring after ~4 years and thought I was in a very good position to get a counter offer. I was lead for one of their most important projects and was slated to move into an architect role to oversee a major revamp and expansion of that project. When I turned in my notice I told them (truthfully) that I wasn't necessarily look to leave if they were willing to make a counter offer, but the answer unfortunately was that they couldn't go that high for my role.

comment 4y ago · link · parent

Someone who's consistently working extra spoils the situation for the rest of the team. They'll eventually end up having the most knowledge and experience since they're working with the code more and they'll almost certainly be the most productive person on the team. When it's time for reviews, raises, and promotions who do you think a naive manager will flag as the all star top performer on the team? One can argue that that's fine and they deserve the raises and promotions because they're working extra, but it ends up putting the team in a very unhealthy place where the other team members can't really compete with the workaholic unless they too start working extra.

comment 4y ago · link · parent

> An xhr api request returned an expected 403, which resulted in the browser suddenly concluding the basic auth (which was unrelated to the api call) was invalid and the user needed to be reprompted for credentials again.

That sounds like it was a mistake on the part of the api. The browser should only prompt for credentials if the response headers include a WWW-Authenticate header, but that header should only be included with a 401 response (at least according to MDN).

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WW...

comment 4y ago · link · parent

> Do you think the existence of these older cheaper planes is holding back the development of upstart companies aiming for a price point that's closer to the Cessna 172 than the SR22?

Things in aviation are incredibly expensive because of how much it costs to have things certified by the FAA for safety and reliability. I'm no legal expert but I don't think an upstart company has much wiggle room to get around that if they want to legally sell their aircraft in the US. As an example Cessna 172s are still made and AFAIK the modern ones haven't required leaded fuel for some time. A 172 is just about the most basic small airplane you can get but today a new one costs as much as a house, about $400k.

comment 4y ago · link · parent

The issues are totally unrelated. Jet turbines have always been capable of running on almost any fuel. I would hazard a guess that what Airbus did here was mostly certifying that the alternative fuel wouldn't cause any major problems, maybe also things like tweaking the engine management systems to ensure consistent power output and throttle responsiveness with the new fuel. The problem with avgas is that there are a huge number of aviation piston engines still in use that were built with 1930s-1960s era technology (in some cases the engines themselves are literally that old) that were designed to use leaded gasoline. Getting those engines to run on unleaded gas would at best require extensive modifications to the engine and at worst just isn't possible. In the cases where it's possible, someone has to foot the bill to figure out how to modify the engines and get the changes certified with the FAA, both incredibly expensive propositions. Once that's done all of the owners will have to drop the money to upgrade their engines.

The death of avgas is inevitable but unfortunately it's probably going to take some sectors of general aviation with it. Those older planes are still flying in large part because newer planes have gotten so incredibly expensive. Also from what I've read the warbird community is working on the problem but many of them aren't very optimistic about being able to get those big WW2 era engines to run unleaded.

comment 4y ago · link · parent

Growing up on a farm we were constantly shooting squirrels out of fruit trees and off of bird feeders. It was amazing to me how they were barely concerned with gunfire and not at all bothered by the dead bodies of other squirrels. There were a few days I probably shot 5-6 of them all in the same place in the span of just a few hours.

comment 4y ago · link · parent

I've yet to work at a company that has managed to figure out a strategy to get the majority of devs to write clear and descriptive commit messages the majority of the time. At least if they include the ticket number I can look at the ticket to understand what they intended to do. Of course whether they actually did it or not is another matter.

comment 4y ago · link · parent

Isn't that slower and less efficient? Usually the CI has to run a full build from scratch before it can run the tests, but locally for me it's going to be an incremental build that takes a second or two. I can also run the subset of tests that I know are affected by my changes to get fast and reasonably reliable feedback vs waiting for CI to run the whole test suite.

comment 4y ago · link · parent

> I've seen too many cases where the devs wouldn't even run the code locally.

Lazy devs are going to be lazy no matter what processes their team uses.

comment 4y ago · link · parent

The books are ambiguous. There's an explosion caused by a device made by Saruman, but it isn't described and there's no indication AFAIK if it's supposed to be simple black powder or something magical.

comment 4y ago · link · parent

> a dirty read occurs when you perform a read, and another transaction updates the same row but doesn't commit the work, you perform another read, and you can access the uncommitted (dirty) value

It's even worse than this with MS SQL Server. When using the READ UNCOMMITTED isolation level it's actually possible to read corrupted data, e.g. you might read a string while it's being updated, so the result row you get contains a mix of the old value and new value of the column. SQL Server essentially does the "we got a badass over here" Neil deGrasse Tyson meme and throws data at you as fast as it can. Unfortunately I've worked on several projects where someone apparently thought that READ UNCOMMITTED was a magic "go fast" button for SQL and used it all throughout the app.

comment 4y ago · link · parent

Christopher Tolkien had no say in the Hobbit films (or any other prior films). JRRT himself sold the rights to film adaptions of his works to United Artists a few years before his death. The GP is correct that the Tolkien Estate sold the rights for the TV show to Amazon literally months after Christopher retired as director of the Estate... granted planning and negotiations had probably been ongoing for some time, but Christopher would've been about 93 at the time so presumably he was not deeply involved by that point.

comment 4y ago · link · parent

> Most of us carries at least 1 kg (~2 lbs) fat

It's a lot more than that. Even a fit (healthy, but not necessarily peak athletic shape) adult man will have about 15% body fat, 20% for a woman.

comment 4y ago · link · parent

100%... just switched to a company that uses Teams, hate it already.

comment 4y ago · link · parent

> UUIDs have a few distinct advantages: you'll never run out

I'm curious what kind of applications are limited by the range of bigint values? I have no doubt that such applications exist somewhere, but most software engineers won't ever come close to encountering those limits. Even if you have a table that is consistently consuming a billion (with a B) bigint id values _every second_ (is that even feasible with current hardware and RDBMS software?) you won't run out for almost 300 years.

1
101112
26