2,800 karma · joined Mar 14, 2015 (11y ago) · 772 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
The US had a test platform [0] that showed that the concept of an airborne laser ABM system was viable. However they concluded that we need an order of magnitude increase in the power of airborne lasers in order for it to have enough range to actually be useful.
comment 3y ago · link · parent
comment 3y ago · link · parent
* It's pivot/unpivot query syntax is a lot nicer than the comparable Postgres extension.
* The ability to define a clustered index for a table that's maintained automatically.
* The ability to define materialized views that are maintained automatically.
* The db engine can automatically use materialized views to accelerate queries matching the view definition.
* It has some really cool support around temporal tables. Not just defining them, but using them in queries. Like, there's a pretty simple query syntax that lets you join together multiple temporal tables and say, show me what the data looked like at this point in time, or show me how it changed during this time period.
The main problem with SQL Server IMO is that many of the cool features you discover are gated behind a SQL Server Enterprise license, and it's crazy expensive. Upwards of $10k per core per year, IIRC. The last time I looked at RDS instance prices I believe SQL Server Standard was about 4x more expensive than Postgres, and Enterprise about 8x more expensive.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I tend to avoid using arrays in config because of the unexpected behavior, and the risk of overriding something you didn't mean to. Anywhere you'd use an array you can usually use an object and bind it to a Dictionary<string, Whatever>, then ignore the keys.
comment 3y ago · link · parent
If for some reason you don’t want the framework to handle things like routing or request/response deserialization/serialization then you can go bare bones and implement everything via custom middleware: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/m...
comment 3y ago · link · parent
comment 3y ago · link · parent
1. appsettings.json
2. appsettings.{env}.json
3. user secrets (only in Development environment)
4. environment variables
5. command line args
You can full customize the setup if you desire, there are packages to support things like external secret stores. If you Google ‘Asp.Net core configuration” there’s a MS page that goes into great detail on all of this.
Anyway, your env vars must match the name as you’d structure it in a json object, but with the periods replace with double underscores. So ConnectionStrings.MyConnection becomes CONNECTIONSTRINGS__MYCONNECTION, FeatureFlags.Product.EnableNewIdFormat becomes FEATUREFLAGS__PRODUCT__ENABLENEWIDFORMAT, etc.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
For me the biggest value add of Hello Fresh is the meal planning aspect. I don't have to spend time every week figuring out what I want to cook for 3-5 different meals, or track down the ingredients to make them, or add up calories to make sure they're health conscious.
comment 3y ago · link · parent
Edit: Assuming a modern framework that can run basically anywhere. Something like old school .Net Framework that is essentially restricted to Windows and IIS would be a different story.
comment 3y ago · link · parent
The hosting question has me a little confused I guess. You don't need anything special to deploy or run modern .Net code? You can run your app anywhere that the Asp.Net Core runtime is supported [2]. Or bake your app into a container and run it anywhere that understands containers. MS has tutorials for deploying to Azure [3], but I honestly know nothing about it (Azure). Every place I've worked at that had cloud infrastructure has used AWS, and I've never needed to deploy a hobby app.
0: https://learn.microsoft.com/en-us/aspnet/core/tutorials/min-...
1: https://learn.microsoft.com/en-us/aspnet/core/tutorials/choo...
2: https://dotnet.microsoft.com/en-us/download/dotnet/7.0
3: https://learn.microsoft.com/en-us/azure/app-service/quicksta...
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
0: https://learn.microsoft.com/en-us/dotnet/csharp/programming-...
comment 3y ago · link · parent
I'm guessing they told him to get a Western Union money order, as those can't be reversed after they're cashed (AFAIK). Most modern forms of payment offer some level of consumer protection, as in they can be canceled or reversed. TBH a repo business might not even be able to get a merchant account for CC processing due to being a high risk business. Merchants that have high chargeback rates have to pay higher processing fees and can even lose their merchant account if their chargeback rate is too high for too long.
comment 3y ago · link · parent
A 75" TV is going to cost you a lot of money for a very ineffective display. It's so large that you'll probably have to physically move several feet to see the edges, meaning that realistically only about half the screen is usable.
comment 3y ago · link · parent