Live data from Hacker News

Zwitterion: a web dev server that lets you import anything

github.com

91–100 of 127 posts

Re: Zwitterion: a web dev server that lets you import anything

#91
post #67
post #56

"lets you import anything" It doesn't seem to support importing css or image files. I don't use them, but the webpack css-loader and image imports seem popular.

nor common.js

I don't plan on supporting common.js. See this issue for CSS and images: https://github.com/lastmjs/zwitterion/issues/265

I will most likely add those soon. I will also be exposing a plugin system (currently it's just internal) that allows for others to add functionality that Zwitterion core will not support.

Re: Zwitterion: a web dev server that lets you import anything

#92

Good old days of web development didn’t ever disappear - you can still include normal JS code directly through the tag if you want.

True, but you lose the enormous benefits of things like TypeScript and the latest JS features. We need the good old days of our dev process combined with the good new days of language features

Re: Zwitterion: a web dev server that lets you import anything

#93
post #84

I'm confused by the tagline: ”Zwitterion lets you get back to the good old days of web development." Like, what made the good days go bad? What is this supposed to be better than?

My 2c about what this is referring to:

In "the good old days", you would just import a script using a normal tag, it would do stuff on the page, and you're done.

What a lot of people refer to as "modern" web front-end development, there is a whole toolchain needed to compile and prepare your site for deployment: babel, webpack, etc. While these front-end tools solve a host of problems, they also introduce a whole set of new ones, mainly around complexity and the fact that what is actually going on "under the covers" is a lot more opaque to the front-end developer.

Re: Zwitterion: a web dev server that lets you import anything

#94
post #41

Earlier quoted context omitted.

Come on, it clearly says it's not a bundler. > Also...Zwitterion is NOT a bundler. It eschews bundling for a simpler experience.

It does, but the title of the HN post says "Webpack killer." That seems misleading.

Thanks for the feedback, seems like sourcemaps will be needed, shouldn't be a problem: https://github.com/lastmjs/zwitterion/issues/266

Zwitterion is not a bundler. I believe the world will move away from bundling, and that Zwitterion can replace Webpack eventually.

Re: Zwitterion: a web dev server that lets you import anything

#95
post #79

Earlier quoted context omitted.

Hmm...excellent feedback! Thank you. I hope I wasn't dishonest with the title. I do believe Zwitterion has the potential to rival and replace Webpack eventually.

Zwitterion already would have application today; for example, you just want a simple dev server without writing a config, but maybe you want to use typescript, too. My apologies if the original comment seemed too critical. For my colleagues, Webpack has been a thorn in their side; I've accepted it and learned to wield it well. There is definitely demand out there for something simpler.

No you're good! I just want to come through this with my integrity intact. Also, the browser-compatible Node.js libraries you spoke of above, those can be added to Zwitterion as well. I had something similar done in a previous version, but I removed it. All of these comments are going to be Zwitterion's roadmap, so thanks again.

Re: Zwitterion: a web dev server that lets you import anything

#96
post #12

Can anyone point me to a workflow where the cognitive load is similar to how it was in the good old days? i.e. some thing that does everything for me apart from the bit where I write application and presentation code? That mostly just works and doesn't require me to understand the whole stack. Because when I switch to other languages/environments I can most remain blissfully unaware of the plumbing that keeps the thi…

I encourage you to try Zwitterion, that's exactly its goal

Re: Zwitterion: a web dev server that lets you import anything

#97
post #12

Can anyone point me to a workflow where the cognitive load is similar to how it was in the good old days? i.e. some thing that does everything for me apart from the bit where I write application and presentation code? That mostly just works and doesn't require me to understand the whole stack. Because when I switch to other languages/environments I can most remain blissfully unaware of the plumbing that keeps the thi…

I really like svelte, there is a build/compile step, but it’s pretty much batteries included. I have not needed to touch any of the config files and it “just works”. I got turned off by React and Vue where you need to learn a build tool and write your own config.

Zwitterion could add support for .svelte files rather easily

Re: Zwitterion: a web dev server that lets you import anything

#98

Earlier quoted context omitted.

Ember.js is the highest-cognitive-load framework I've ever used. Not only do you have to understand all the bundling of JS, but you have to understand Ember's naming conventions and project structure, which has a lot of corners and edge cases. The basic problem is that they give you a bunch of configuration points and if you don't know what configuration point to insert your code at, you're either going to be writing…

I'm curious, when was the last time you used it? The Ember of today is a lot different from the Ember of 2015, and even the Ember of 2018. As of a week ago, it's now fully switched to a component library that can be used independently of the framework, and they're now template-only by default. It'd certainly be a shame if you completely gave up on it because of a version still using Ember.View. EDIT: Forgot to mentio…

The last time I used it was early 2017.

However, I also remember that the rapid breaking of reverse-compatibility was also a problem. The fact that Ember is very different over time is a bug, not a feature.

To Ember's credit, their documentation is superb, and that includes detailed migration plans with each release. All the problems I ran into over time were solvable with the "RTFM" strategy. But I would rather use tools that I can keep a fairly-accurate model of the tool in my head, rather than ones that require deep dives into documentation for updates and trivial changes.

Re: Zwitterion: a web dev server that lets you import anything

#99
post #90

>CommonJS (the require syntax) [...] are not supported That's unfortunate, and really limits the packages that can be used with this. Parcel does appear to support `require()`. Is this something you might add in the near future?

If you really want it you can open and issue and try to be convincing...but I'm pretty set on moving forward with just ES modules. I attempted this in the past and compiling CommonJS to ES modules was pretty complicated at the time. I'm not sure it would be worth doing, but perhaps it would be. I want Zwitterion to be forward-facing

Re: Zwitterion: a web dev server that lets you import anything

#100
post #84

I'm confused by the tagline: ”Zwitterion lets you get back to the good old days of web development." Like, what made the good days go bad? What is this supposed to be better than?

My 2c about what this is referring to: In "the good old days", you would just import a script using a normal tag, it would do stuff on the page, and you're done. What a lot of people refer to as "modern" web front-end development, there is a whole toolchain needed to compile and prepare your site for deployment: babel, webpack, etc. While these front-end tools solve a host of problems, they also introduce a whole set…

Exactly
Post reply on HN