7 ms·
A framework that makes things worse on purpose
- ArchIsGreat 6y agoSometimes I wonder what the point of those web frameworks are. I find them harder to use than plain HTML/CSS/JS.
- medicineman 6y agoFrom some comments I read around here regarding the greatness of JavaScript, it would seem that a key benefit is that it allows more non-programmers to become developers. So, since I think it follows, one could say the benefit of those frameworks is that it allows more specialization and make-work for the aforementioned hoi polloi.
- Zelphyr 6y agoPart 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.
- nucleardog 6y agoHonestly 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.
- 5560675260 6y agoFrameworks 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.
- mattgreenrocks 6y agoAll 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.
- funkisjazz 6y ago> they have the requisite number of emojis to be perceived as relevant
- bzb6 6y agoAnd the footer has to say “Made with (heart emoji) in (hip, expensive city)”
- Nextgrid 6y agoDon’t forget a “code of conduct” and “diversity and inclusion”.
- polka_haunts_us 6y agoMaking 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.
- austincheney 6y agoIt’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.
- ng12 6y agoYeah, 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!
- austincheney 6y agoForcing 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.
- Tade0 6y agoI 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.
- hawkice 6y agoOh my. Oh my. Please tell me there's some dead code elimination step in your pipeline too.
- laurent92 6y agoThe dead code elimination step just drops the framework?
- Tade0 6y agoHere'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.
- ratww 6y agoWhat 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?
- Tade0 6y agoJust 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.
- laurent92 6y agoHave you tried http://vanilla-js.com/ http://vanilla-js.com/ ? It’s a framework with a math library and ajax embedded, 0 bytes minified, 25 bytes compressed as zip.
- ASalazarMX 6y agoThis is really funny, it even lets you download it. I'm not familiar enough with JavaScript, is this modern or obsolete JS?
- styfle 6y agoThis 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 :)
- thunderbong 6y agoWhat? 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.
- isaacimagine 6y agoI personally use http://nojs.io/ http://nojs.io/
- woah 6y agoImagine a C compiler that produced sarcastically formatted assembly
- masswerk 6y agoEven more true for an assembler. I guess, there's urgent need for a transpiling 6502 tool chain.
- OskarS 6y agoNow 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?
- cnasc 6y agohttps://github.com/Battelle/movfuscator https://github.com/Battelle/movfuscator
- dr_kiszonka 6y agoWould a framework be every language that complies to another for execution? Genuine question.
- behnamoh 6y agoThe 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.
- bigiain 6y agobUT WE cAn PeRSonAlIzE Your AdS!!!
- durnygbur 6y agoEvery 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.
- ng12 6y agoExactly. If a simple website is overloaded with JS it's because you're the product not the user.
- corytheboyd 6y agoSay 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
- ttt0 6y agoWe 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.
- deleted 6y ago[deleted]
- karmakaze 6y agoThis is perfect. I can use plain HTML and make anyone think I'm using a late great framework.
- spacemanmatt 6y agoGood times. I used to replace .jsp with .aspx at the reverse-proxy.
- hestefisk 6y agoBack 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,
- hestefisk 6y agoBtw the mod_perl XML server was called AxKit. I don’t think anyone even remembers it.
- spacemanmatt 6y agoI 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.
- etaioinshrdlu 6y agoIt 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.
- silon42 6y agoBut it is a blank page...
- winrid 6y agoI recently tried to make as terrible of an app backend as possible: https://github.com/winrid/terrible-express-app 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)
- durnygbur 6y agoLove 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.
- mattowen_uk 6y agoDid 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"
- afraca 6y agoI thought it was from the React codebase, but it's differently named there: https://github.com/facebook/react/blob/b2ca3349c27b57b1e9462944cbe4aaaf76783d2b/src/React.js#L67 https://github.com/facebook/react/blob/b2ca3349c27b57b1e9462...
- durnygbur 6y agowindow._PLAINTEXT_PASSWORD_UNDERSCORE_MEANS_ITS_PRIVATE
- krylon 6y agoEven 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.