clj-on-windows

seancorfield 2022-02-18T00:33:35.704569Z

@leif.eric.fredheim Depending on people's background, I tend to recommend using WSL2 on Windows so that you can just follow all the macOS/Linux instructions and don't have to deal with quoting issues on Powershell and lot of libraries and tutorials etc out there that don't work on Windows (or have READMEs with instructions that are macOS/Linux-specific).

leifericf 2022-02-21T17:00:02.195529Z

@seancorfield Will do!

seancorfield 2022-03-29T15:42:09.850599Z

@santosx99xx For Windows devs that would otherwise use cmd.exe or Powershell, i.e., are not afraid of the command-line (although I would encourage all developers to get comfortable with the command-line at some point). I don't know what to suggest for Windows developers who've never done anything but point'n'click in a UI because I just don't have experience with that (my computing experience has always been some flavor of *nix dating back to the late '70s).

๐Ÿ‘ 1
2022-03-30T06:05:04.516629Z

I think imma give wsl2 a shot. I thought you were going to say something crazy like 20+ years experience, and can write their own compiler while on 5 grams of mushrooms.

leifericf 2022-02-25T08:16:13.835979Z

@seancorfield Soโ€ฆ 13 people signed up for the workshop, but only 2 people showed up. And they were both experienced developers who used macOS, so I wound up skimming most of my slides for beginners, and the workshop tasks took probably less than 15 minutes ๐Ÿ˜… They found it useful to see how to create a barebones app in Clojure, and how to use the interactive development workshop.

seancorfield 2022-02-25T08:17:31.374679Z

Free workshop? Yeah, 15-20% is about expected. Sounds like it went well so 'grats on that!

๐Ÿ‘ 1
littleli 2022-02-18T12:06:28.836379Z

the issue with WSL2 is simply that it just is not available to everyone.

littleli 2022-02-18T12:07:44.343929Z

And narrative "just use WSL2" does not help in any way to write portable programs. That's why I personally don't like this advice at all.

leifericf 2022-02-18T15:07:38.018219Z

My main concern is a beginner-friendly editor and development experience. My workshop will focus on installing Clojure, and getting started with Visual Studio Code and Calva. How to evaluate expressions in the REPL without leaving the editor. Very basic stuff. Then providing some inspiration on some avenues to explore next, i.e. building web apps with Luminus, creating art with Quil, creating music with Overtone, etc. I donโ€™t know whether installing Clojure via WSL2 will make that experience smoother, but I suspect it would be more tricky to get Clojure working in Visual Studio Code in that way.

littleli 2022-02-18T15:11:28.057389Z

@leif.eric.fredheim My 5 cents about this topic can be found here: https://github.com/littleli/scoop-clojure/wiki/Getting-started or here: https://github.com/littleli/scoop-clojure/wiki/Getting-started-VERY-QUICKLY

๐Ÿ‘€ 1
leifericf 2022-02-18T15:13:18.376679Z

@ales.najmann Thanks! Do you happen to know if that setup will work โ€œautomagicallyโ€ in Visual Studio Code with Calva? If it will be detected and work with the jack-in functionality via deps.edn, etc.

littleli 2022-02-18T15:17:30.717359Z

Yes. Calva + VSCode works well on Windows.

๐Ÿ‘ 1
littleli 2022-02-18T15:23:02.816989Z

Jack-in should be smooth. Where you can hit a wall little bit is: โ€ข if you want standalone repl: on Windows only use https://github.com/bhauman/rebel-readline, as it contains jline support and that one works good on Windows too. โ€ข quote escaping resolution can be very difficult to resolve once you meet with it - was mentioned by @seancorfield โ€ข working with paths on Windows is a bit strange Also there is a similar guide based on my project here: https://practical.li/clojure/clojure-cli/install/clojure-cli.html#windows It's probably a lot more famous ๐Ÿ™‚

๐Ÿ‘ 1
seancorfield 2022-02-18T17:10:14.843609Z

@leif.eric.fredheim I'll be interested to hear an "experience report" after you've run the workshop -- I'd love to hear how the students got on, comparing macOS/Linux to Windows (and % of each type of student at the workshop), if you don't mind sharing.

๐Ÿ‘ 1
2022-03-29T05:10:53.229669Z

Just curious, what background would you recommend WSL2 to?

littleli 2022-03-30T07:11:48.342129Z

it's actually really cool what MSFT did there.