Live data from Hacker News

The Front-End Developer's Guide to the Terminal

joshwcomeau.com

21–30 of 61 posts

Re: The Front-End Developer's Guide to the Terminal

#21

Honest question: Why is web development such a shitshow on Windows that that every single 'tutorial' like this doesn't even attempt to make it work, and instead just immediately directs Windows users to WSL?

Because the node ecosystem foremost built with linux/unix targets in mind? WSL provides that.

Re: The Front-End Developer's Guide to the Terminal

#22

Honest question: Why is web development such a shitshow on Windows that that every single 'tutorial' like this doesn't even attempt to make it work, and instead just immediately directs Windows users to WSL?

It's really not! I do development in windows terminal, powershell, ohmyposh and emacs in the terminal.

It took me a bit to get the settings right to mimic zsh/oh my zsh but now it's fine. It's just slower than mac/linux.

Re: The Front-End Developer's Guide to the Terminal

#23
post #9

> It takes years of practice to become a terminal guru And that's where I stopped reading. Point is, you absolutely need not become a terminal guru to use any of these web frameworks.

> Point is, you absolutely need not become a terminal guru to use any of these web frameworks.

He said it was hard to learn everything. He didn't say you have to learn everything.

Re: The Front-End Developer's Guide to the Terminal

#25

Honest question: Why is web development such a shitshow on Windows that that every single 'tutorial' like this doesn't even attempt to make it work, and instead just immediately directs Windows users to WSL?

I don't want to pick on the OP, but as perhaps an old timer, it is surprising to me that this isn't obvious.

Linux and free and open software is what gave birth to the web, and so quite naturally working with it evolves better and more naturally there.

Bill Gates and Windows famously absolutely missed the boat on the Internet nearly entirely. And yes, to this day they're still trying to catch up -- this is evident in their extremely late realization that they were never ever going to beat Linux at this. Hence WSL. (the Linux Subsystem for Windows :) )

Re: The Front-End Developer's Guide to the Terminal

#26

Honest question: Why is web development such a shitshow on Windows that that every single 'tutorial' like this doesn't even attempt to make it work, and instead just immediately directs Windows users to WSL?

Because the Gates administration produced a primitive command interpreter/environment, that was barely acceptable for the original PC. Then the Ballmer administration blocked console improvements on NT for thirty years. Yes, thirty.

Meanwhile the internet was born and raised on Unix and had a competent (not perfect) design for terminals and shells.

The Windows terminal folks have done a bang-up job trying to make up the deficit, and mostly succeeded in the last few years. But it takes more than tools, it takes mindshare.

Was never interested in powershell, but there are other alternatives from WSL, like git-bash and the yori shell, both of which I recommend.

Re: The Front-End Developer's Guide to the Terminal

#27

Honest question: Why is web development such a shitshow on Windows that that every single 'tutorial' like this doesn't even attempt to make it work, and instead just immediately directs Windows users to WSL?

Windows is not great for NodeJs based dev stacks, which are very common for web development these days. Because JavaScript developers tend to write their development tools in JavaScript.

NodeJs is not great on windows because the packages/modules model uses many tiny files and the Windows filesystem, NTFS, is extremely slow for this kind of load. Another problem is compiling C/C++ NodeJS dependencies on windows. It’s possible but few people cares about it and it’s often a source of issues. And the last issue are the windows specific bugs in various packages.

The community that write the nodejs packages kinda doesn’t care about windows, and has no reasons to since WSL.

Re: The Front-End Developer's Guide to the Terminal

#29
post #6

I'm kind of trying to go the other way. I am amazed at how productive great front-end/js-first developers are with even just a browser console --- but I am totally flumoxed by this environment, and have trouble sinking my fingernails into the first ledge on that learning curve. Is there a "terminal developer's guide to front end"?

I use the browser's dev console to try out short JS snippets or for simple on-page scraping. (for longer JS as a scratchpad I use https://runjs.app ). The browser's dev console gives you access to the current page's DOM, plus anything you can do in JS. So stuff like `document.querySelectorAll(".foo")` works. Also `fetch()` works within the page's context. Apart from that, what are some other useful things one can do…

Thanks, maybe some effortful study of the fundamental properties and manipulation of the DOM would be helpful to me.

>> other useful things one can do in the dev console?

There just seems to be a suprising amount of built in stuff in the browser that does more than rendering text/layout.

I participated in some interesting work at a hackathon a while ago that used a web audio component to signal back and forth between various laptops and phones. It was mostly getting hacked together in the browser dev console.

(I'll come back with some code if I can find it...)

EDIT: OK, here it is: https://github.com/cantino/ultrastound

Re: The Front-End Developer's Guide to the Terminal

#30

Honest question: Why is web development such a shitshow on Windows that that every single 'tutorial' like this doesn't even attempt to make it work, and instead just immediately directs Windows users to WSL?

In my experience, everything on Windows is a shitshow compared to Mac or Linux. So much so that it’s genuinely hard for me to believe that people use it on purpose. WSL is great because it’s not Windows!
Post reply on HN