News for hackers. Stuff that matters.
Re:Escaping from Anaconda's Stranglehold on macOS by moi2388 on Monday September 02, 2024 @01:05AM (#41422740)
How in the world is c# too complicated? Console app, top level statements, vs code. As easy as Python. Easier because your env isn’t messed up.

If they can’t manage that they have no business doing data science or something similar to begin with

Re:Escaping from Anaconda's Stranglehold on macOS by cuddlyogre on Monday September 02, 2024 @09:56AM (#41425416)
You sound like you have been doing this for way too long to know what it takes to teach beginners.
Re:Escaping from Anaconda's Stranglehold on macOS by neonsunset on Monday September 02, 2024 @10:55AM (#41425843)
Not for complete but for beginners lightly familiar with programming it is overall not difficult to teach the basics, often easier than to stubborn seniors who want to do it their way only :)

    var start = "commtext c00\">";
    var end = "</div>";

    using var http = new HttpClient();
    var page = await http.GetStringAsync("https://news.ycombinator.com/item?id=41425416");

    var commStart = page.IndexOf(start) + start.Length;
    var commEnd = page.IndexOf(end, commStart);

    Console.WriteLine(page[commStart..commEnd]);
or

    var host = WebApplication
        .CreateBuilder()
        .Build();

    host.MapGet("/", () => "Hello World");
    host.Run("http://+:8080");
Re:Escaping from Anaconda's Stranglehold on macOS by moi2388 on Tuesday September 03, 2024 @11:55AM (#41436171)
Not at all. I still teach interns and until 2 years ago complete beginners.

I can teach them a console app with top level statements and have it running before they have installed a Python virtual environment.