Details
-
AboutAAAAAAAAAAAAAAAAAAA
-
SkillsRust and other things
-
Locationhere
-
Website
Joined devRant on 12/8/2018
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
-
There is this old story about a couple accepting Apple into their life and things didn't go so well after that.
Let's call them Adam and Eve...37 -
Guyz so I found this climbing gym with a sauna, it's all good and stuff but I wonder if i shouldnt supplement with a side of ashtanga what do u think? Long term i want to improve my surfing15
-
gonna try working from the hospital while my youngest brother is in surgery from a car accident yay american work culture forcing productivity in difficult times8
-
Github Copilot is a dumb little shitstain
For the past years I've been trying to periodically give a go to various copilots every time they made an announcement like "our next version will replace programmers, it will make singularity look like child toys"
Unfortunately and unpleasantly, in 2025 copilot is the dumbest shit ever and even junior coworkers can produce better code.
I can make it do only bovine code like class mapping and simpleton tasks.
Delusional32 -
mama kiki just went to two sentence horror subreddit and casually smashed those amateurs three times in a row with her writing chops4
-
Could the all of the Tencent cloud kindly please fuck off back to China?
Those assholes don't even publish their IP ranges so one could easily block their ass.
Had to rely on external tools and hunt down all of their different ASNs to finally block them from overloading a client's webapp...
Ugh, I need a beer.6 -
Just remembered this in a TES forum. So you get to remember or enjoy for yourself:
https://hezer.naraku.org/sekalaista...1 -
> Press "Push" button in the IDE.
IDE: ❌ Error 😩 Unable to push branch 'dev' to origin
* Ugh. *
> Open console. Type "git push".
Console: All deltas resolved, chief. 🫡 dev -> dev
Why. Another day, another experience to prefer the command line.2 -
JavaScript has an exciting API for monitoring changes made to HTML elements. The API is called the MutationObserver API, and it was invented at the prestigious W3C—the global organization comprised of our genius software engineer overlords.
Unfortunately, the W3C has a history of occasionally forgetting to proofread new specifications before publishing them, after their large army of monkeys with typewriters have produced working draft specifications, but I'm sure those mistakes are all in the past. The MutationObserver API is receiving praise online. I'm sure it's well designed!
Let's dive in to how it all works.
The API works by calling (1) a specific function of yours any time (2) a specific kind of change is made to (3) a specific HTML element—all three configurable by you.
When a change occurs, your function is passed a collection of information about the change, known as a "record".
If you ask, that record can even include information about the state of the HTML element before the change occurred, available under the `oldValue` property. How convenient!
Oh, and one more thing. If several changes happen in a short window of time, your function may receive a whole list of records—instead of being run once for each change. You know, to save on computer resources.
Anyway, let's start using this powerful API! But wait, what's that?
The record doesn't contain the state of the HTML element when the change occurred?
No problem! That information doesn't have to be included in the record. I can just look at the element as it appears right now.
But what's this, now? I'm receiving a long list of records. I guess lots of changes happened in a short window of time, so all the records are bundled together.
So how do I know what the state was for each record?
If I look at the element as it appears right now, I can only see the end result. That won't tell me what the state was after each individual change.
I guess there's only one way to find out. For each record, I need to look at the next record and check that record's `oldValue` property.
I need to write look-ahead logic just to see the state at each record!
What kind of monkey wro—oh, right. The W3C wrote the MutationObserver API.
Just forget that I asked.3 -
Statistics. Tbh, it is way more. Didn't use the codeium plugin for a long time. Regarding key presses i'm in the 0.10%. Longest streak is not impressive. 21 on codeium and 40 on github or so.
At this moment I'm very happy with the plugin, it knows me completely. * tab tab tab *. Almost always knows what I want to do. It advanced a lot last year, I did quit a few times on it last year for few months because it often sucked. Now it's perfect. Especially under VIM it's very cool!2 -
Happy new year Ragnar, doing such an amazing job that AI would be a down grade in any way. Two false positives since existance and rarely one slips trough. People do actually call @ragnar if smth slips trough. Makes me happy and surprised how much people did read the few times I mentioned that feature. Says a lot about activity regarding readers in the community.
The spammers didn't celebrate new years it seems. Hard workii workii. Also happy new year.
Buffon, especially happy new year to you. You owe me two days of work for your shit. At least happy to know that the spam king at least is a real dev.
I hope this will be a good year for devrant. There's no reason that it wouldn't. We're te coolest independent single subject reddit thread on the internet.1 -
Ughhh I wish Rust had stack banging, do I really have to write the deranged bullshit below just to be able to safely recurse on user input?27