News for hackers. Stuff that matters.
Re:A framework that makes things worse on purpose by polka_haunts_us on Thursday January 28, 2021 @06:49PM (#25951239)
Making it look like you're doing things poorly when you're doing exactly what you intend to do is a real skill. It's the basis of a lot of circus acts. Making your files extremely large to mock modern web dev is maybe a little bit esoteric of a joke to be compared to someone pretending like they can't control a unicycle though.

What this comparison says about modern web dev I'll leave as an exercise to the reader.

Re:A framework that makes things worse on purpose by austincheney on Friday January 29, 2021 @06:36AM (#25956255)
It’s all a matter of perspective. When I saw the title I immediately thought Angular JS.

Many, possibly most, UX developers cannot actually do their jobs. Instead they are hired to use some crappy framework to outsource the required competency. For many of these people dependency on some bullshit framework is the expected reality and anything different must then be poor execution... all objective metrics aside.

Re:A framework that makes things worse on purpose by ng12 on Friday January 29, 2021 @11:54AM (#25959409)
Yeah, I see it all the time. Just the other day I found out some coworkers were using this fancy framework called "C" to build their programs. The produced assembly was way overcomplicated and impossible to read. Talk about job security!
Re:A framework that makes things worse on purpose by austincheney on Friday January 29, 2021 @01:38PM (#25960711)
Forcing people to perform in ways that are measurably inefficient by several orders of magnitude and punishing people who step out of line is the very nature of imposing job security.

I intentionally stare out of the window letting my life drift away while at the office only because I value my job security. If I wanted to do original innovative work for compensation I wouldn't be a UX developer.

Re:A framework that makes things worse on purpose by laurent92 on Thursday January 28, 2021 @07:07PM (#25951454)
Have you tried http://vanilla-js.com/ ?

It’s a framework with a math library and ajax embedded, 0 bytes minified, 25 bytes compressed as zip.

Re:A framework that makes things worse on purpose by ASalazarMX on Thursday January 28, 2021 @08:54PM (#25952612)
This is really funny, it even lets you download it.

I'm not familiar enough with JavaScript, is this modern or obsolete JS?

Re:A framework that makes things worse on purpose by styfle on Thursday January 28, 2021 @09:50PM (#25953124)
This parody website is probably close to 10 years old so it’s a bit outdated.

But the premise still stands, just needs more feature checkboxes :)

Re:A framework that makes things worse on purpose by thunderbong on Thursday January 28, 2021 @10:44PM (#25953584)
What? You mean it's not been maintained and there is no latest version? I've been using this on many of my sites, which I'm sure now is full of security holes and will break in modern (or ancient) browsers. Please someone suggest an alternative.
Re:A framework that makes things worse on purpose by isaacimagine on Friday January 29, 2021 @01:19AM (#25954633)
I personally use http://nojs.io/
Re:A framework that makes things worse on purpose by StavrosK on Friday January 29, 2021 @06:53AM (#25956349)
It only has 103 stars on Github, can't be that good.
Re:A framework that makes things worse on purpose by mattgreenrocks on Thursday January 28, 2021 @06:48PM (#25951221)
All they need now is a Twitter account, a GitHub org, and a mandatory CLA, then it’ll be a real framework.

To their credit, they have the requisite number of emojis to be perceived as relevant. And I applaud that it can be grokked relatively quickly.

Re:A framework that makes things worse on purpose by Nextgrid on Friday January 29, 2021 @01:04AM (#25954562)
Don’t forget a “code of conduct” and “diversity and inclusion”.
Re:A framework that makes things worse on purpose by bzb6 on Thursday January 28, 2021 @08:33PM (#25952449)
And the footer has to say “Made with (heart emoji) in (hip, expensive city)”
Re:A framework that makes things worse on purpose by funkisjazz on Thursday January 28, 2021 @07:02PM (#25951381)
> they have the requisite number of emojis to be perceived as relevant
Re:A framework that makes things worse on purpose by corytheboyd on Thursday January 28, 2021 @08:14PM (#25952256)
Say it with me everyone: it is okay to use the right tool for the right job. Sometimes a JS framework is the right tool, and sometimes it’s not. The solution is not destroy all frameworks.

Anyway, I get that this is a joke, but it’s just been done so many tiiiiimmmeeessss

Re:A framework that makes things worse on purpose by ttt0 on Thursday January 28, 2021 @08:39PM (#25952484)
We unfortunately don't have enough power to destroy all frameworks, so you might be saying this to the wrong people. Say that to those who abuse them instead.
Re:A framework that makes things worse on purpose by Tade0 on Thursday January 28, 2021 @06:51PM (#25951265)
I don't need a new framework for that.

The app I'm currently working on clocks in at 75MB of JS before minification.

That's enough for the browser to take seconds to parse the whole thing.

Re:A framework that makes things worse on purpose by bigiain on Thursday January 28, 2021 @08:11PM (#25952211)
> I don't need a new framework for that.

Ahhh, you have some of the same front end dev team I have, huh?

Re:A framework that makes things worse on purpose by core-questions on Thursday January 28, 2021 @07:57PM (#25952080)
Step back and realize that entire operating systems with browsers that can run JS can fit into 1.44 MB.
Re:A framework that makes things worse on purpose by hawkice on Thursday January 28, 2021 @06:58PM (#25951332)
Oh my. Oh my.

Please tell me there's some dead code elimination step in your pipeline too.

Re:A framework that makes things worse on purpose by Tade0 on Thursday January 28, 2021 @07:15PM (#25951577)
Here's the kicker: none of this is dead code. Vendor libraries alone take 28MB.

Apparently one of the second order effects of rolling your own components is having enormous bundles because there's no incentive to minimize them.

3rd party libraries on the other hand usually go out of their way to be as small as possible.

I'm doing my best not to be sarcastic about this.

EDIT: we treeshake the bejesus out of it, but it's possible that there's some code duplication going on, because the build pipeline is, ahem, custom made.

Re:A framework that makes things worse on purpose by ratww on Thursday January 28, 2021 @08:11PM (#25952212)
What tech do you use? Also which kind of app is it? Does it have some special feature that causes the code bloat, or is it just lots of screens?
Re:A framework that makes things worse on purpose by Tade0 on Thursday January 28, 2021 @08:32PM (#25952439)
Just Angular 10 and associated libraries. The app itself is a run-of-the-mill "tables, details and forms" SPA, but there are indeed a lot of screens.

I see no reason why something like this should take so much space, but here we are.

Re:A framework that makes things worse on purpose by ratww on Friday January 29, 2021 @06:05AM (#25956122)
Ah, gotcha! Thanks for answering.

I've seen similar situations before. In my case it was mostly due to having a team that is larger than than necessary. Having multiple UI designers with differing opinions, developers that don't question redundancy in UI (or don't have time to check), managers that don't coordinate, and just communication problems in general.

This led to a lot of reimplementation and duplicate code. In the end they changed the frontend framework a couple times, but the issue started creeping up again.

Re:A framework that makes things worse on purpose by laurent92 on Thursday January 28, 2021 @07:06PM (#25951430)
The dead code elimination step just drops the framework?
Re:A framework that makes things worse on purpose by rexpop on Thursday January 28, 2021 @07:36PM (#25951875)
That's the joke.
Re:A framework that makes things worse on purpose by woah on Thursday January 28, 2021 @07:14PM (#25951559)
Imagine a C compiler that produced sarcastically formatted assembly
Re:A framework that makes things worse on purpose by OskarS on Friday January 29, 2021 @09:15AM (#25957391)
Now I suddenly wonder what sarcastic assembly looks like! XOR swaps instead temporary variables everywhere? Jump tables for simple if/elses? Moving the stack pointer up and down for no reason, just because you can?
Re:A framework that makes things worse on purpose by cnasc on Friday January 29, 2021 @10:47AM (#25958463)
Re:A framework that makes things worse on purpose by dr_kiszonka on Saturday January 30, 2021 @12:29AM (#25966460)
Would a framework be every language that complies to another for execution? Genuine question.
Re:A framework that makes things worse on purpose by masswerk on Thursday January 28, 2021 @08:10PM (#25952202)
Even more true for an assembler. I guess, there's urgent need for a transpiling 6502 tool chain.
Re:A framework that makes things worse on purpose by mattowen_uk on Friday January 29, 2021 @02:41AM (#25955023)
Did anyone else look at the embedded .js file? It's clearly just a load of junk cribbed from elsewhere... but this bit made me chuckle:

"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"

Re:A framework that makes things worse on purpose by afraca on Friday January 29, 2021 @03:08AM (#25955165)
I thought it was from the React codebase, but it's differently named there: https://github.com/facebook/react/blob/b2ca3349c27b57b1e9462...
Re:A framework that makes things worse on purpose by durnygbur on Friday January 29, 2021 @03:24AM (#25955241)
window._PLAINTEXT_PASSWORD_UNDERSCORE_MEANS_ITS_PRIVATE
Re:A framework that makes things worse on purpose by ArchIsGreat on Thursday January 28, 2021 @06:46PM (#25951195)
Sometimes I wonder what the point of those web frameworks are. I find them harder to use than plain HTML/CSS/JS.
Re:A framework that makes things worse on purpose by 5560675260 on Friday January 29, 2021 @08:25AM (#25956988)
Frameworks are excessive for documents and presentations. They start to shine in development of apps, where you have to wrangle views, manage data bindings and react to user input in nontrivial ways. It's possible to roll out your own boilerplate and utility methods, but it's almost always counterproductive - this is not a part of task you have at hand and you'll miss on structure and conventions invented by framework team that really had resources to do it.
Re:A framework that makes things worse on purpose by Zelphyr on Thursday January 28, 2021 @07:50PM (#25952016)
Part of the downvotes to your comment may be coming from the fact that this framework is (I'm assuming?) a joke.

Otherwise, I completely agree with you. The last few projects I've worked on I used vanilla HTML/CSS/JS and I found it so much better than using any of the popular front-end frameworks. I didn't have megabytes of dependencies before a single line of production code was written. I didn't have to spend time trying to understand any Webpack incantations.

Re:A framework that makes things worse on purpose by nucleardog on Friday January 29, 2021 @06:22AM (#25956198)
Honestly this stuff all just makes me feel really old.

In a past life that wasn't even that far away, I implemented single page sites with smooth transitions and all sorts of fun stuff in a few lines of CSS. There was like 1kB of JS thrown on top to add a bit of "nice to have" functionality.

I implemented an entire clone of Flappy Bird in like 50kB. The bulk of that was a polyfill so it worked on IE8.

I implemented a curling game that would open up a webcam in the background and continuously capture and process images to try and detect shapes you'd drawn on paper. When it detected one it would trace the shape and decompose it into a convex shape as that's all the physics engine supported, then render this on a 65" touchscreen coffee table and let you curl with your custom shaped rock with realistically calculated physics including an appropriate density for your curling rock based on the volume of the same you'd created. It would calculate scoring and use websockets to communicate that to another device which was hooked up to a TV that displayed a leaderboard. This was all in about 500kB, and the bulk of that was the physics engine (what could've been a "computer vision" library was like a kilobyte of vanilla JS). There was no effort made to prune unused code or anything because it was never loaded over the network or required to be optimized for load times and I only had a week to build it.

I honestly cannot even begin to comprehend how we're shipping static websites with 1MB+ of JS. Damn kids, get off my lawn.

Re:A framework that makes things worse on purpose by spacemanmatt on Thursday January 28, 2021 @10:32PM (#25953499)
Good times. I used to replace .jsp with .aspx at the reverse-proxy.
Re:A framework that makes things worse on purpose by hestefisk on Friday January 29, 2021 @08:11AM (#25956873)
Back in t get late 90ies I wrote my markup in XML and be then used mod_perl to transform it to XHTML using XSLT on the fly. But to be extra 1337, I renamed my index.html file to index.xml,
Re:A framework that makes things worse on purpose by spacemanmatt on Friday January 29, 2021 @08:14AM (#25956894)
I contributed to a monstrosity based on Xalan and XSLT at runtime. What a beast. I don't know how we planned to support 5 concurrent users.
Re:A framework that makes things worse on purpose by hestefisk on Friday January 29, 2021 @08:12AM (#25956880)
Btw the mod_perl XML server was called AxKit. I don’t think anyone even remembers it.
Re:A framework that makes things worse on purpose by krylon on Friday January 29, 2021 @08:16AM (#25956919)
I do remember the name, but I never used it or got into direct contact with it.
Re:A framework that makes things worse on purpose by chromatic on Friday January 29, 2021 @03:07PM (#25961731)
I remember it!
Re:A framework that makes things worse on purpose by krylon on Friday January 29, 2021 @08:21AM (#25956959)
Even though this is a joke (made me chuckle), I have a hunch somewhere, someone is going to use this for real, for job protection or to appease that manager who insists that static HTML is sooooo 2009.
Re:A framework that makes things worse on purpose by behnamoh on Thursday January 28, 2021 @07:20PM (#25951649)
The sarcasm is real: the web has gotten out of control by a series of overly bloated framework designs that have resulted in a domino effect that has made the web slower, less user friendly, and buggier.
[dead]
Re:A framework that makes things worse on purpose by durnygbur on Friday January 29, 2021 @01:50AM (#25954782)
Every problem can be solved with Angular, Observables, ngrx and a 5mln EUR conference for managers. Everything with Azure k8s - locally including mobile, and on the cloud. Simply disregard the feedback of technical grunts who will merely implement, although complain how little progress they make.
Re:A framework that makes things worse on purpose by ng12 on Friday January 29, 2021 @01:57AM (#25954811)
Exactly. If a simple website is overloaded with JS it's because you're the product not the user.
Re:A framework that makes things worse on purpose by etaioinshrdlu on Friday January 29, 2021 @01:30AM (#25954692)
It loads too fast for me. It should take at least 10 seconds to fully load on a fast connection. It should also hog the CPU a little bit harder.
Re:A framework that makes things worse on purpose by silon42 on Friday January 29, 2021 @08:22AM (#25956964)
But it is a blank page...
Re:A framework that makes things worse on purpose by winrid on Friday January 29, 2021 @01:33AM (#25954704)
I recently tried to make as terrible of an app backend as possible: https://github.com/winrid/terrible-express-app

Challenge: figure out how it starts, and how content is rendered.

(It's not that hard, but a little funny)

Re:A framework that makes things worse on purpose by durnygbur on Friday January 29, 2021 @01:40AM (#25954734)
Love the .idea directory in the repository (despite large .gitignore) and how you lie about package-lock.json. PwC, or Accenture would charge 5mln EUR for it and be perfectly self-confident about it.
Re:A framework that makes things worse on purpose by chasd00 on Friday January 29, 2021 @07:44AM (#25956663)
Yeah and at Accenture there would be one person in the whole company that knows anything about the internals. Oh, and they left the firm 3 months ago.
Re:A framework that makes things worse on purpose by durnygbur on Friday January 29, 2021 @08:25AM (#25956995)
> Oh, and they left the firm 3 months ago.

Hey, that's a EUR 300/h worth senior consultant!

Re:A framework that makes things worse on purpose by karmakaze on Thursday January 28, 2021 @09:01PM (#25952660)
This is perfect. I can use plain HTML and make anyone think I'm using a late great framework.