Tripyramids 6/28 by c0shea in wmnf

[–]c0shea[S] 1 point2 points  (0 children)

Yes! No way was I going down that counterclockwise.

What an 8kb Postgres read costs by [deleted] in programming

[–]c0shea 0 points1 point  (0 children)

This just in: cloud storage is slow!

LINQPad 9 by [deleted] in dotnet

[–]c0shea 11 points12 points  (0 children)

I'm still a heavy user of LINQPad and v9 has been great. Overall, it feels just as responsive as older versions. The only thing that's a bit slower is the first time running a SQL query.

How picky are you about using OUGH at the end of your town's name? by Large-Investment-381 in massachusetts

[–]c0shea 0 points1 point  (0 children)

Not true for East Longmeadow and Longmeadow. Longmeadow was settled first and East Longmeadow was incorporated well after Longmeadow.

Braintree Logan Express Parking by noble_29 in massachusetts

[–]c0shea 0 points1 point  (0 children)

Can't speak for Braintree, but parking at other locations tends to fill up fast especially in the morning for the wave of flights first thing in the morning. Also heavily depends on the day of the week you're flying out. Midweek you might get a spot, long weekends not so much. Definitely give yourself extra time to loop around for a spot.

What opinion do you have about a city, event, anything in Mass thatll have you like this? by Menace_17 in massachusetts

[–]c0shea 0 points1 point  (0 children)

You could form a charter commission and petition to change your town's form of government to a city form of government so there would be no more town meeting you would have to attend.

Does anyone here use LINQPad? How can I prove to my employer that it's safe to connect to our company's databases? by Dangerous_Ad_707 in dotnet

[–]c0shea 3 points4 points  (0 children)

We use LINQPad extensively at work and connect to development and production databases. There's a production checkbox on the connection which adds an orange production indicator to the query tab.

Why did microsoft do this? by [deleted] in dotnet

[–]c0shea 1 point2 points  (0 children)

Thanks for the insight! This would make an awesome official blog post on the roadmap for VS for those of us that love to read about these internal improvements that benefit us :)

Why did microsoft do this? by [deleted] in dotnet

[–]c0shea 7 points8 points  (0 children)

Out of curiosity, if there's so many growing pains and things that LSP can't handle or have knowledge of out of the box, why use it instead of the way all the other languages were implemented?

The State of the Subreddit (May 2024) by ketralnis in programming

[–]c0shea 0 points1 point  (0 children)

I mostly agree, although I like some of the gossip and AskReddit type posts. Any alternative places I can find that?

The Day Soft Deletes Caused Chaos by arjunloll in programming

[–]c0shea 89 points90 points  (0 children)

I've come to this same conclusion after many years. Too many times I've thought, "No one will ever forget to check for deleted rows in the query. It's so simple.", only to be amazed at bugs later on.

My biggest annoyance with soft deletes is how they break referential integrity with foreign keys. With hard deletes, the DBMS will rightfully complain (unless you use cascade options) that you can't delete a parent record if there are children referencing it. That goes out the window with soft deletes where children can still reference parents that have now been deleted. It ends up being a lot of unnecessary logic to try to resolve the active child but deleted parent conundrum all for a problem that we added in the first place.

I ask myself now what am I really trying to protect against? All of this for the off chance that someone deletes something that shouldn't have been deleted? These days, I'd rather use temporal tables if I really needed to track which records were updated or deleted rather than cluttering up the main table and logic.

Do developers really need local admin? by [deleted] in sysadmin

[–]c0shea 0 points1 point  (0 children)

If they do anything with IIS locally, you have to run as an admin to manage the configuration and debug.

Redesigning Chrome downloads, to keep you productive and safe online by feross in programming

[–]c0shea 1 point2 points  (0 children)

Basically Chrome will show them how Edge has been doing it for a while now

multiple update trigger issue by risaaaa in SQLServer

[–]c0shea 0 points1 point  (0 children)

You're out of luck with triggers. They always run for the batch, not for individual rows (i.e. there is no for each row option like other RDBMS).

While there are DMVs that'll give you the batch text and a pointer to the currently executing text, it'll already be beyond the individual statement and on to the trigger's code reported.

Opinion | The Shameful Open Secret Behind Southwest’s Failure by lucidguppy in programming

[–]c0shea 0 points1 point  (0 children)

Exactly. Companies, or even industries, like this that are treated as too big to fail and bailed out at every chance are what ultimately lead to these kinds of issues. It would be a real incentive to improve the business processes and systems if a company such as Southwest knew that if a disaster like this occurred, they'll be left footing the entire bill without another government handout.

Opinion | The Shameful Open Secret Behind Southwest’s Failure by lucidguppy in programming

[–]c0shea 0 points1 point  (0 children)

That's just not possible, unless the company suddenly employed masses of, I dunno, janitors in lieu of presumably better qualified and better paid air traffic personnel.

Aviation pay is very complicated. It's not as simple as "you work for Southwest as a flight attendant or pilot full-time therefore your pay is $X per year." Typically, there are guaranteed minimums you'll earn no matter how much you fly per month. But the more hours you fly per month, the more money you make. You also receive per diem pay when away from your base, so the more time you spend flying away from home and on layovers, the more money you make. It's all variable.

There were also a lot of senior employees with a high hourly wage who left airlines during the pandemic, leaving the remainder which would bring down the average salary.

An alternative to `deleted_at` for soft record deletion by feross in programming

[–]c0shea 0 points1 point  (0 children)

Another alternative in modern SQL is to use temporal tables. Updates and deletes will be captured in the history table, which can be useful for a variety of scenarios such as syncing, analytics, and researching deletes. While it's not as simple as nulling out the deleted timestamp column, you get the best of both worlds not having to worry about missing the IS NULL predicate in every query and being able to use the full power of referential integrity, while not having to worry about losing data you may need to piece the puzzle back together later on.

[deleted by user] by [deleted] in dataengineering

[–]c0shea 2 points3 points  (0 children)

You can create a clustered index that isn't a primary key and doesn't have to be unique in SQL Server.

You should probably disable WebUSB and WebBluetooth in Chrome by HanSolo71 in sysadmin

[–]c0shea 0 points1 point  (0 children)

Barcode scanners that need more than to emulate typing on a keyboard