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
Search - "too much meta"
-
About a year, maybe two years ago I stupidly spill drink on keyboard, immediate RIP.
Got myself a new one right away, obviously. Didn't have much money at the time so I cheaped out on it, got a piece of trash that can't read more than two inputs at once. Like say I can't hold down shift, press W and then space to jump, shit like that. I developed a little muscle memory to get around it, just quickly switching between running and jumping. Dumbest shit ever, it kills your momentum.
Anyway I don't mind that but I've started noticing the caps are disintegrating. Particularly Meta, Shift, Arrows, they're just destroyed. The Enter keycap flat-out shattered. I can see which key I hit the most by how much the plastic has... well, melted and caved in. my touch is fire (baby) oh yeah.
So, go into normie internet to look for stuff to buy. Yay consumerism, everything sucks. Look at these pieces o fshit. And these fucking websites man. Who designed this your mother, don't answer, your mother would've done a WAY better job. Ugh. Fucking bullshit.
And why is everything "gamer" and has that horrible rainbow aRrGeebEe shit. Dafuq, boi. This is some of the most visually displeasing shit I've ever seen, and I am a shit poster by trade, I have witnessed some of the most cavernous depths of the internet's unholy butthole. I thought bleeding through the urethra was painful, but no, this is somehow worse. I am experiencing such profound disgust it has affected me physically. Also am I just a ranting geezer at 31, heh, well best to be a rapidly mentally aging son of a bitch than a fucking jerkwad with an atrocious taste that somehow gets picked up and circlejackaloped off by an entire fucking industry.
But enough about your terrorized rectum, I have money to spend. Is that mechanical shit worth it I wonder. Like those oh so ~ a e s t h e t i c ~ shitbags that take keys away from you and yet charge you more for it. Like I don't care about it being cute, will the keys witstand the ecstasy of my flaming fingers. I type a lot, and I mean a lot, man. Have you ever seen my repos, millions upon millions of pseudo pornographic keystrokes spent on shit that does nothing, I am unashamed to admit it, now where is my medal of sin bestowed on me by the finest of malignant sponsors.
Anyway, fuck this rant, I lost my train of thought midway through and it became an abomination that I am too stubborn to hit delete on.
Also I have no delete key pls halp.20 -
The datepicker saga
Part one
So I begin work on a page where user add their details, project is late, taking ages on this page
Nearly done, just need a component to allow users to put in some date of births. Look for react components.
Avoiding that one because fuck Bootstrap.
Ah-ha, that looks good, let's give it a go.
CSS doesn't exist, oh need copy it over from npm dist. Great it applied but...
... WTF it's tiny. Thought it was a problem with my zoom. Nope found the issue in github.com and it's something to do with using REM rather than EM or something, okay someone provided a solution, rather I saw a couple of solutions, after some hacking around I got it working and pasted it in the right location and yes, it's a reasonable size now.
Only it's a bit crap because it only allows scrolling 1 month at a time. No good. Hunting through the docs reveals several options to add year and month drop downs and allow them to be scrolled. Still a bit shit as it only shows certain years, figure I'd set the start date position somewhere at the average.
Wait. The up button on the scroll doesn't even show, it's just a blank 5px button. Mouse scroll doesn't work
Fucking...
... Bailing on that.
Part 2
Okay sod it I'll just make my own three drop down select boxes, day, month and year. Easy.
At this point I take full responsibility and cannot blame any third party. And kids, take this as a lesson to plan out your code fully and make no assumptions on the simplicity of the problem.
For some reason (of which I regretted much) I decided to abstract things so much I made an array of three objects for each drop down. Containing the information to pretty much abstract away the field it was dealing with. This sort of meta programming really screwed with my head, I have lines like the following:
[...].map(optionGroup =>
optionGroup.options[
parseInt(
newState[optionGroup.momentId]
, 10)
]
)...
But I was in too deep and had to weave my way through this kind of abstract process like an intrepid explorer chopping through a rain forest with a butter knife.
So I am using React and Redux, decided it was overkill to use Redux to control each field. Only trouble is of course when the user clicks one of the fields, it doesn't make sense in redux to have one of the three fields selected. And I wanted to show the field title as the first option. So I went against good practice and used state to keep track of the fields before they are handed off to the parent/redux. What a nightmare that was.
Possibly the most challenging part was matching my indices with moment.js to get the UI working right, it was such a meta mess when it just shouldn't have taken so stupidly long.
But, I begin to see the light at the end of this tunnel, it's slowly coming together. And when it all clicks into place I sit back and actually quite enjoy my abysmal attempt at clean and easy to read code.
Part 3
Ran the generated timestamp through a converter and I get the day before, oh yeah that's great
Seems like it's dependant on the timezone??!
Nope. Deploying. Bye. I no longer care if daylight savings makes you a day younger.1 -
!dev
Today, on the Hypocrite show we have a bunch of hypocrit wankers talking meta. For example, this just in, a bunch of talkative wanker classmates, all gorls (yes, this is not a typo (yes it's for sarcastic goal (yes read it in Gru's voice (no I don't do Lisp stop asking)))), start talking about how they don't like their lower-graders talking too much they, the previously mentioned "gorls", are around and would prefer them to shut up and let enjoy their "peace and quiet". Oh I don't know, you wankers wants my 2-page 11px complain on you talking too much in class and everywhere you go?6