Details
-
AboutStudying digital media production and recently got into (web) development through my studies. Now spending every other night coding... or reading things about coding.
-
Skills• All things JS (ES6+, Node, Vue, React...) • UX & graphic design
-
LocationGermany
Joined devRant on 8/16/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Heh, they're probably using a build tool that inlines environment variables so aaaaall the secrets go straight from their .env into the source
-
Not really, imo.
For rather complex (single page) apps it is just very complicated and time consuming as you need to store all app state in the URL, only use forms and links (no buttons) and need to setup server side rendering. So most sites don't do it, first render might work but after that it ends, either your browser has everything needed or it doesn't.
More "basic" brochure sites are often built with WordPress themes and/or page builders that completely ignore accessibility and enhancement and instead focus on fast & easy customization, so the end result (usually) looks good but is absolutely horrible in terms of accessibility and resilience. -
If you manage to write large scale apps while actively taking advantage of the cascade, more power to you.
But for most it is a nuisance – and goes against some of the most fundamental programming patterns (e.g. encapsulation)
Tailwind takes the good parts of inline styles (you immediately see and understand how sth. is styled instead of having to come up with 'clever' names and wade through huge stylesheets to find the relevant parts, massive context switches all the time), but adds the missing features and makes you use only predefined classes from a design system instead of letting you chose any colors and sizes like it's the wild west -
Yeah, align-self works just fine.
justify-self is what's "missing" from Flexbox, it's a property of CSS Grid -
@retnikt Or JS:
[b, a] = [a, b] -
@Cyanide Ehm, yes actually.
-
const
-
@Gerrymandered It's available now in Edge as well! I'm using it already there :D
-
Enable save on focusChange and auto-reload on change and Alt-Tab is all you need :)
-
@BambuSource Edge 16 (Fall Creators Update) already brought CSS Grid. Edge 17 will bring Service Worker support and some neat CSS stuff like backdrop-filter :)
-
That's what Polyfills are for... ^^
-
@LordRant Aren't Next.js in the case of React and Nuxt.js for Vue made for exactly this?
(If by "isomorphic app" you mean a SPA with server-side rendering on the first request.) -
Yeah, looks quite nice already and is funny, but the typography needs work :D
-
@irene Well, as for 'bytecode for the browser' - there's WebAssembly, which is pretty much that from my understanding.
But the thing about JS is that it's incredibly accessible and flexible, which most lower-level languages are simply not. Hate it or not, there's a reason JS became hugely popular ^^ -
Mobile web or Android dev track? :D
(just completed the first stage of web dev specialist yesterday, now hoping to get into the second stage 🤞🏻 ) -
Congrats!!
Hope I'll get in too, but gotta wait until February 14th to get confirmation 😅 -
@vhoyer Well,
const $ = s => document.querySelector(s);
is shorter :P
And there's https://gist.github.com/12fb951a8b8... already :D
( though my $ functions usually have a small check to see if they should return querySelector or querySelectorAll ) -
Well, I have more apps on my PC than I have on my phone. I just call some of them "programs".
Apart from that, your phone has way more bandwidth and power limitations, so shit not having to be downloaded each time is quite important. Which is why I love progressive web apps. :) -
And slap a position: relative on each of your z-indexed elements so IE and Edge play nice...
-
@jAsE Scroll up a little bit (5 comments or so) and there you'll find a working link. :)
-
@jAsE Same issue.
-
@DanijelH I love Vue as well, but React Native is a killer reason to learn and use React.
-
@dontbeevil Yep, I too think that Edge is really good by now, in many ways - I'm using it quite regularly on my Laptop. Plus, Chakra (or more so Chakra Core) being open source is a huge step forward as well.
BUT as long as Microsoft refuses to unbundle it from major Windows Updates and updates it only twice a year or so, I 100% refuse to recommend it to anyone. As of now, it effectively isn't an evergreen browser which is an absolute no-go. (same goes for Safari btw) -
@brainlessdev 👍🏼and easier copy-paste when duplicating lines :D
-
Guys, trailing commas aren't a syntax error (anymore), it's just stylistic choice.
Trailing commas have always been fine for arrays, fine for Objects since ES5 and now even fine for function parameters as of ES8 (ES2017). -
@juunas They (Netflix) published an article about this, I think it's on Medium, and the site isn't as static as it seems - because there's tons of A/B testing and personalisation going on in the background, so they want a dynamic site so they can easily switch components and so on
-
@korec Nah, sorry if it came across like that.
Was more meant as a shocked "Going back from React to jQuery is an incredibly huge downgrade, WTF! My condolences." ^^ -
@korec Mhm, on whom am I looking down? o.O
Saying that jQuery is leagues behind frameworks and having to work with it is annoying shouldn't be offensive to anyone, I think?
(with perhaps the exception being the jQuery Dev team) -
Haha yeah, know that - we were only allowed to use jQuery (with either jQuery Mobile or jQuery UI), standard JS and HTML5 stuff for our final project.
No other libraries or frameworks - because I think they weren't really up to date with the state of technology.
So well, jQuery Mobile it was... But I wrote everything as much in full-blown ES6 as possible, implemented stuff like a service worker which I knew they wouldn't understand the concept of and used other native but new stuff like ImageCapture().
Everyone else is still waiting for their grades after weeks, I got my pretty much perfect one within 3 hours after handing in the project - they probably looked at my code, didn't quite understand what was going on but saw that it all was working nicely and boom. :D -
@korec You (have to) use jQuery to replace react? How the hell is that supposed to work?!
I actually don't think jQuery is too bad, it's a nice library if you just need some basic DOM manipulation and other stuff like Ajax requests and so on - but it's in an entirely different ballpark than react, even if you use jQuery UI/mobile for SPA functionality ^^
I mean, WTF :'D