Details
Joined devRant on 7/15/2022
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
-
The day after everyone has been cut //jk the week or month after they officially are out so they can't be hired back easily (after the 30+ days termination period)
-
Congrats, which girl are you going to tell first? ;P
-
That's pretty amazing, I remember trying to do some board prototyping with KiCad
-
It can be how the keyboard is wired as well, there are some interesting ways they do it, some buffer specific sections of keys, so if you tap 5 keys in that section it forgets the extras, but another section can still be active
-
@atheist Heh, put a firmware/bios password on it then forget what it was ;P
-
@jestdotty Didn't they already do black female 007?
-
Why not acoustic?
-
Luckily, I've worked with so many old code bases that comments mean nothing to me, and I just look for the thing I want to change and work from there.
-
@donkulator But what about the cute waitress? But in NL they sorted that type of ordering ages ago, there is just a wall with pre-made meals, and you pay and take it out.
-
Congrats, hope the people click better for you this time round
-
@atheist Keep us posted, sounds exciting
-
Root-ing for you. But very much time to start looking for a new place to work, and drag the time on every work item you get. That's how kinda I've been dealing with it, and it has helped, but definitely nothing beats actually taking a holiday and working with better people
-
@D-4got10-01 Would that mean user testing?
-
I don't think I have had a clean shave since I was 14
-
Yeah, I got to do the same, triple standups and 2 docs with hours, it's a huge pain
-
@lorentz Are you talking about using [data-something=some value] selectors?
There is also the direct child selector > and sibling + ~, which you can combine with has
The relation between elements can be just a vague in any language, e.g. react and the children prop
There are also the * and ** selectors from tailwind and the group classes.
If you want a css framework which makes more use of those relations you can look at bulma's content class -
@iiii eh, it's the interaction, rather than spiralling it mentally
-
Been there as well, the easiest place I've found for those complaints is an AI
-
Yeah, images are uploaded here: https://devrant.molodetz.nl/
But yeah, not much of the original community left, a lot of mentally ill people still here ;P -
@lorentz Except it very much does, it's not optional. Have you looked at the hover, focus and other classes?
Also, every library uses selector magic because, again, it's not optional -
Best way is to use something else not react based
-
@lorentz You just disproved your first response with your second response. How do you think tailwind does "fancy" stuff, it does selector """magic""" and has the exact same issues as inline styles in fact, often it even makes it worse
-
@lorentz In what insane world is 1 style 1 class a good idea, it's also one of the reasons I hate tailwind and similar inline style alias frameworks. Use the CSS class to express a concept, just like you'd name a function in normal code
> CLASSES can't be composed into higher structures, let alone into more specific classes
What about nested styles? Pseudo-classes? Sibling selectors? None of those can be expressed using inline styles.
Yes, this is valid.
.nav {
.nav-item {
...
}
}
or you can "compose" your style by doing
.example {
background: green;
}
.error .example {
background: red;
}
Are you upset that the CSS won't ctrl-c ctrl- v the styles to different classes? Something you definitely can't do with inline styles, so that's a big non sequitur... Actually that is what CSS class resolves for you... -
@lorentz
In code it is _usually_ a good idea to define a variable for magic values because then you can use that variable in the definition of other variables that logically depend on that value
You can do that with CSS classes using CSS variables, also the math functions
Classes also make it easier for you to do fancy state transitions without having to set a large set of properties through code, e.g. fading an element out, sliding it into view or 3d rotations without making the HTML hard to read/manually setting them through JS -
@lorentz That's incorrect, css doesn't have to be global. @scope exists.
As mentioned, margin-20 is a terrible class because it's the same as calling a variable `pixel20`.
They can compose, what do you mean? margin-big and padding-big can be added to the same element. I'm going to assume you mean someone doing margin-big and margin-small? Well the rule is simple for this, whichever css class is defined last.
And if you want to change the margin on elements that are relevant to a specific section of the page requires a lot of manual tweaking if it's all in the same html (or multiple files!) since you might not want to change the headers margin for example.
Personally I'd never go for a margin-X style class anyway. Describe what the style is used for, e.g. navigation, and nest them as you need them (yes CSS supports nesting)
Not sure where the lambda comparison comes from. There is a large difference between markup and imperative code -
Yeah what @iiii said. It's like asking why you should use variables instead of hardcoded values everywhere
-
Congrats
-
Don't forget camera on, so I can't even read
-
@valentinfngr Yeah I can imagine, I now need to keep notes of "annoying code" to use for interviews
-
@jestdotty Oh yeah, but I don't want summaries. I want the full thing with pictures ;P