18

I love that its 2024, and yet sometimes you still have to delete the /bin and /obj folders from a C# project to remove build errors that are in fact, not build errors...

...and people here hate node.js / npm

🤡🤡🤡🤡🤡🤡

but come on down in the comments all you C# worshippers and please enlighten me what I am doing wrong... definitely couldn't be C# right?

also explain why 'clean' must not REALLY mean clean 🤡

Comments
  • 0
    C# is my dirty secret. It's far from perfect, and if I was a genius then I'd use something else. But nothing else I've tried can touch it in terms of having a low cognitive load.
  • 12
    I mean, you do realize you're hating on a language for it's build tools?

    That's like saying C++ sucks because clang can't load their configuration properly in vscode

    or that Python sucks, because pip failed to install some package properly

    you should probably hate on Visual Studio or whatever build system you're using in this case, not the language itself
  • 1
    On a side-note, what do you all use to make a desktop app ?

    All I find are stuff like Electron or xamarin. I don't want it to be a web app or multi-platform...

    All I need is to create a modern windows 11 desktop software. I tried WinUI 3. It is working, but the xaml is hell without designer.
  • 8
    Me yesterday in Android Studio:
    - clicks Run: I get a weird compilation error that makes zero sense.
    - does a clean + rebuild: the same error
    - does a invalidate caches, this always solves everything, right? Still the same error
    - runs a git clean -xdf in the project to remove all /build, /bin, etc folders: still the same error
    - deletes the .android, .gradle and similar fucking folders from my home directory: now it works!
  • 5
    Exactly what @Hazarth said.

    And every language has this issue (because it’s not a language issue)
  • 3
    Build systems are a universal pain in the ass...
  • 1
    i can't tell you what you're doing wrong without having access to the project where you're doing it wrong, and knowing what exactly you are doing while you are doing something wrong.

    that's the first thing you're doing wrong: not providing any information that could be used to answer your question.
  • 4
    @Grumm try eto.forms - it's a wrapper for native UI libraries on windows, linux and osx. and it's completely c#, no stupid xml to torture yourself with.
  • 1
    @tosensei "no stupid xml"
    Sold!
  • 4
    @dontbeevil everything has issues.

    except javascript. javascript IS an issue.
  • 1
    Well I mean every platform has their thing. I am nowadays working with NextJs and sometimes we delete .next, node_modules etc to get things working.

    (Its not their fault it happens due to irregularities in node version between the workspaces etc but still…)
  • 3
    @Hazarth C++ is unique in that the language itself is a standard adopted by multiple implementations that share nothing besides the language. The problems of Pip and NuGet and Cargo are absolutely problems of the language, because there's no way to get around these tools, and they're managed by the same organization that manages the development of the language.
  • 3
    @lorentz to be fair, you don't have to use Pip nor NuGet. It just simplifies package Installation but nothing is stopping you from installing packages from sources in python or linking dynamic libraries in C# from project build configuration

    Source: I've done both in the past

    I Dont know about Cargo
  • 0
  • 1
    @Grumm I think there is an effort underway to migrate SwiftUI (or just something similar to SwiftUI) to Windows by the Browser Company in order to bring Arc browser to Windows. I haven’t looked into it too much though. Info on YouTube
  • 0
    @fatenuller Nice, but that is again mostly for apps.

    So there is no modern new 'Winform' alternative.

    Sure I could use Uno platform or MAUI, but I don't care about compatibility. And winforms are just ugly in Windows 11.
  • 0
    C# is just Microsofts Version of JAVA.
Add Comment