r/ProgrammerHumor • • 3d ago

Meme pythonSlow

Post image
10k Upvotes

404 comments sorted by

View all comments

Show parent comment

9

u/DarthCloakedGuy 3d ago

Nothing made me love Python like learning C# and C++, ngl

5

u/FabioTheFox 3d ago

C# is a lovely language to work with, C++ too if youre willing to do some initial setup to create your perfect template repo

-1

u/DarthCloakedGuy 3d ago

It would be lovely if it had a few more features it lacks that Python has, especially:

  • being able to run from an interpreter so it doesn't need to compile every time you tweak something, obliterating any momentum you might have had
  • something like IDLE allowing bits of code to be tested instantly and manually to verify they work the way you think they ought to
  • automatic garbage control

5

u/anonuemus 3d ago

so you're clueless, got it

2

u/Phailjure 3d ago

The only good languages are scripting langues is certainly a take.

0

u/DarthCloakedGuy 3d ago

The best language would be able to be used either way

3

u/Phailjure 3d ago

Arguably, you can easily invoke c# libraries from powershell if you need a script in .net, you can even explicitly include and run c# inside powershell like:

Add-Type -TypeDefinition @"
using System;
namespace DemoCode
{
    public class DemoClass
    {
        public static void WriteHello()
        {
            Console.WriteLine("Hello");
        }
    }
}
"@
[DemoCode.DemoClass]::WriteHello()

But making c# actually interpreted would require performance concessions.

Anyway, whenever I'm working in c# or c++ I generally just set up an test project that contains only a main function, and replace the contents of that main if I really need to run some code snippet quickly. I've had the same "test" project on my work PC for years, and every few months I swap out the code to check something. Since it's tiny, it compiles and runs in like half a second anyway.

0

u/mxzf 3d ago

Yeah, Java almost had me quit programming as a career before I discovered Python and realized that coding could actually be enjoyable instead of a miserable process.

-2

u/DarthCloakedGuy 3d ago

Yeah there's no excuse for a programming language making what should be a simple Hello World be five lines of code