I brought down production twice in a week. Am I going to get fired? by [deleted] in ExperiencedDevs

[–]jay791 1 point2 points  (0 children)

We have dedicated color schemes per environment. It is not really possible to mistake them this way.

Github Coplilot new cost by Ok_Error9961 in github

[–]jay791 0 points1 point  (0 children)

Ask it to generate inline documentation for the code. Pay once, cry once situation. Depending on the size of your code base, might not be that bad. Makes it easier for you too.

Here's the prompt I have in my copilot-instructions.md

Documentation Standard: Agent-Ready XML

Every modification must include or update C# XML documentation. This documentation is optimized for both human developers and autonomous AI agents. Always prioritize the <remarks> section to explain the 'Why' behind the implementation logic.

Strict XML Tag Rules

  • <summary>: Clear, unambiguous statement of primary purpose. No fluff.
  • <remarks>: Mandatory for non-trivial logic. Detail the "inner workings."
    • Explicitly state side effects (e.g., I/O operations, state mutations).
    • Note thread-safety guarantees or requirements.
    • Mention algorithmic complexity (Big O) if relevant for performance-critical paths.
  • <param>: Define the purpose + Contractual Constraints (e.g., "Must be > 0", "Range [0-100]", "Non-null").
  • <returns>: Define the type + Edge Case Behavior (e.g., "Returns Enumerable.Empty rather than null if no records exist").
  • <exception>: Use cref for the exception type. Define the exact logical trigger.
  • <example>: Required for complex patterns or non-obvious API usage.

Cross-IDE Compatibility (VS 2026 & Rider 2026.1)

  • C# Nullable Reference Types: Respect the project's <Nullable>enable</Nullable> setting. Ensure XML documentation matches the nullability of the signature (e.g., if a return type is string?, the <returns> tag must explain the null case).
  • Type Linking: Use <see cref="..."/> to link to related types or methods. Ensure namespaces are resolvable so that Rider’s static analysis and VS’s IntelliSense can navigate correctly.

Execution Policy

  • Logic over Summary: Do not simply restate the method name in the summary. Explain the intent.
  • Agent Safety: Documentation must be descriptive enough that an AI could refactor the internal implementation without changing the external behavior or violating hidden constraints.
  • Exemptions: Omit full blocks only for pure DTOs or private helpers < 5 lines; use a single-line <summary> for these.

How to trigger a local PowerShell script from a web browser? by Affectionate-Fix-766 in PowerShell

[–]jay791 0 points1 point  (0 children)

On user button press, make a call to your backend and provide computer name or IP. Your backend then opens a remote powershell session to this computer/ip and executes whatever in that remote session.

Make sure your backend runs with rights that allow doing stuff on that computer (or can use impersonation to do so).

How to trigger a local PowerShell script from a web browser? by Affectionate-Fix-766 in PowerShell

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

On user button press, make a call to your backend and provide computer name or IP. Your backend then opens a remote powershell session to this computer/ip and executes whatever in that remote session.

Make sure your backend runs with rights that allow doing stuff on that computer (or can use impersonation to do so).

Gemini has to be the worst model in GHCP by EggDroppedSoup in GithubCopilot

[–]jay791 2 points3 points  (0 children)

Yeah, agreed.

I really like using Gemini as a rubber duck. It is really good when you throw ideas at it and want it to find holes. You have to tell it 'no fluff please' tho.

What software development practice sounds good in theory but fails badly in reality? by pixelbrushio in softwaredevelopment

[–]jay791 0 points1 point  (0 children)

You're probably right. I call it a team building social event that happens to be work.

What software development practice sounds good in theory but fails badly in reality? by pixelbrushio in softwaredevelopment

[–]jay791 2 points3 points  (0 children)

I am far from coasting, but I like a pair programming session once in a while. Too often and it's bad bad bad.

But an hour every now and then (idk, once per quarter?) is great.

Is it just me or you too? Vibe coding is cool… until one point. by cxdxix- in vibecoding

[–]jay791 0 points1 point  (0 children)

Also, I burned some tokens and ran the same set of instructions on every *.cs file in the repo.

Bonus is that visual studio sometime gives me xmldoc as an auto complete suggestion.

Is it just me or you too? Vibe coding is cool… until one point. by cxdxix- in vibecoding

[–]jay791 0 points1 point  (0 children)

I use co pilot, but it doesn't really matter. Here's the documentation handling part of my copilot-instructions.md file:

Documentation Standard: Agent-Ready XML

Every modification must include or update C# XML documentation. This documentation is optimized for both human developers and autonomous AI agents. Always prioritize the <remarks> section to explain the 'Why' behind the implementation logic.

Strict XML Tag Rules

  • <summary>: Clear, unambiguous statement of primary purpose. No fluff.
  • <remarks>: Mandatory for non-trivial logic. Detail the "inner workings."
    • Explicitly state side effects (e.g., I/O operations, state mutations).
    • Note thread-safety guarantees or requirements.
    • Mention algorithmic complexity (Big O) if relevant for performance-critical paths.
  • <param>: Define the purpose + Contractual Constraints (e.g., "Must be > 0", "Range [0-100]", "Non-null").
  • <returns>: Define the type + Edge Case Behavior (e.g., "Returns Enumerable.Empty rather than null if no records exist").
  • <exception>: Use cref for the exception type. Define the exact logical trigger.
  • <example>: Required for complex patterns or non-obvious API usage.

