4 ms·
I used to teach web development and was always frustrated with just how much effort went into setting up a machine. It would be really nice if a developer could
by throwaway284534 5y ago
I used to teach web development and was always frustrated with just how much effort went into setting up a machine. It would be really nice if a developer could just include a script tag in their project that setup a TypeScript compiler inside service worker. I managed to get the basics down, even fixing relative import statements. Requests like localhost:3000/main.tsx would compile and cache on the fly.
There were a few native file system issues I encountered that this would be perfect for!
- tesnirnat 5y agoHow did you end up doing this? Do you mind sharing?
- throwaway284534 5y agoExcuse my mess but feel free to poke around: https://github.com/nirrius/my-server https://github.com/nirrius/my-server
- Tommek 5y agoYes web developing is so hard... sudo apt install apache2 php libapache2-mod-php; vim /var/www/html/index.php
- wmichelin 5y agoI see you haven't done anything in 10 years
- seanp2k2 5y agoPHP is actually pretty great these days, you should have a look at what modern PHP has become if you’ve been out of the loop for a while. Have a look at https://phptherightway.com/ https://phptherightway.com/ if you’re interested.
- phist_mcgee 5y agoThat's like saying that driving a car is easy. Foot on gas. Hands on wheel. Drive to destination. Most things can be simplified to the raw essentials, doesn't mean you're going to achieve a result that people want or need.
- Kaze404 5y agoThis comment is hilarious. It's like saying "being a doctor is so hard... pulls out an amputation saw"
- ric2b 5y agoCool, hello-world is easy, now give me a basic bar chart.
- flanket 5y agoSomething like https://github.com/evanw/esbuild#readme https://github.com/evanw/esbuild#readme ?
- k__ 5y agoI taught web development at a university last summer with CodeSandbox remotely. Worked like a charm.
- peteretep 5y agoVS Code seems to allow this with Dev Containers. I can download a repo with a `.devcontainer.json` and be up and running in virtually no time, in a container.
- maniacalrobot 5y agoJust wait till you try vscode devcontainers with GitHubs new code spaces.
- deviantfero 5y agoI wonder if that is the ideal path though, I was an instructor for a few subjects in my university and sometimes the biggest detractor for students was the lack of familiarity with the tool set used by the language, for example, people sometimes did not know how to freeze their dependencies and use python virtual environments when working with python projects, that lead to problems in collaboration, handing students "magic" prefabricated environments could lead them to believe that that's all there is to it, and explaining that it is not to the student in an edge case might end up being less productive than understanding this process from the get go you could say that the _effort_ to set up a development machine should be part of the learning experience, at least that's what I think. I remember seeing my classmates having their first freelance jobs and editing minified css/javascript directly because they did not know anything about the transpiling that goes on or the toolset surrounding javascript and web development
- seanp2k2 5y agoIt’s even funnier when those same devs who struggle with packaging and distribution in their best language go on to work at Fortune 500 companies and require constant devops assistance to actually make what they wrote work in even a test env. “But it works on my laptop!”
- nsomaru 5y ago“Yes, but we are not shipping your laptop!”