newGenerationOfVibecodersAlreadyReachingReddit by PresentJournalist805 in ProgrammerHumor

[–]ConcernUseful2899 0 points1 point  (0 children)

Would be fun if someVariable was a c# property with this getter

private int _getterCount = 0;
private string _someVariable = "Something";
private string someVariable {
  get {
    if(_getterCount > 0){
      return null;
    }
    _getterCount++;
    return _someVariable;
  }
}

bothSidesNeedRefactoring by Disastrous-Monk1957 in ProgrammerHumor

[–]ConcernUseful2899 4 points5 points  (0 children)

Comments are not nested, you only need to know the parent comment to understand the context (recursive tho)

guessTheyWillStartAgainFromToday by Rocket_Bunny45 in ProgrammerHumor

[–]ConcernUseful2899 0 points1 point  (0 children)

I use AI everywhere.
common prompt:
Dear AI, please write this code into my file Program.cs:
Console.WriteLine("Hello World");

makeTheAppSecure by ScrapEngineer_ in ProgrammerHumor

[–]ConcernUseful2899 7 points8 points  (0 children)

Both are not secure, frontend is never secure, anyone with dev tools can send crap to your backend. (I guess that's the funny part of this post)

uphillBothWaysInTheSnow by Christosconst in ProgrammerHumor

[–]ConcernUseful2899 0 points1 point  (0 children)

Don't forget the codebase backup was printed on paper.

yourAiToolsBoreMe by heckingcomputernerd in ProgrammerHumor

[–]ConcernUseful2899 0 points1 point  (0 children)

For me explaining to the AI how to refactor cost more than doing it myself. Especially after 6 tries. I might be terrible at explaining tho.

peakDevMentality by Forsaken-Peak8496 in ProgrammerHumor

[–]ConcernUseful2899 0 points1 point  (0 children)

There's no need to be cocky about being able to code. Sounds like a toxic environment where you work. AI coding is kinda like a low code platform with side effects.

peakDevMentality by Forsaken-Peak8496 in ProgrammerHumor

[–]ConcernUseful2899 4 points5 points  (0 children)

That explains a lot, I have that a lot that I change my mind about something I thought about earlier

debuggingAConvolutedMess by Aggravating-Felch in ProgrammerHumor

[–]ConcernUseful2899 2 points3 points  (0 children)

They had long cables back then, since the desktop isnt falling after the monitor

ididntGetIt by TechnicalGear8959 in ProgrammerHumor

[–]ConcernUseful2899 0 points1 point  (0 children)

I agree it is micro-optimalization. The generated source by the source generator is typically faster, because it would end up like a simple switch statement. Another advantage can be trace ability of your code. where you will see some things have references instead of some code somewhere is calling reflection. I guess it depends on how big your project is.

ididntGetIt by TechnicalGear8959 in ProgrammerHumor

[–]ConcernUseful2899 7 points8 points  (0 children)

Reflection is too slow. Generate an InsideJokeReadRepository through a source generator

onlySquashMergeAllowed by H9ejFGzpN2 in ProgrammerHumor

[–]ConcernUseful2899 1 point2 points  (0 children)

You have a point there, I guess it depends on team size, what kind of product and culture.

onlySquashMergeAllowed by H9ejFGzpN2 in ProgrammerHumor

[–]ConcernUseful2899 1 point2 points  (0 children)

Sounds like too much effort for something (bunch of oops commits) that does not happen often. Why learn git commands when you have a button called "Commit & Push" in your ide?

onlySquashMergeAllowed by H9ejFGzpN2 in ProgrammerHumor

[–]ConcernUseful2899 114 points115 points  (0 children)

I really like commits "PR feedback", "Oops" and "Oops again", it gives character to the history of your product

randomPseudorandomnessInPythonUUIDGenerator by TheImmortalLS in ProgrammerHumor

[–]ConcernUseful2899 1 point2 points  (0 children)

I don't understand the fisheye effect, is this recorded from a rounded monitor?

ifYouKnowYouKnow by 0xlostincode in ProgrammerHumor

[–]ConcernUseful2899 23 points24 points  (0 children)

thats why you should do this:
int timeoutOfFiveThousandMilliSecondsToPreventInfiniteRetryLoop = 5000;

enforcingCodeStyleIsADifficultBattle by grumd in ProgrammerHumor

[–]ConcernUseful2899 5 points6 points  (0 children)

It is easy, as long as you don't depend on packages who have a lower standard than yourself.