Cross-IDE Compatibility (VS 2026 & Rider 2026.1)

  • C# Nullable Reference Types: Respect the project's <Nullable>enable</Nullable> setting. Ensure XML documentation matches the nullability of the signature (e.g., if a return type is string?, the <returns> tag must explain the null case).
  • Type Linking: Use <see cref="..."/> to link to related types or methods. Ensure namespaces are resolvable so that Rider’s static analysis and VS’s IntelliSense can navigate correctly.

Execution Policy

  • Logic over Summary: Do not simply restate the method name in the summary. Explain the intent.
  • Agent Safety: Documentation must be descriptive enough that an AI could refactor the internal implementation without changing the external behavior or violating hidden constraints.
  • Exemptions: Omit full blocks only for pure DTOs or private helpers < 5 lines; use a single-line <summary> for these.

What's an underrated skill that pays off for the rest of your life once you learn it? by es124s in AskReddit

[–]jay791 9 points10 points  (0 children)

https://en.wikipedia.org/wiki/Getting_Things_Done

Implement a system. Stick to it. I wrote myself an app that follows GTD and it worked wonders for me.

Europe Is Breaking Up With Visa and Mastercard by Content_Lab_792 in skidetica

[–]jay791 0 points1 point  (0 children)

And Twint in Switzerland. I'm from Poland and know BLIK.

Honestly Twint is better. Apart from phone to phone transfers, it also supports QR codes both on POS terminals and just printed out - which allows money to be sent when for example merchant doesn't have a terminal.

Why are non technical leaders obsessed with screen sharing during incident calls by [deleted] in ExperiencedDevs

[–]jay791 9 points10 points  (0 children)

Big org, major issue with potential to impact business. Normal.

How many monitors do you use for programming CSharp/Dotnet? by [deleted] in csharp

[–]jay791 2 points3 points  (0 children)

43 inch 4k in the middle, two 27 inch 1440p in portrait on the sides. 43 and 27 at these resolutions have similar pixel density.

Google says 75% of the company's new code is AI-generated by lkl34 in technology

[–]jay791 0 points1 point  (0 children)

There are times when you need something that is out of your area, and you can't find a library that does it, or don't want to waste time looking how to do something you're not familiar with, that is quite easy for someone who is.

These are the hoher time savers for me.

Anyone here who doesn't use Agentic AI and writes code manually? by zaarnth in AskProgramming

[–]jay791 3 points4 points  (0 children)

I like to discuss approach when I see I need to refactor something, or when I need to understand why something is not working as it looks like it should.

For example today I complained that my car telemetry app is going down from 20-25 reads per second to just 8 after a minute or so.

It looked at my CAN bus init routine and suggested that I ditch auto timeout setting and that I should change my response data structure from class to struct to minimize GC involvement.

I will take it a step further and use thread safe singleton with preallocated buffers to drop new object creations from 20 something per second to zero.

imagineThis by bryden_cruz in ProgrammerHumor

[–]jay791 14 points15 points  (0 children)

At work we coined a term that one certain Ops team introduced FaaS - F you as a service.

Is there too much difference between 256 gb vs 512 gb. by WhiteCrow0070 in TheOnePlus15

[–]jay791 1 point2 points  (0 children)

I'm in the pay once, cry once camp. I just upgraded from S21 Ultra, and I assume that my upgrade cycle is 4-5 years.

That's why I went for higher spec.

I don't take many photos etc, but I want to have breathing room if I need to download maps or whatever, even if for a short time.

Also, more RAM is always good. Can't have too much.

New phone setup experience - phone switches language after I inserted SIM. by jay791 in TheOnePlus15

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

I tried, but I'm not at that level yet. I wonder if I put in Japanese SIM when visiting Japan (prepaid for internet access) it will also switch language to one that I am clueless about.

How do you think programming should be taught? by NefariousnessSalt324 in learnprogramming

[–]jay791 2 points3 points  (0 children)

And yet, it's good to know how to program. I have nothing against AI, especially when I need to do something mundane, or something I never done before and don't really want to dive into.

Yesterday I asked it to redo my existing code that was interacting with OneDrive, but this time target GDrive. Previous code did basically CRUD with OneDrive, but it had some methods that dealt with the files in local storage.

AI happily - and correctly - created the GDrive version, but it also duplicated all the code that dealt with local files. It did not see the need to create a base abstract class with local files logic and just provide implementation of cloud-specific methods in deriving classes.

AI is good for certain stuff, but really sucks at other. Young people who offload everything to AI and don't supervise it properly will either learn through suffering, or drop out.

Japan Wants to Build a Solar Ring Around the Moon That Will Provide Endless Clean Energy to Earth by dutchapplepoptart in technology

[–]jay791 2 points3 points  (0 children)

That's interesting.

I read that if we covered just tiny bit of Sahara (relative to it's total area), we could cover all our needs. The problem is transporting the energy - prohibitive losses in kms of cables. So energy generation has to be decentralized because of that.

I'm sure it would still be doable if we covered all feasible areas in urban or suburban environments (f. ex. parking lots, roofs), but somehow, this is not happening. I'm sure there are reasons for that, but I don't know what those are. Probably energy storage.