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
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
How is visual studio code's vim emulation this bad? vi/vim is 50 next year, with its behavior codified in the POSIX standard. What takes me 1 line in a vimrc requires a mountain of JSON and learning separate programming language to do this plugin. Who ever maintains this pile of crap should be embarrassed. I just wanted to pay microsoft to use copilot on my own projects.4
-
Okay, I'm really liking VSCode + Vim motions plugin.
I'm genuinely starting to get used to and use the motions correctly and it's only been about a week and a half of practice.
This might be the way1 -
They say she was but a child a few years ago and now she's a grown up woman
They say he was but a child a few years ago and now he's a grown up man
I say, we are all the same children we were before. Only a bit smarter, with more mistakes in our portfolio and bigger, more expensive toys to play more elaborate games with.1 -
I thought stepping into the Computer Science industry would be to create beautiful software with my passionate talents. All I've seen is: fix and maintain broken (badly designed)(legacy) shit. Yes, that's more of a backup role.
A good role is where you at least get to create a project from scratch that you own yourself.
Urgh.3 -
bevy_reflect is literally the best thing since sliced bread
It allows you to do type and value reflection IN RUST!! A compiled language with dynamic runtime reflection of values. And with custom annotations on fields and structs too like
#[derive(Reflect)]
#[@SomeDataIWantToAttach {x: 20, y: 10} ]
struct MyComponent {
#[reflect(@MyCustomRangeAnnotation(0..10))]
pub num: u32,
}
It is nice. It is so nice1 -
I'm completely cooked, brothers. I chanced on an office where the boss has a strong eye for visually appealing female staff. My employment there caused me to mistake myself to have gamed the hot chic ignoring my dms system, at least now I and a handful of them work together, they'll have an excuse to talk to me. Boy, was I DEAD WRONG. It makes no difference either way, I am quite simply not him. It doesn't matter whether corporate labour gives me a helping hand or I go hunting (and missing) online. None of them will be caught dead responding to me except when under formal obligation
The only other place I can see them in person is during my hour long commutes. Strike a conversation, they are only interested in me incurring expenses on their account or replying chats reluctantly. Owari da, ladies and gentlemen 💔4 -
Garbage collectors are actually pretty dang clever. I always thought they are inferior but honestly they can be really fast and the ergonomic benefit you get from them is just priceless
One really cool trick of multi generational GCs is having a young generation where all new objects are allocated and on each GC cycle you fully clean it out by deleting dead objects and promoting living objects to a higher gen
This way you can just linear allocate new objects in the young gen which is magnitudes faster than a general purpose allocation algorithm
You can basically heap allocate for almost free! Bunch of short lived temporary strings? No problem!9 -
What someone says or thinks about you says nothing about you. What YOU yourself say or think about yourself says nothing about you.
A man is a sum of their actions, nothing more and nothing less. Consequences of those actions will be here and affect the world long after you're dead and buried.
So, if someone disrespects you in the comment section, it doesn't mean you deserve/attract disrespect. Same goes for your workplace.9 -
Week : 70 ( Year 1 )
Plans for the first weekend?
My cat (well, my neighbour's cat. Sometimes visits my place) looks like pregnant. Any advice to do something? or let nature do its thing?
Previous Week : https://devrant.com/rants/1205728012 -
"You're a real programmer only when you first encounter a segfault"
I had the most demotivating segfault in my life. Every functions in my project returns a segfault, except the one to init and create a window. I/O. Audio. Frame Buffers. Everything. AAAH.
It is on glX (X11) so i'm planning to remove it's support and instead work on WASM then use Electron to render those apps on X11 and rpi.14 -
dayum... 40ºC temperature hits right home, feeling dizzy and high! Nice!! It hits better than my homebrew honey kvass :D
However for some reason, there's 0 motivation to go coding, so can't check the Balmer's level...3 -
needing to fix a bug that may be present in react/typescript when you don't know the tech stack
unsure if update to button broke the form
don't know nuance or difference between FormEvent vs synthetic events
test environments and local development environments broken
let me die peacefully in my sleep -
Those modular monolith treatises, articles and videos presenting it as the less complex cousin of microservices with same benefits, I think it was all snake oil. They sold us dreams
Yes, it's more compact to house all components pertaining to an entity under one package. But it turns out all the hoops we jumped to hide them behind an interface, it's an overkill not necessarily the game Changer it was made out to be
I say this because one controller almost suffices for managing a resource. So does its associated service class. It can grow to 1k/1.5k lines at best. But never enough to be managed by multiple people and balloon into "a service". The idea was that these things are big enough to gain full attention. But the chances are slim
As long as you aren't dumping all your logic into your controllers, you're home and dry3 -
AI hacking attempts being spotted in the wild because they're too polite
https://someone.elses.computer/@mik...
there's actually a similar vetting process in the crypto industry where you have to swear or you won't get hired. forget why now
this seems optimistic to me because companies generally don't do security. a hacker desperate for money has less money to blow on AI hacking than someone invested in protecting their company would on AI pentesting. poor low level pentesters I guess though -
I am against the idea of outsourcing dev jobs.
Every software company should hire in-house devs, that live in the same country/region the company is in.14 -
i was sitting and shitting for 15 mins and once i was done and shitted, back to my chair and 1 minute later i feel the need to shit again! wtf?
i cant make this shit up!3 -
Maybe crazy idea but couldn't you implement a kernel level garbage collector for compiled languages like C/C++/Rust?
The biggest issue is that without a runtime you don't have safe points at which you know a thread isn't updating references... except you do! At thread context switches you know the thread isn't executing code, so you can safely do your stack traversal and reference marking without fearing race conditions
That's still somewhat problematic because OTHER threads may still be executing but there's probably concurrent gc designs that could deal with that...
Hmm maybe I should actually try to work on this11 -
Working on creating an asyncio UDP server/client. Going to have it talk to another server/client. Why? Because I don't want there to be a round trip to my data. I want send and forget.
So I created a combo server/client in C++. I am testing out the client and I find that it connects and sends data with zero errors as a client even if there is no endpoint (server) active. Okay, well its connection-less so it kinda makes sense. So I am not even sure what connection means at this point. I figured it was sending data into the ether. Fine, I don't have to worry about dropped endpoints or some shit. The server does see messages once it creates itself (tested with Python server). Not old messages, just the ones currently being sent.
So I do the same thing in Python and use asyncio to create server/client with opposite ports to talk to my C++ server/client. However, if C++ server doesn't exist the Python client throws an error. Okay, wtf... So Python UDP client is gonna be extra steps because why? Because fuck you! That's why! lol
UDP Client Comparison:
C++: I don't give a shit, if you don't get the data then fuck off. I won't error no matter what.
Python: Oh shit, there is no server, so I won't even run. Because fuck you and wanting to send messages to the ether.
Now I need to do the same thing in C# and see what kind of "fuck you's" it will have.
What did I learn? I learned Python has a nice asyncio system similar to asio from boost.11 -
Chatgpt and WhatsApp LLMs replaced the time I spend on Google, combing stackoverflow, articles, forum suggestions and documentation. Which makes sense since those primary constitute their software development training model
Its interactivity is like personally iterating with those authors in real time, yet the experimentation I do remains the same. We still do the hairpulling, catfighting, back and forth, tantrums and clawing each other's eyes out when things go awry. I'm mostly the one doing all these when it's completely useless and worse than a mental retarded thing, missing whole points, regurgitating same solutions you told it are dud
More irritating cases are times it withholds information due to ethical reasons. I get redfaced livid and cuss it out. My message gets scrubbed out for violating community policy. Days when its sympathetic, it apologises for my frustration, other days it just retorts with more venom that the umpire supervising our exchange promptly erases
Prompt engineering is probably the ubiquitous language javaScript aspired to be, and may be the future of software development -