8 ms·
In server-side rendering, clients are sent HTML that they can see immediately I noticed this too. You can put a plaintext file on the server and it gets transf
by mediumsmart 3y ago
In server-side rendering, clients are sent HTML that they can see immediately
I noticed this too. You can put a plaintext file on the server and it gets transferred to the browser pretty fast. You can also put another plaintext file ending with .css on the server and it can make things on the first page move and look really nice just because the browser knows what to do with it.
It’s a neat trick but still second to useful content on the first page (that is the page you get to read, if it lets you).
- arthur_sav 3y agoWhat is this sorcery you speak of?
- lkrubner 3y agoCareful, my child, for those who speak of these things are forced to leave their tribes and wander forever in the deserts and the wastelands.
- gabereiser 3y agoTruth
- deleted 3y ago[deleted]
- phero_cnstrcts 3y agoI thought we had lost that technology.
- the_gipsy 3y agoWe must seek the knowledge of the dwarves.
- xwolfi 3y agoEvery CPU in the whole must regenerate websites from json descriptors. That's how it should always have been.
- bnt 3y agoWhy did we abandon XSLT?
- baq 3y agoNever have. Just renamed it to node yaml.
- froh 3y agonah. xml was much better !!!
- colanderman 3y agoXSLT still works in browsers believe it or not. It's great for making templated static sites.
- masfuerte 3y agoI find XML quite readable but XSL's mix of logic expressed in XML and XML content is just awful. Syntax highlighting does help somewhat though.
- foderking 3y ago[flagged]
- Hitton 3y agoAn elegant technique, for a more... civilized age.
- 0xblinq 3y agoWe should probably create a vault in the Artic and store bits of HTML, just in case... you never know.
- rizky05 3y ago[dead]
- marban 3y agoTo cap it all off, I'll add some dynamism with cgi-bin magic.
- ljm 3y agoWhy use kubernetes and the cloud when you can FTP or rsync your code onto a box? Simpler times.
- spinningslate 3y ago2nd law of Thermodynamics: Entropy increases over time. Quoting[0]: "The entropy of a system can in fact be shown to be a measure of its disorder and of the unavailability of energy to do work." I rather like that - where "work" is the time spent solving first order business problems, and "disorder" is a measure of the energy spent not directly solving the business problem. AKA dealing with accidental complexity. [0] https://www.coursehero.com/study-guides/physics/15-6-entropy-and-the-second-law-of-thermodynamics-disorder-and-the-unavailability-of-energy/ https://www.coursehero.com/study-guides/physics/15-6-entropy...
- danuker 3y agoI deploy my static blog via rsync. I also have Isso [0] on it. No need for a back-end web framework or anything. [0] - https://isso-comments.de/ https://isso-comments.de/
- Scarblac 3y agoI just ssh to the server and edit the code there, I never understood why people need to have two whole environments that they keep in sync. (though seriously, in my dorm room in the 90s, my pentium 90 desktop at the end of my bed had a fixed IP address and was the server...)
- phist_mcgee 3y agoNow add 5 people doing that at the same time and report back on how scaleable that solution is.
- gear54rus 3y agoSure, that's what we'll do! Sounds grand! By the way, we need to add another feature to our page, would you mind looking through that file so there are no class collisions? What do you mean its too long? 50k lines? Pfft.. But at least it 'gets transferred to the browser pretty fast'
- SanderNL 3y agoBe sure not to disturb this apprentice's troubled mind with such highly advanced topics as server side includes and related sorcery. Do not awaken the Ancients for only the pure of heart will survive such an encounter.
- gear54rus 3y agoYeah 10 different files with 10k unorganized lines each is totally different :D I swear you js haters never fail to make me laugh with all the ignorant lamentations.
- vitro 3y agoYou are not your technology.
- gear54rus 3y agoIm14andthisisdeep :) Did I ever say otherwise? Tools are invented to make things more convenient and not learning them properly is not an excuse to whine.
- ricketycricket 3y agoYou are wholesale calling people ignorant over a technology decision. > When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."
- SanderNL 3y ago
- sodapopcan 3y agoMy brother just started learning web development this past year and his mind was blown when I told him you could send HTml over HTtp.
- datavirtue 3y agoPlease help the guy before he gets too far along. Some of us might have to work with him. Seriously though, I saw someone described as a 22 yr old software engineer in an article. There is a better term: "Software Engineering Apprentice"
- sodapopcan 3y agoFor context, he's 40 years old and working in data science after a career switch from another data-heavy field. He's just learning web dev to build internal pages for displaying stuff, so no need to worry :D
- EricMausler 3y agoUnionize already. It's not just about wage, it's about assigning appropriate work to peoples level and having them progress through the most efficient steps to mastery while also completing billable hours
- chasd00 3y ago> ...it's about assigning appropriate work to peoples level and having them progress through the most efficient steps to mastery... that's the opposite of what a union does. A union rewards seniority and nothing else.
- datavirtue 3y agoYeah...OK. Found the union hater.
- fortzi 3y agoNormally workers unionize to improve their poor conditions vs an abusive employer, and when they have little to no ability to find another job for similar/better terms. Is that the situation for software devs where you’re at?
- consoomer 3y agoWhat next? Are you going to tell me you can send down a text file that runs code on a page by page basis?
- swader999 3y agoBlasphemy!
- layer8 3y agoThe problem is that browsers started out as hypertext clients and unwittingly evolved into application platforms to implement, among other things, custom hypertext clients in it. Somehow “lets add more features to make hypertext more capable” turned into “you’re on your own now to implement a usable application with this big incoherent pile of impedance-mismatched features”.
- satvikpendem 3y agoYou might be interested in this article by the creator of the HTML5 spec: https://news.ycombinator.com/item?id=34612696 https://news.ycombinator.com/item?id=34612696 He talks about using WASM for applications and HTML/CSS/JS for basic websites.
- solardev 3y agoThe article link (not yours, but the link to the article from your link) doesn't seem to work. What does he suggest we do about the UI layer? Draw pixels on a canvas from WASM?
- satvikpendem 3y agoTry this link: https://docs.google.com/document/d/1peUSMsvFGvqD5yKh3GprskLC3KVdAlLGOsK6gFoEOD0/edit?usp=drivesdk&resourcekey=0-bPajpoo9IBZpG__-uCBE6w https://docs.google.com/document/d/1peUSMsvFGvqD5yKh3GprskLC... Yes he says to use a language that compiles to WASM for the UI parts to draw pixels on the screen.
- solardev 3y agoIsn't this a redo of Flash and ActiveX, then?
- satvikpendem 3y agoYep, and it's pretty nice. However, he talks about important things that weren't in Flash, like accessibility, and how to handle them cleanly. It really seems like WASM will be the write once run everywhere runtime that was touted in the past. Java almost got us there but was too dependent on Java, whereas WASM is for any language. I've been using Flutter with their experimental web WASM support and it's very fast.