News for hackers. Stuff that matters.
Re:The IDE Divide (2004) by meredydd on Friday November 13, 2020 @06:59AM (#25081359)
This article is dated because these days, even the people who exclusively use vim are mostly "tool mavens" - because most people are driving the Web, and the only way to make the Web bearable is to load yourself up with huge toolchains.

It's the worst of both words: Even if you're using vim, you spend an awful lot of your time using (or debugging) tools like webpack, minifiers, live-reloaders, and of course the in-browser dev tools.

BUT, you still don't get the benefits of an old-school IDE, because no IDE can reason about a modern web stack reliably! Take something basic like click-to-code: "where is this attribute defined?" The web is such a Turing Tarpit[0] that, if that data comes from the backend, that question is literally undecidable. Between the database and that JS object are ORMs, backend frameworks, REST requests, microservices, JS frameworks, templating engines, and possibly CSS frameworks as well. At best, you can build good IDEs within one layer of the stack (I love WebStorm, and the VSCode+code-server stuff is cool - but they break down completely at stack boundaries).

[0] https://en.wikipedia.org/wiki/Turing_tarpit

And it's been like this for so long that new web developers don't even remember what it was like to have full autocomplete, everywhere in your project!

I have a dog in this fight - I founded a startup (https://anvil.works) to make web-dev tools, and we realised that to reason automatically about a web app you basically have to replace the whole stack. We went with Python - by doing Python front-end and back-end, replacing REST calls with function calls, and building a UI toolkit rather than generating HTML, it turns out you can have actual, real click-to-code, across your whole program. And full-stack autocomplete (I gave a talk about that one[1]).

If the Web is going to turn us all into tool mavens, at least we should do it right!

[1] https://anvil.works/blog/python-autocompleter-pycon17

Re:The IDE Divide (2004) by part1of2 on Friday November 13, 2020 @07:44AM (#25081572)
> because most people are driving the Web, and the only way to make the Web bearable is to load yourself up with huge toolchains.

Are you talking about browser app toolchains? If so, I disagree. HTML and CSS are all you need, with some vanilla JS. For example, HN users love the fact that it’s fast and responsive. It doesn’t use huge toolchains of React or whatever

Using huge tool chains is making the internet slower and more painful for devs & users.

But if you’re talking about dev tool chains for templating, I follow the “less is more” here too. Some templating tools can speed a dev up, but learning a dozen tools is really a waste of time

Re:The IDE Divide (2004) by oblio on Friday November 13, 2020 @07:59AM (#25081689)
Yeah, but show HN to regular users. Most of them would be appalled by the looks, the way it is structured, the simplicity.

Users say they want simplicity like they say they want to start diets: everyone says they want it but when they're actually forced to do it, nobody wants it for more than 5 minutes.

Re:The IDE Divide (2004) by swiley on Friday November 13, 2020 @08:41AM (#25082004)
I really don't think so. The reason other sites look so bad is more marketing/AB testing centered around engagement, not because users like it.

Most users hate or fear what software does but don't think things can be better.

Re:The IDE Divide (2004) by brazzy on Friday November 13, 2020 @10:17AM (#25083098)
> For example, HN users love the fact that it’s fast and responsive.

It can be that because it is downright ascetic.

It's easy to be fast and responsive and at the same time eschew all the fancy toolchainy stuff when you have very few features.

Re:The IDE Divide (2004) by jhardy54 on Friday November 13, 2020 @11:23AM (#25083859)
Counter-point: I've built a P2P social media application that doesn't use any client-side JS. There are challenges, mostly around composing rich text (how is <textarea/> the best we have?!) but it's entirely possible to ship features without front-end JS.
Re:The IDE Divide (2004) by charrondev on Friday November 13, 2020 @08:43AM (#25082017)
IDK, I started a blog recently with server rendered react and the thing builds on <15s for a production build (from the time the GitHub we hook runs a push to me seeing the new site deployed), and in ~2s for a local dev build.

It also loads lightning fast.

https://charron.dev

This is using next.js and preact.

Re:The IDE Divide (2004) by istjohn on Friday November 13, 2020 @11:10AM (#25083710)
The menu is broken for me on Android Brave.
Re:The IDE Divide (2004) by charrondev on Friday November 13, 2020 @12:33PM (#25084915)
Unfortunately I'm unable to reproduce (BrowserStack doesn't seem to have Brave). Works in Chrome, Firefox, UC Browser, and Samsung internet from what I can see though.
Re:The IDE Divide (2004) by SippinLean on Friday November 13, 2020 @01:13PM (#25085459)
> HTML and CSS are all you need, with some vanilla JS

For a modern web application?! Absolutely not, the things the OP mentioned (webpack, 1000 node packages etc) are essential.

Even on the IDE side, I have...100 extensions installed?

Re:The IDE Divide (2004) by vagrantJin on Friday November 13, 2020 @05:16PM (#25088175)
> For a modern web application?! Absolutely not, the things the OP mentioned (webpack, 1000 node packages etc) are essential.

Till this very day I can count a handful of devs who can give me a reasonable use case for react and why evey website should be a webapp. Im bad guy uno at every dev meeting because I have the audacity to suggest that not every webapp is facebook or something similarly complicated.

God bless NPM but Ill be damned if I dont get heart palpitations at the node modules ever increasing bundle. Its all magic or filth under the carpet. Magic is good when sprinkled and self contained but not when its all made of magic.

So Im detoxing and going back tk life without node modules and using jquery a lot more.

Re:The IDE Divide (2004) by HelloNurse on Friday November 13, 2020 @09:37AM (#25082581)
Huge toolchains don't imply complex projects. I'm writing a browser extension with Webpack, the Firefox browser extension tool and one or two libraries; Node.js has about 1000 packages.
Re:The IDE Divide (2004) by sevensor on Friday November 13, 2020 @09:37AM (#25082570)
Not all programming is web programming, and not all users of text editors are trying to turn them into IDEs. I think the article itself was insightful in identifying two camps of programmers with minimal overlap. Most of the discussion I've seen since we all got trolled by StackOverflow a couple of days ago has been members of the two camps talking past each other. More than anything else I've read lately, this article has helped me understand how the other side sees the world.
Re:The IDE Divide (2004) by dgb23 on Friday November 13, 2020 @07:24AM (#25081455)
I think this is the right approach. Use one language to rule them all, integrate the whole UI related stack into it, from backend to frontend, and drive the integration by well defined protocols (data/types).

Python seems to be a sensible choice. Others, that are already almost there, would be JS, Rust, Clojure, and I think people do similar things in Haskell as well.

Re:The IDE Divide (2004) by boogies on Friday November 13, 2020 @09:35AM (#25082547)
I think the Nim devs want it to work for this too:

https://news.ycombinator.com/item?id=24805006

> Both the servers and the client running in your browser is written in Nim. The client uses Nim's JS backend and the server Nim's C backend. The two share code to ensure the game simulation is the same across both. Communication happens over websockets.

> It's been a lot of fun working on this and I cannot imagine another language being as flexible as Nim to make something like this possible.

Re:The IDE Divide (2004) by localhost on Friday November 13, 2020 @10:26AM (#25083211)
While I love Python, and I love the idea of autocomplete everywhere for everything, I'm curious why not do the same thing, but for Java/TypeScript?

PS I really like the layout of your transcript. I would imagine that was done by hand? It would be especially cool to auto-generate transcripts like this. Suggestion - making the images clickable so that we can see the code frags better.

Re:The IDE Divide (2004) by meredydd on Friday November 13, 2020 @10:57AM (#25083562)
1. The people who are most "shut out" by the complexity of the web do not, by definition, speak Javascript. These are the folks who need Anvil most! Most people who speak JS already know web-dev (why else would you learn JS?)

2. Python is the most popular language that isn't JS. It's used for teaching almost everywhere, it's used for data science, it's used on the back-end, even embedded code...

3. We wanted to start with an "island of sanity". If you google "how to do X in JS", you'll find StackOverflow and end up tweaking a DOM node, or making an HTTP request, or grabbing something else that breaks the abstraction and brings back the traditional Web hairball.

We want to make it easy to escape, of course (I wrote an whole essay about that[0]), but not so easy that you wander out of it without realising, and then find that the autocompleter no longer understands all of your project.

[0] https://anvil.works/blog/escape-hatches-and-ejector-seats

4. People who speak JS have already invested in the web - they've paid the price, got the scars, and probably have more than a little of their professional capital invested in "being a web developer". We want to win them over in the end, of course, but they would have been a very hard target market for an MVP!

Re:The IDE Divide (2004) by localhost on Friday November 13, 2020 @02:23PM (#25086297)
Good on you for focusing on establishing a beachhead customer! Hope things work out with that initial cohort.