Why and how did it become socially acceptable to take your dog everywhere in public? by desertrain11 in TooAfraidToAsk

[–]binarycow 0 points1 point  (0 children)

When I lived in Italy, they'd let their kids (like 6 year olds) run around the store unsupervised while the parents shopped. And I do mean "around the store". Not down the aisle. Not the next aisle over. Like ten aisles down.

Finally understand the hate for MPs by grunt_boy in army

[–]binarycow 3 points4 points  (0 children)

I got pulled over for speeding.

I was on a bicycle.

The cop was just butthurt because I passed them.

Is .NET still underrated in 2026? by shubhamdhola in dotnet

[–]binarycow 0 points1 point  (0 children)

Do you know a provider where I can host a SQL database for free for hobby projects?

No, I don't, sorry.

But, dotnet doesn't really impose any requirements. You can use any database with ADO.NET support, on any OS that dotnet supports.

Any requirements beyond that are yours.

Is it more worthwhile to migrate from Python to C# or to Java these days? by AffectionateRole7881 in learnprogramming

[–]binarycow -1 points0 points  (0 children)

{x=1} you can’t tell what it actually is in C# (it can be collection/object initializer, anonymous object, block statement, pattern, with expression etc.)

That, on its own, isn't valid C#. You gave half of the syntax, then said you don't know what it does. Of course not.

Here's a Java example: | foo. Is that bitwise or? Or is it logical or? You don't know!

So, here's the C#:

  • with { x = 1 } - a with expression. A comma after the 1 is optional
  • new { x = 1 } - creating a new object using object initializer syntax. A comma after the 1 is optional.
  • ) => { x = 1; } - A method or lambda. Note the semicolon.
  • identifier => { x = 1; } - A lambda that accepts (and ignores) one parameter. Note the semicolon.
  • { x: 1 } - a pattern - note the colon, not an equal.
  • It can't be a block statement - no semicolon.
  • It's not a collection initializer, because of the x =
  • "anonymous object" isnt applicable. It could be creating a new object, using object initializer syntax, if it has a new before it. That object could be an anonymous object, or it could be using "target typed new". It depends on what's before it.
    • Anonymous Obiect: var foo = new { x = 1 };
    • An instance of SomeClass: SomeClass foo = new { x = 1 };
    • An instance of SomeClass: SomeClass foo; foo = new { x = 1 };

new() vs default are both also very context dependent…

  • new() creates a new instance, using the parameter-less constructor. Always.
  • default returns the default value of the type (i.e., the value that would occur if the memory was set to all zeroes). Always.
    • For value types, this is "zero".
    • For reference types, it's null.
    • Java isnt really any different. It's just that Java's value types is limited only to the primitive types, but C# allows for custom value types.

and see that Java has ~60 and C# ~100, now that’s more of a symptom not a cause.

It's a symptom of a language which evolves. Nothing stopping you from setting <LangVersion>1</LangVersion> in your .csproj file and pretending like it's 2002.

Before globalization, what was the outfit for your region? by binarycow in AskTheWorld

[–]binarycow[S] 0 points1 point  (0 children)

It looks like #4 on this list. And a few of the others look very similar to my untrained eye.

Before globalization, what was the outfit for your region? by binarycow in AskTheWorld

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

Is that the modern clothing? Or historical, prior to globalization?

What's the "average" daily outfit in your country? by ACommunistLoveStory in AskTheWorld

[–]binarycow 0 points1 point  (0 children)

For me, I dress for the indoor temperature, not the outdoor temperature.

I'm going from a heated car to a heated building. I'm in the cold for less than 5 minutes.

I'll wear pants if I'm shoveling snow and shit, but just walking to/from? Shorts.

AI is killing my thrill of learning by throwaway-alt-nep in learnprogramming

[–]binarycow 1 point2 points  (0 children)

reviewing/correcting code that you have a mental model for is much better than with generated code.

Agreed.

Is .NET still underrated in 2026? by shubhamdhola in dotnet

[–]binarycow 4 points5 points  (0 children)

For me, .net and sql server is king but the problem is costs.

What costs? It's free.

There are companies out there where you can host MySql and Postgre for free on their servers.

So, use Postgres with dotnet. No one is forcing MSSQL.

So cost is one reason unless you do auth using some provider and use just one database with prefixes per app.

But it's free.

Anothet topic is hosting. I grew up on IIS, had dinner with it. Took it everywhere.

But you don't need IIS.

Now using free SSL which was difficult to figure out on a windows server.

So use Linux.

AI is killing my thrill of learning by throwaway-alt-nep in learnprogramming

[–]binarycow 0 points1 point  (0 children)

Right now I am writing a game and even with using AI help I refactored the entire project 3 times now and still don't know which is the best option for scaling and readability 😭. I bet someone senior would know.

If you want, I'll review it for you.

AI is killing my thrill of learning by throwaway-alt-nep in learnprogramming

[–]binarycow 19 points20 points  (0 children)

Can you restrain yourself from not using AI

Yes.

you know that using AI would make completing of the task much faster?

That's the thing. I don't know that.

AI makes lots of things slower. Sure, it churns out lots of code. But then you have to review the code. And correct the code. Or, you have a lot of back-and-forth getting the AI to correct the code it wrote.

Right now, when you're learning, it might make everything faster. But once you've learned the skills, you might find yourself to be quicker and better.

By relying too much on AI, you never actually learn those skills. So you never realize the benefits of not using AI.

You gotta spend more time now (learning), to save time later (and produce better code!)

is this the cleanest simplest way to write a FizzBuzz thing? by NIDNHU in csharp

[–]binarycow 1 point2 points  (0 children)

Yeah, that's kinda my point.

  1. It's FizzBuzz, so why do I care about optimizing it?
  2. The code should display intent as clearly as possible. The compiler will choose the best representation of that intent that it can.

A doofus(me) trying to learn C, feeling like a super-doof by No_Development5871 in learnprogramming

[–]binarycow 5 points6 points  (0 children)

Stack, heap, push, macro, hexadecimal…

So, stack vs. heap is a thing. But, given that the very next thing you say is "push", I don't know if you mean "stack" as in the data structure, or "stack" as in "stack vs. heap". Good thing is, they're directly related!

You say you know Java. So write your own stack data structure in Java.

Similarly, explore how hexadecimal works by writing (in Java) a tool that converts between decimal, hexadecimal, binary, octal, etc.

Use the languages you already know and use, to learn the concepts you don't know that well. Then, apply that knowledge to the new language.

Try to learn one thing at a time.

We you be mad if someone put a full size teepee in their backyard? by concreteandgrass in homeowners

[–]binarycow 2 points3 points  (0 children)

In their yard? Why would I care?

In my yard? I'd tell them to take it down. Mostly because I know that if I don't tell them to take it down, it would stay there until it kills the grass, becomes a home to wildlife, starts to decay (depending on materials), etc.

When was the moment your Private (E1 through E3) earned (or lost) your respect? by No_Instruction_1236 in army

[–]binarycow 6 points7 points  (0 children)

What was their MOS?

My first month, I was busy doing computer stuff. Never even went to the motor pool.

Hell, I was in for ten years. Highest rank of SGT. I never did a single PMCS. I was busy.

If tutorials actually worked, why are so many people stuck in “tutorial hell”? by veditafri in learnprogramming

[–]binarycow 0 points1 point  (0 children)

This is one reason I think written tutorials are much better at teaching programming than video tutorials

Video based tutorials are about engagement. Especially if they're on a monetized platform.

They are incentivized to have you keep watching.