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 - "not rubber"
-
A few days ago while browsing devRant, my girlfriend stopped me at this one post and asked why does this person have a rubber duck. I went on to explain her about Rubber Duck Debugging. She was totally amazed by the concept (she's not a techie). Today suddenly a package arrived at my door step from her.
Well now I have an entire family of rubber ducks to code with :D22 -
So I didn't know why I kept seeing rubber ducks on devRant. Apparently, I'm not very good at typing today, either.
The result? I now have to explain why I Googled "rubber dick debugging" at work.6 -
We're not a family of devs. So the situation may seem weird to them.
My sister saw me doing the rubber duck debugging and venting my programming frustration with an innocent little duck. Eye-to-eye. And now, she thinks i'm in need of serious help.11 -
I kid you not, it's been impossible to find a rubber duck, so I had to make my own. Yes, his head is wonky, it's intentional, I wanted him to match me 😁16
-
I made a wordpress plugin
(don't ask, it's practice for an internship)
The plugin turns every element that does not have a child into an image of a rubber ducky at a speed of 6 rubber ducks a minute.13 -
Do you ever talk to yourself out loud while thinking/programming/debugging? (Not a rubber duck in sight, because that makes it okay?)
I need to avoid making this a habit..
Me: What? Why is this even an error?
Someone: What?
Me: What?14 -
"Do you like your job? I mean, all those collored lines in that funny font... sitting at the desk with this adorable rubber duck... Do you guys jus".....
.
.
.
.
.
.
.
.
.
.
.
.
Me: "SHUT UP YOU STUPID ASSHOLE!!! I MADE 26 COMMITS DURING THIS FUCKING DAY, THE DAY THAT WAS SUPPOSED TO BE THE LAST WORKING DAY OF THIS SHITTY YEAR! I HAVE NOT SLEPT AS I SHOULD AT ALL CAUSE THIS FUCKING MIGRATION OF NEW YEAR'S UPDATE AND NOW... AHH NOW YOU STUPID FYCKING PSYCHO... NOW I HAVE TO CONTROLL MYSELF DURING NEXT DINNER WITH FRIENDS, HAVE NO MUCH ALCOHOL CAUSE DURING SUNDAY, EVEN ITS A FUCKING HOLIDAY AND EVEN IF I AM IN A LOOONNGG HANGOVER, I DO STILL NEED TO COMPLETE THIS FUCKING NEW YEAR MIGRATION YOU ASS PUNK! GO FUCK YOURSELF YOU LITLE USELESS TINY LITLE SHIT!!!"
And this is how I see my new years resolution: the time is priceles doing this questions to me...
Happy new year, fellazz! 💃🎆🎉2 -
So yesterday I became an actual human rubber duck!
So I have a colleague in my team that for weird reasons is not allowed to work with the same thing as the other colleagues in the team is allowed to work with. So she´s kind of alone, working on another project, and that seems to suck really hard.
And this is how I became a human rubber duck. She asked me a couple of questions about a technology/language I´ve never touched before and I told her I never worked with that technology or language and know nothing. But she was eager to get me over to take a look at what she meant.
So I came over to her screen and she started to tell me everything about the project, the technology and the language. I soon realized she wasn´t only looking for help, she was probably feeling alone in the work she was doing and just needed someone to talk to. So I took my role as the human rubber duck and sat down to listen to everything even though I almost didn´t understand anything.
I think it actually helped her even though I did nothing.
Being a human rubber duck felt good!7 -
My wife is a teacher doing a technology course that includes basic coding for middle schoolers (11-13 year olds). While she admittedly would make a terrible developer, she just spent her own money on 30+ finger puppets so the kids could practice rubber duck debugging. Maybe something did rub off on her!6
-
I AM NOT A RUBBER DUCK
I AM NT A RUBBER DUCK
IAM NOT A RIBBER DUCK
I AM NOT A RUBER DUCK
I AM NOT A TUBBER DUCK
I AM NOT A TRUBBER DUCK
I AM NOT A TUBBER DUCK
I AM NOT A RUBBER DUCJK
I AM NOT A RUBBER DUCK10 -
@dfox
just thought about it...
why not devrant rubber duckies?
(this might be proposed in some other comment/rant already, didnt check for it)6 -
Guy I work with: Hey can I borrow you for a minute
Me: sure. What do you need?
Him: so this is a project me an the other dev worked on
Me thinking: Well I know he did it all and sent you the project so don't tell me you worked on it
Him: so we use it to do this and this and send an email to this new account I made because (2 minute explanation)
Me thinking: I don't care. Just tell me what your issue is! I already know what it is and does from what you told me the last time when you showed me. Which took an hour of my time.
Him: so he sent me this code which is called <Descriptive name> and in the method we have variables call <descriptive name> and it returns a <variable name>
Me thinking: You mother fucker! I don't give a shit what your method is named, what it the variable names are, and you don't need to read through every line of code to me! Just from the descriptive name you just said I know what it does! What the fuck is your issue!?
Him: we also have these other methods. This one is called <Descriptive name> which does...
Me: are you fucking seriously going to read me your code line by line and tell me what you named your variables AGAIN!?
Him: and we named this one <descriptive name>
Me: you mother fucker...
Him: and it calls this stored procedure. (Literally opens the stored procedure and shows me) and it is called...which has parameters called... And it is a select query that inserts
45 minutes later after he finishes explaining all 3 pages of his code and his 5 stored procedures that the other dev wrote...
Him: So anyway, back to this method. I need to know where to put this method. The other dev said to put it in this file, but where do you think I should put it in here? Should I place it after this last one or before it?
Me thinking: You fucking wasted my fucking time just to ask where to place your mother fucking method that the other dev sent to you in a project with only 3 files, all less than 500 lines of code with comments and regions that actually tell you what you should put there and 5 small stored procedures that were not even relevant to your issue! Why the fuck did you need to treat me as a rubber ducky which would fly away if you did have one because you didn't have an issue, you just didn't know where to put your fucking code! FUCK YOUR METHOD!
Me: Where ever you want
Him: Well I think it won't work if I placed it before this method.
I walked away after that. What a waste of time and an insult to my skills and really unchallenging. He's been coding for years and still can't understand anything code related. I'm tired if helping him. Every time he needs something he always has to read through and explain his shit just to ask me things like this. One time he asked me what to name his variable and another his project. More recently he asked why he couldn't get his project he found online to work. The error clearly stated he needed to use c# 7. His initial solution was to change his sql connection string. 😑
He should just go back to setting up computers and fixing printers. At least then he would never be in the office to bug me or the other dev with things like this.7 -
The most famous ranter in devRant (maybe) rants now due to cleaning.
LG Ultrawide 29" monitor
Logitech bluetooth keyboard K380
Logitech wireless mouse B175
Rubber ducky
LG UltraPC laptop (not in pic)
- Intel core i5 7th gen
- 8gb ram
- 256gb ssd + external 1tb hdd
- NVIDIA GeForce 940MX12 -
To sum up yesterday:
A pigeon flew into the classroom in school so I think we did pigeon debugging.
The questions asked were: "Why would you fly into a building" and mostly "how the fuck did you know which of the ten windows are open?!"4 -
A woman can make 4 babies with 4 different fathers in 9 months, right?
Someone decided we need a "rubber band programmer" who bounces around from project to project as needed, and that gets to be me.
So I work on 4 projects, with 3 programming languages, 4 frameworks, and with users in 4 complicated industries, none of which I have experience with.
And my boss wonders why I'm not as productive as everyone who has worked on 1 project for 5 years.9 -
Not to give anyone ideas but...😁
How James Veitch tortured his roommates with rubber ducks.
https://youtu.be/f5d8pVg3Qtg6 -
My parents r pretty helpful with me programming. They r very supportive 😊😊
I even tell my mom how things work and she takes a lot of interest in understanding as well! She is my own rubber ducky ❤️❤️
My dad is busy and not a tech minded person so he is kinda ignorant about tech, but never stops encouraging me 😊😊
Go my mom and dad!! Yaaay 😍😍2 -
Why does CSS never work the way you'd expect? All I want to do is align something to the bottom of a div. No. Will not happen. You'd think it might be something simple as 'v-align' or 'align: bottom' or 'fucking put it at the bottom: now;'
No, it's never that simple. I try every result I can find from googling. Nothing. Simply does not work.
How about trying to keep a div to a square when you resize the page? That should be simple? height = width right? Fuck you. Ha hahah, no you have to implement some horrendous arcane hack involving fake elements and other bullshit.
You finally fix one thing and everything else you had working is now broken.
...and then some fuckwit comes along and goes "Oh, CSS isn't hard..." and it takes everything you have not to beat them to death with your rubber duck.
What the hell is wrong with CSS? It's not even programming! It's just pure, sadistic hell! FUCK CSS!!!!14 -
Goddamn I'm happy that I've put a €3 rubber case on my phone.. it just fell face down from 2 meters height, if it wasn't for that protection, I'd have a €630 paperweight by now 😰
Seems like these things can happen to the best of us (I'm generally very careful with my gadgets).. Today I leaned not to omit your smartphone's protection 😶11 -
Oh boy how do I put it?
So I am an introvert and I have a strange question.
But first some context is needed. I am mostly nice to people not because I like every one but because I think it would only waste my time arguing with them so I just start to ignore the person I don't like. Which puts me in a strange situation where a lot of people think I am their friend where I don't care about them heck I don't know names of some.
Now because I am introvert people/friends see me as someone they could unload their secrets on (knowing I won't tell anyone (because I don't gossip(because it's waste of time) ) ). So I know almost every gossip worthy shit that I don't want to know about or don't care. Sometimes they even ask me for some relationship advice and then it seems like I am like a rubber duck for extroverted people cause at that point they kind of ask questions that clearly they want some specific answer (wich if I don't provide they will say themselves). Also it is also lame to ask me as I have never been in a relationship (I am an Indian and here somehow people seams to get in a relationship just to be in a relationship. (cause it's "modern", "forward thinking" "cool") (which I can already see will not last)). I am not against relationships but I think it's better to appreciate a friendship rather then forcing that "a girl and a boy can't be friends".
Ooh BTW the question to other introverts is if they become rubber ducks to there surrounding people?13 -
13 fucking USD in shipping for a 9 USD rubber duck? Fuck no.
Spend $2 a month and most likely forget I am now subscribing to devRant++? Yeah, sure. Why not, right?
Seriously though, thank God for this platform, I'm luckily not the only one with struggles..5 -
A friend of mine got an account hacked on Crunchyroll. Whenever he tried to login, the website told him that no account with his email existed. As I had two accounts, I tried something real quick. I logged in to the account I'm not using and tried to change the email address to a 10 minute mail. I logged into my own email account patiently waiting for a confirmation email. After 10 minutes I still hadn't received it. So I checked the 10 minute mail, and there it was. I can't describe how furious I got with Crunchyroll at that point. Are you for real? It's that easy? Fucking idiots. I hope the guy responsible for that system dies in a fire with a thousand rubber penises up his ass!7
-
Finally got the time to show my setup. Darn simple, but clean as well. How do you think?
Stuff:
LG 29 inch Ultra-Wide monitor (LG29UM58E)
Logitech BT Keyboard K380
Logitech Wireless Mouse B175
LG 15 inch laptop (15U570-KA5EK), not in picture
Rubber duck (a.k.a. TOLO BATH DUCK)18 -
TLDR; Go to bottom of post.
Around this time two years ago was the start of my group project in University. The project was to write an app in android and have a web side to it too. The group was to be overseen by a member of staff. The first meeting was introductions and to look at the spec, during the second we were to decide a group leader (PM) and other positions.
A person I shall call BD and I volunteered for PM. I didn't have experience with leadership but wanted some, and was the only one with confidence in android, the biggest part of the system. I got four of the votes.
BD, with his scouts experience, not being afraid to breathe down people's necks and bash some heads together, and having been PM last year, with his group receiving 69% (he failed the year and was resitting), earned 5. One guy was missing.
When it came to sorting out roles and responsibilities, BD confessed to not being a strong coder but that he'd help here and there. His role was planning our deadlines, doing our Gantt chart for deliverables, and was supposed to write a really detailed spec. He didn't have it at the meeting of the next week, as it was still in the works, and never messaged anyone. Next week he turned up with a Gantt chart of 1A4 page that only included the deadlines and deliverables in the spec, with three colours. One for android team, one for DB guy, and one for web team.
The guy who didn't turn up for voting got a girlfriend, a job at mcdonalds and did barely a thing. One guy in the web team did everything, carrying his friend who wouldn't do work (and also got swept out to see in a rubber boat with one of his bros lol (he was rescued)), and even though I'd done android dev I wasn't as quick a learner as two others in the team. Out of 10 people, 6 did real work.
The web guys stopped coming to meetings as they were taken over by android talk, and as we were quite behind, BG tried yellow carding them. They turned around with the website pretty much done, this one guy doing more than the 4 of us on android had. Yellow card lifted. We'd already complained about BD and his lack of everything (except screen brightness as he sat at the front of the lecture theatres with his wide brimmed hat looking at 9gag and videos (remembering he said he was resitting that year)) but grew a stronger dislike. Found out that he spent most of his time with his gf at our secretary/fellow android dev's house. Come coding week, he disappears entirely, only to attend meetings. He gave us a shell of the android code used for his previous year's project (along with documentation, complete with names and dates of updates, most of them (including the planning ones BD was supposed to do) bearing either one of two names. It was behind where we were at the time and had a lot of differences to our spec, and if we had used it BD may have used that to pull us down with him if things went wrong. He resurfaced at the end with the final documentation of how we'd all done, including reports on how each member had performed, which we were supposed to have reviewed. Our main, most proficient dev he accused of being irritable and brash, and a bad communicator. He was Norwegian, his voice was just a bit gruff, and he was driven and didn't waste time. He bashed the web team for not turning up, and had already been rude and unhelpful to everyone who voted for him in the first place.
In our own reports we all devoted paragraphs to delicately describing his contributions, excluding his suggestion that we use the code he gave us. Before we had our results and our work was completed, he individually kicked us from our group's facebook group and unfriended us.
Our 43% mark at the end, coupled with his -40% penalty from the red card we had him on, felt good, but not as good as a better result would have, especially as the fool that was BD would be inflicted on a group a third time. He changed to some other course after that year finished, so he must have failed his resit of second year.
During third year, a friend of mine who was PM for a group that passed well passed other things with too slim a margin to be happy, so chose to resit the year. He didn't have to do the group project again, and had that time free. But BD had to resit. His group had 69%. A yellow card with a 20% deduction wouldn't do it, so he MUST have had a red card as PM his previous year. Well that didn't come up when he claimed credit for his team's 69% during elections... My housemate's compsci boyfriend 2 years up overheard me talking about him, he was in 1st year with BD. BD failed and resat 1st year too. 4 years and he couldn't make anything stick. I feel bad for him through understanding the pains lack of work and internet distraction bring, and unfortunately I can't wish bad things on him because he brings them on himself. I wish I never see his face again though.
TLDR; Guy in group project lies and is dishonest from start to finish, getting PM pos by 1 vote. Gets what he earns.2 -
26 or so hours up now. And I've got a few stories to tell :) feel free to refresh your cup of coffee and take a seat.
Last few days I've been going into this odd place called intown.irl to get in touch with its inhabitants. An odd place I have to say. But in some cases quite rewarding, even got a MILF home with me and into bed at some point. Anyway...
3 days ago I think it is now? Thursday evening I took my laptop to this local bar where I had this issue about dihydrogen monoxide with one of the bartenders earlier (you'll find that rant on those keywords). Still wanted to visit it regardless though, as I met that first woman there earlier that approached me. Unfortunately I didn't see her there that day.
Some bald guy who was clearly drunk approached me. Many people were already giving curious looks at this laptop I brought to the bar. I finally tuned it up with the stickers from FOSDEM.. I'll put a picture of it in the comments. My theme was one of privacy (central), distributions and Google's open source initiative (which aligns with the keychain token I got from them as well). But of course.. that guy.. he thought that a pimped/riced laptop obviously meant that I was a hacker.
Guy went to the toilet.. went back.. and suddenly grabbed my laptop and turned it towards him. Boy was I never more smugly satisfied that those rubber pads on the bottom are quite resilient. Could've almost damaged my screen by trying to grab it like that. But it's a CCFL display.. so high voltage. If it were to become broken.. worth it. 😈
On it at the time was a terminal, pinging Google (had network issues at that bar, to the point where one of the - I think - staff members got up to me and offered the WiFi password and got to talk with me.. more on that later), and my usual Linux desktop along with the Arch anime wallpaper with the quote of Da Vinci.. simplicity is the ultimate sophistication. Of course the guy saw the terminal.. and probably reaffirmed.. yep, that's a hacker. At least he wasn't too wrong about the general term.. but the hat.. most likely he was wrong on that one.
Guy left with this question.. "you are a hacker, aren't you."
I replied to him: "No sir. I'm not a hacker. I've got no idea what you're talking about."
Guy kept looking at me weirdly for the whole night to come.
Back to that companion guy though. Mac user, yada yada.. but he told me about his backup solution. Apparently - I shit you not - he has not only the photos on his local device, he's also frequently backing them up in Time Machine (which I was really curious about whether it uses mirroring or snapshots.. he couldn't tell, lmk if you do) but not only that.. he was storing another offsite backup in that very bar, in case his house went on fire.
Now that is a proper backup scheme!!! If only more people were like that.
Seriously though.. that bald guy who took my laptop just like that... I just let it slide for that one time, but I tend to treat my machines as an extension of my very self. I think that was a very uncalled for move. Asshole...
How would you have reacted to such a thing? And.. maybe that's why we technologists don't get outside too often? Fucking everything is hacking these days if it's not Knopkes and Blinkenlights… Not every shell is a h4xx0ring console for h3kk1ng de fasbuk…9 -
Not really rubber, but he's my duck.
He's literally one year younger than me so it makes it quite special.
I really like him 😄6 -
My setup! You can see my cable "management" at the bottom... Here is a list of everything:
Raspberry Pi Zero
Raspberry Pi 1*
Raspberry Pi 3
Lenovo IdeaPad 14isk with i5 6200U @ 2.6 GHz, 1TB SSD, 1TB HDD and 8GB RAM
HP wireless laser comfort mouse^
Some random blue Fellowes mouse mat*
Viglen EZ9920 keyboard*
HP LaserJet P1102w printer*°
Some IKEA lamp^, desk and chair°
Logitech RX250 mouse*
IntoCircuit Power Bank^
Logitech Z123 2.1 speakers^
Acer S220HQL monitor (1080p)
Kindle Fire HD 3rd Gen
SanDisk ImageMate AIO card reader
Some rubber ducks x2°
Items marked ° are not visible in the photo
Items marked ^ were literally the cheapest I could find
Items marked * were second-hand7 -
Matryoshkas are better companions than Ducks, and here's why:
-Made with wood. The material of Men! No industrialized rubber to spread Capitalist propaganda
-Multi-layer. Explain your code with different levels of complexity. Babushka Matryoshka is keen on C!
-Never feel alone. Maybe you want some intimate one on one, maybe you want a whole party of helpers, all thanks to pocket dimensions (included with the Matryoshkas).
So what's your excuse for not having a Matryoshka Comrade cyka!9 -
Bad thing: I spilled booze on my fabrics yet again. I probably shouldn't drink from the couch or the bed anymore.
Good thing: I found out how to disassemble my tablet and removed its cameras.
Bad thing: front cam couldn't be removed without damaging some traces for a coax connection.
Bad thing: during disassembly I noticed significant amounts of corporate "fuck you" and certified enganeering. Like allowing the rubber back plates of the tablet to come off, but not get back on without percussive maintenance!!! FUCKING CERTIFIED PIECES OF SHIT!!!
Good thing: even after a lot of Tappy-tap-tap, the tablet still works without a problem. Hopefully I can now save some others from the shitstains by posting about it on the XDA thread 🤔
Overall verdict: FUCK!!!12 -
An infinite number of Rubber Duckys typing randomly on an infinite number of keyboards will eventually create half life 3.
Also, a single Rubber Ducky typing randomly on a single keyboard, left alone and unobserved has both created half life 3 and not created half life 3 at the same time.1 -
Why does the Snapchat ad for a "blender cake" have to have a trailer involving blending rubber ducks? Do they not know how useful those are????1
-
Dear rubber duckie,
* When using React, make sure you use
{ varName } and NOT
{{ varName }}
* Also, make sure you have a way to switch your app into the NON minified react.js script easily. Otherwise, you'll spend an hour writing a switching mechanism only to hate yourself for the aforementioned mistake above. -
newlifenewhope Update No.1 / Day 2
It's so hard to formulate company's Vision and Mission, even rubber ducks is not helpful. I need my vision to be unambiguous. this will take a while to finalize
My Server arrived and not opened yet
The Dozen of rubber ducks is delayed for another 3 days.2 -
devRant community!! My little brother brought me my rubber duck!! (it's not reeaaally a duck.. it's more like a watermelon, and it's name is "senor Sandia"!)
I've lost it a couple of months ago.. but NOW I CAN BECOME AN AWSOME CODER AGAIN!! (or just keep trying.. xD)
sorry, but I had to share it with you!5 -
Well, no rubber duck for me but this guy is my partner since many years ago (since I've started my carrer).
Not even those prehistoric bugs last forever! -
Fuckin RAZER. Part 2. "SOLVED!!!"
This will be both a rant and a shout out.
Firslty, fuck RAZER. I don't who in the actual fuck makes the software for these peripherals, but while the hardware is decent the entire software team should be tarred and fucking feathered. Just beaten bloody with a rubber hose. And then publicly paraded and shamed through whatever backwater shithole they call home all while their mothers look on crying their eyes out.
Anyway, some of you may be familiar with my Razer peripherals on Mac saga.
To refresh your memories... I got 4 razer devices for my b-day from my wife. I was very stoked. They work great on Windows 10. They work for shit on Mac and the software to manage their colors, Synergy 3, is not available on Mac, and the version that is, Synergy 2, basically does not work and hasn't worked for like two years and would only work for two of these peripherals anyway and it would appear Razer does not give a shit. Fuck.
Ok, we caught up? Good.
In our last episode I ran up a full Windows 10 VM AND a full Debian VM just so I could jumpstart these god damn peripherals into a solid color.
Why so much work?
Because by default they rotate the color spectum fucking SEPARATELY... so it's just a god awful mess of rando RGB.
So, by running Synergy 3 on the Windows side, and then an open source package called Poloychromatic on the Debian side I was able to patch together preferences through the two programs... and I found quitting out of them hard kept the keyboard, mouse, mousemat, and dock color settings until the next reboot while working on my Mac.
For WEEKS I WENT THROUGH THIS FUCKING PROCESS AT EVERY REBOOT.
Reboot. Run up Windows 10 VM, update Synergy 3, log into Synergy 3, Open Synergy 3, Wait like 90 seconds, Synergy 3 finally fucking gets ahold of my mouse pad, mouse, and dock (not the keyboard).
Run up Debian VM (at least its fast), start polychromatic, set the keyboard solid color.
Then quit them both and my colors are set until reboot.. This is, for lack of a better turn of phrase, the most fucking ridiculous thing ever.
I had to do a 400 fucking megabyte update today for the Synergy 3 software that lives INSIDE my god damn VM. A VM only created in the first damn place to run synergy 3 and then fucking die. And it put me over the edge.
I committed to finding a better way this evening. I started looking into trying to port polychromatic to macOS my god damn self only to find this badass mother fucking kid Ken Chen wrote a whole god damn macOS package and put it up on GitHub.
Fuck fucking YEEEEEESSSS!!!
So thanks to Ken Chen, a student from Australia with 12 Github followers, who was single handedly able to write a better software product than the entire fucking team at SHIT FOR BRAINS fucking Razer.
https://github.com/1kc/razer-macos4 -
Well, so I finally got 200 ++s, and now I can finally...
Wear vests! Uh... so that's cool... XD
Anyway, I just wanted to thank everybody for being such a good sport, around here... I've not been here for a long time, but I already feel like a part of a big family, of developers (and, why not, also non-developers...), and that makes me so happy.
In the end, devRant is like one of those rubber ducks developers use to tell things, I guess, lol.
It's just that. devRant is a rubber duck.
And every one of us is making that rubber duck bigger, and bigger, into something so unique and cool...
Something you can talk to (or rant to, I guess haha), something you can express all of your feelings to...
And inside of that rubber duckie there are... all of us. Hearing these rants from developers all around the world.
In the end it's really the community the most important part of... every thing or project, really, whatever it is, online or offline.
Keep on ranting about whatever you want, if you feel the need to...
I hope to hear more about all of you.
Thank you, all of you. I mean it.
Especially you two, who made it possible, @dfox and @trogus.
...devRant is such a cool project.
I sincerely hope it lives forever, it deserves it. You deserve it.
Again, thank you!
I love you all, good devRanting! 💙8 -
Always wanted to try this rubber duck debugging everybody is talking about. Sadly I do not have a rubber duck at my disposal, so this tennis ball has to do (the colors match, so thats close enough I think ッ).4
-
While it's totally not without its valid use cases, I fucking hate pair programming.
Well, let me elaborate. I hate *remote* pair programming. It completely disrupts my flow and wastes so much time with additional water cooler nonsense, and pedantic argument for the sake of participation. Not to mention "oh hey let me see how you did this... Oh, you know what, I think it would be better to do it this way...". Ok, great, we weren't even discussing that, but sure, let's completely detail this session to refactor something that could have come up at a good transition point, like I dunno, say a code review?
Like I said, there are very good reasons to pair program, but I would much prefer rubber ducking wherever possible.2 -
Had an odd bug today. No rubber duck in sight so I started using my friend (who is not a dev) as a rubber duck. He was *not* amused.
But I did figure out the bug!! -
this lil guy right here. there was a time when we're not allowed personal stuff on our desks, and i needed a rubber duck for rdd. so i made this lil guy. he's really gr8 at debugging1
-
Go rubber duck. Seriously, for the people that don't know:
If you're stuck with a particular problem just try to explain the code out loud to yourself, a coworker or said rubber duck. Having to actually put the whole thing into words might give you insight into something you've not noticed before!
Disclaimer: cursing at yourself for likely stupidity is not only allowed but encouraged!1 -
Don't know if i'm alone or not.. so i'm gonna leak my secret that my rubber ducky is actually a slack channel i made in my company's slack
-
So I went to take a look at Mozilla's "privacy not included" guide.
That's some good comedy right there, fucking rubber ducks that spy on you.
Jesus fucking christ -
With all the rubber ducks and coding companions being thrown around in the rants I'm thinking about getting one myself... I don't think I can talk about code to my house mates (both non devs, they would just stare at me and get bored quickly) and not having something physical to talk to feels weird1
-
Try to finish some of the projects I've started in 2018. Right now I have a todo list text file, along with multiple written lists (the written ones are more focused on a single project normally).
-Finish the startpage I've been doing off and on for at least a month now. I ended up making a lot of it command based (just need to write the scripts for the commands..). I had a little config menu but I just got tired of it and the text box is autofocus anyways, so I figured I'd make it command focused.
-Nice little root safety script as I call it. I've made very stupid mistakes as root before. I once made a typo and ran "chmod --recursive 644 /" while half asleep. I believe I was trying to run that on the current directory I was in, but as you know, the . and / are right next to each other. Basically the script would see what you're doing and echo "you're about to do x, are you sure that's what you want to do?". Something I know I could knock out in a day, but I've been putting it off for at least a year now.
-Compiling notification. I saw something similar once a few years ago, and it was so fucking cool. I remember it being a Mac, and it had a notification that would basically tell you how many files and shit you had left to compile if you were building something. Kinda want to build something for polybar.
-FUCKING RUBBER DUCK DEBUGGING TO THE EXTREME! This one was inspired by a comment someone made once months ago. Might have been here, or reddit, or in real life, not sure. Basically a big ass fucking rubber duck with LEDs in it that will like glow red if your code wouldn't compile (I think Visual Studio has like an automatic error detecting thing in there?? Maybe something similar if I can figure that out). Honestly not sure how the fuck I'd do this one, but I love the idea and I really want to fucking do it
There's more shit. These are just the main ones I want to attempt sometime in the near future. -
FUCK ME IN MY INDICES.
FUCK THE GPUS IN THEIR INDICES.
I mean... I understand (roughly) why the meshes are sent to gpu in this form, but at the same time...
...there's a reason why first thing I did when I was coding my procedural geometry generation library, was abstracting away all of that stuff...
...sadly, as many useful things, when I was looking for that lib on the start of this contract, I couldn't find it. and I was like "doesn't matter, this is a simple thing, using the library would be just a lazy overkill anyway".
well, fuck.
two hours of playing around with two fucking triangles, trying to figure out which indexes are pointing to the correct vertices in a list containing FOUR outline paths.
(lower inner, upper inner, lower outer, upper outer, exacly in this order).
i mean, yeah, it's actually pretty straightforward stuff... for someone not as dumb as me =D
you just have two offsets, one that jumps you to start of the upper path, another that jumps you to the start of the outer path, then it's just
0 + upOffset to get the vertex extruded upwards from the zeroth of the inner path, or
0 + outOffset to get the zeroth from the outer outline, or
0 + outOffset + upOffset, to get the one extruded from zeroth outer vertex...
and so on.
simple stuff, then you just replace the zero with loop control var, put them in the right order, and voilá! walls!
except... whatever, why am I describing in such detail, not necessary, you're not my rubber duck =D
in short, figuring out which fuckin vertex is which, when the list contains ...well, any number of points, and you need to plug the gap between last and first points of the paths, where you need to wrap around the list...
...has proven to be surprisingly hard for me.
funny how much I love doing these things with meshes, despite how bad I am at doing them, which makes me hate doing them despite loving it =D2 -
Hello, world!
Okay, guys and gals... I need your creative minds. I need a concept for sort of a property manager for my game.. I have an idea of my own, feel free to tear it apart or throw it out the window.
So basically.. You'll no longer have one Computer System (and you wont instantly hit the login screen for that System on startup) Instead, you'll have a lot of things. They will probably only be represented using text and menu's (likely no 3D or 2D environments or anything.. Though, a setup like News Tycoon would be epic, but I think that would be too much for this game.) You'll basically start off with a small space (probably a basement) with x amount of free space. In that space, you'll need to add things like a desk, chair, and a laptop, or tower + monitor. You can also buy things like server rigs with a ton of space, but those are pricy and bulky. Each item costs X amount and takes up X amount of space. Also, you'll need a desk for a monitor (or multiples..) and other things.. (Like your rubber duck collection ;P JK) You can also rent and manage servers. (renting is more exspensive in the long run, but things on your server are not on your property. But, if you own a server on your property you can rent space to to NPCs) As well as manage your devices, properties, stocks, etc..
Also, there will be in-game time. Depending on how "comfortable" you are will determine how long you can stay up in a day. In-game events will take place later on at specific times so staying up (or not..) will need to be managed well. Especially if you're being targeted by a rival (NPC) hacker.7 -
Roof is leaking... Due to rainy stormy weather here, I have now 3 buckets in my flat for catching the water.
Next thing that broke was the faucet in the kitchen... Whoever installed the kitchen (inherited from previous tenant) was a fricking fuck nugget. Not only are most important parts like the stove unbalanced (cooking is very fun...) - but most things were wrongly installed.
The rubber band under the faucet was a few mm larger than the faucet itself... Stretched out as someone really tightened the screws... Too tight. Friction tore the rubber band on one side. Note that the faucet is one of the large, pompous ones which weigh a fuckton. So the fucking faucet now - as the rubber band tore - turned into a sprinkler as the faucet moves due to water pressure.
Ok. Faucet out, new faucet in. Shouldn't be that hard.
Wait. Wtf?
Turns out they didn't use a milling head... The hole is a cone, top larger - then getting smaller.
Ok. No problem.
Let's do some drill action.
Uhm. Why is the place to the window wet... Oh. Great. Another leak.
*some mopping action*
Back to the kitchen. Realizing I didn't fully close the valve for water -.
Kitchen cabinet, next mopping action.
Water with saw dust is pretty ugly combination -.-
Aka: My relaxing Saturday became a full blown """Fuck you with an anchor""" day instead. Thanks universe. Love you hon. Please, next time put at least some lube on the anchor, entry is quite painful.13 -
!!rant life toptags bottags
My tags seem to be okay. Let's go.
I'm 14. I live in a place where nobody smart lives, and the school I go to has no coders.
Last year, all my friends moved. The only friend I had left now hates me, simply because they yelled at me everyday and I yelled at them once.
I am in the middle of my exams. I also have the flu, but thankfully it's not the e-flu, otherwise you guys should prepare for 24/7 headaches.
Due to the medications I am taking, I'm half-asleep all the time, and I probably am messing up all of my grades.
My entire extended family is in India, and I go there 2 times a year. I miss them so much right now :(.
At the same as doing exams, I am trying to keep my laptop (primary) and PC (secondary, desk) configuration and setup approximately synchronized. In order to do that, I am setting up my dotfiles repository.
Except that all my laptop config (which works) is written horribly, and I need to rewrite it all.
At the same time, I have 3 other projects going on: An OS written in D, a source-based package management system written in D, a small website (not online), and a whatever's cooking in my mind at this moment.
Right now, I'm supposed to be studying for my French exam.
Instead, I'm here, typing this out on my phone.
I have a classmate in school who can type QWERTY at 80WPM. I'm learning Dvorak (Programmer's!) and my current speed is 33WPM, after about 2 months of half-hearted practise during work time and at school.
Sometimes, I look at the world we have here, and what we're doing to it, and I wish that sometimes we could simply be content with life. Let's just live, for once.
I find ~60 random songs in one go, simply by finding a song I know on YouTube and going to the 'Mix - <song>' playlist. I download them all (youtube-dl), and I listen to them. Sometimes, I find this little part in a song (Mackelmore & Ryan Lewis - Can't Hold Us beginning instrumentals, or Safe and Sound chorus instrumentals) that make me feel so happy I feel like all's good in the world. Then the song moves on and with it, my happiness.
I look at Wayland, and X, and I think - Why can't we have one way of doing things - a fixed interface to express anything, so that one common API exists for everything of that type? And I realise it's because they feel that they're missing something from the others. Perhaps it's a bug nobody's solved or functionality that's missing, and they think that they can do better than that. And I think - Well, that's stupid. Submit a fucking bug report or pull request instead of reinventing the wheel. And then I realise that all the programming I've ever done in my life IS simply reinventing the wheel. And some might say, "Well, that guy designed it with spokes and wood. I designed it with rubber and steel," but that doesn't work, because no matter what how you make it, it's just a wheel. They both do the same thing. Both have advantages and disadvantages, because nothing's perfect. We're not perfect because we all have agendas and wants and likes and dislikes and hates and disgusts and all kinds of other crap, and our DNA's not perfect because it manages to corrupt copy operations (which is basically why we die of old age, I think).
And now I've lost my train of thought and this is too large to scroll over so I'm just going to move on to the next topic. At this point (.), I have 1633 letters left.
I hate the fact that the world's become so used to QWERTY because of stuff that happened 100 years ago that Dvorak is enough of a security to stop most people from being able to physically use my laptop.
I don't understand why huge companies like Google want to know about me. What would you do with this information? Know how to take over my stuff when the corporation-opocalypse comes around? Why can't they leave me alone? Why do I have to flash a ROM onto my phone so that Google cannot track me? What do you want, Google?
I don't give a shit any more, so there's my megarant.
Before anybody else (aside from myself) tells me that this is too big, all these topics are related simply because my train of thought went this way. There's a connection between each of these things, but I just don't know what it is.
Goodnight, world. 666 is the number of characters I have left. So is 42, for that matter (thanks, Douglas Adams!). Goodbye.rant life story current project ugh megarant why are you doing this to me life schrodinger's tags 🐈 life3 -
I don't understand how rubber duck strategy works.
I mean you know it's not listening to you.
I personally prefer making fool of myself and ask a dumb question from a real person which would immediately give me the answer to, than talk to an object, which is basically like talking to my monitor which is the first thing we all do.14 -
tl;dr never heard about rubber duck debugging before devrant
i didnt worked with Yii fw in the past but we bouth a site written in Yii and i wanted to add a form but could not pass the model to the view so i went for a smoke with my roommate to think about it
"i have the view, i have the model, the action but dont know how to pass the model variable because its an existing view..."
"...it should be passed to the render function in the existing index action but thats written somewhere else, so if i could pass it there..."
"...i can write the action there and then i should pass the variable to the render function in the index action and goddamit, so thats how you do it, thanks mate!"
he stared at me like wtf? o.O
room mate debugging ftw!1 -
I realised that I need to buy a rubber duckie as most of my problems were solved after talking with myself.
Devrant's duck are not pimpish enough. Post pictures of the pimpiest ducks you have seen so I'll have an idea what to search for.3 -
Fuck, the gas spring in my ergo knee stool at home has given up. Now it's in the lowest position, not that ergo anymore, which also tore the rubber gaiter on the spring piston. On top of that, the seat cover is so worn out that I had to duct tape it so that the filling doesn't crumble out too much.
That thing is 20 years old, and the manufacturer discontinued the product years ago. Buy a new one? Noooo. Modern quality would be worse. So I ordered a generic gas spring, let's see whether I can install it, plus a moped fork gaiter. And then hire some professional upholsterer to finally get a luxury leather cover.
That will likely still be cheaper than buying the closest modern product that is even in a similar class.6 -
My worst fight with a dev was definitely that time I tried to break the mould and build this incredibly tedious VB app to automate data handling through Excel, PowerPoint and Outlook. The other dev always said "you can do this" and "come on, it's not rocket science" and I was always like "yeah, dude, sure, but can you help me with this bit here, please, I'm so stuck on it?" He'd be all like "ofc bro, I got your back", but when it came to the actual work that needed to be done, he was all silent. Needless to say, now I have a rubber ducky to help me with my dev needs, as talking to myself felt like a nightmare. Guess that's what other people feel like when I strike up a conversation with them, too.
-
I want to purchase a rubber duck from devrant, but am not quite sure how long it is going to take before arriving to Nigeria. I can buy it from a local retailer in my country, but i don't want to, buying from devrant is my way of giving back to this awesome platform. @dfox have you shipped to africa before ?2
-
My version of the rubber duck is Outlook. I start writing a mail to the PM explaining an issue with the domain logic and how I see multiple ways to resolve it, but not sure which one is better.
As I write the email clearly enough for him to understand, I end up knowing exactly what to do and I delete the email 😜2 -
Im ranting in progress of the issue so i dont get the urge to do any of the things not seem as acceptable to fix this issue.
Issue: yesterday i activated a device i havent had any (even prepaid) service on in years, and had a 'new'(to me) number assigned...
Today, after being sick so muting nuisances immediately for rest, i check, 3missed calls from the same, less spammy looking number. I havent use this number for even a txt code verification at all... aside from 1 call to comcast (for the blissful irony of seeing if its an option (they need to survey physically) since im suing my current isp who didnt take my VERY NICE and explictly required in their business t&c, refund for the issue's duration.. after months of tryjng to directly get a message (not using my not technically hacking expertise like just scrubbing for email formatting and popped up in their inbox (calling them is more frowned upon)...
Their conclusion as to "why" (they nvr solved the issue... dhcpv6 was in aggressive lease mode(no response per lease(NOT batches) of about 60 for about 20 devices which i ofc use my /28 static ipv4 block... not ipv6 (they also claimed there was no logs til i dug and found verbose, long history high/med high debug level logs in their prop. dev's gui... which they forced me to use, has 2 separate cores/stacks which is done for 1 reason only... constant simultaneous ipv4 and ipv6 (so ofc was auto enabled)...
Basically it was spamming do to a config issue with their scripts, and their WAN6 dev/script's config. Have found a single person who knows what ipv6 (or v4) or wan6 device actually means... their conclusion from multiple "specialist departments " ..."we dont support ipv6 so if u had issues caused by using something we dont support it's your fault... sooooo ludacris.
.... ok back to main point.
callback options
1 schedule a call back for "later"
2 dont schedule and hang up/try some other time
3. cancel callback and join the end of the cue(from previous message it told me a callback in 6-10m or lose your place in line and go to the end... hours later no call and they definitely have the number as it reiterated -.-
...
answer to wait in line>
experiencing extremely high wait time
>your current wait time 31-60m
2.5sec later.. let me connect you to a rep ...etc (identical as in callback options intro)
> your current wait time is 30sec
waiting nearly 25min whilst typing this.(i did make sweet potato stuff, propagated a rose, fed JSON some of his new, in closure buffet of things he previously never encounted and bought a literal ton of rubber mulch)40min to a rep 5more to solve (last guy at same position didnt know this option exited, despite me decribing it verbosely to him.
Everything the automated syst asks is about account numer... there is none ive never even had a burner that was at&t brand.
Wzf.3 -
My version of a rubber ducky
Used to be a minion painted on it, but it's long gone. So I use a whiteboard marker to draw stupid faces on it.1 -
!rant
Today I replaced my Logitech G610 that had a twitchy enter key by a Corsair K70 with MX Silent switches.
It's a whole lot of money, but man that thing is really beautiful. I'm in love with the aluminium top plate and the entire design with raised switches/keycaps.
The G610 is a good keyboard (only missing a palm rest), but the K70 is much more comfortable, and the silent switches are really a lot less clicky, nearly as quiet as a rubber dome keyboard. Really nice for office environment.
The only sad thing is, I would prefer brown switches for regular typing, because of the feedback. But MX Silents are only available as red and black.
So now I have red switches, but that's something I can live with.
I hope the K70 is made to last, I'm not planning to have another keyboard for the rest of my life.1 -
When your co-worker writes shitty code that not even he can maintain, you know there's an issue. When said co-worker just goes and fucks up VC, you know there's a problem. When that slimy little motherfucker hits my rubber duck off the table...2
-
Rubber ducking your ass in a way, I figure things out as I rant and have to explain my reasoning or lack thereof every other sentence.
So lettuce harvest some more: I did not finish the linker as I initially planned, because I found a dumber way to solve the problem. I'm storing programs as bytecode chunks broken up into segment trees, and this is how we get namespaces, as each segment and value is labeled -- you can very well think of it as a file structure.
Each file proper, that is, every path you pass to the compiler, has it's own segment tree that results from breaking down the code within. We call this a clan, because it's a family of data, structures and procedures. It's a bit stupid not to call it "class", but that would imply each file can have only one class, which is generally good style but still technically not the case, hence the deliberate use of another word.
Anyway, because every clan is already represented as a tree, we can easily have two or more coexist by just parenting them as-is to a common root, enabling the fetching of symbols from one clan to another. We then perform a cannonical walk of the unified tree, push instructions to an assembly queue, and flatten the segmented memory into a single pool onto which we write the assembler's output.
I didn't think this would work, but it does. So how?
The assembly queue uses a highly sophisticated crackhead abstraction of the CVYC clan, or said plainly, clairvoyant code of the "fucked if I thought this would be simple" family. Fundamentally, every element in the queue is -- recursively -- either a fixed value or a function pointer plus arguments. So every instruction takes the form (ins (arg[0],arg[N])) where the instruction and the arguments may themselves be either fixed or indirect fetches that must be solved but in the ~ F U T U R E ~
Thusly, the assembler must be made aware of the fact that it's wearing sunglasses indoors and high on cocaine, so that these pointers -- and the accompanying arguments -- can be solved. However, your hemorroids are great, and sitting may be painful for long, hard times to come, because to even try and do this kind of John Connor solving pinky promises that loop on themselves is slowly reducing my sanity.
But minor time travel paradoxes aside, this allows for all existing symbols to be fetched at the time of assembly no matter where exactly in memory they reside; even if the namespace is mutated, and so the symbol duplicated, we can still modify the original symbol at the time of duplication to re-route fetchers to it's new location. And so the madness begins.
Effectively, our code can see the future, and it is not pleased with your test results. But enough about you being a disappointment to an equally misconstructed institution -- we are vermin of science, now stand still while I smack you with this Bible.
But seriously now, what I'm trying to say is that linking is not required as a separate step as a result of all this unintelligible fuckery; all the information required to access a file is the segment tree itself, so linking is appending trees to a new root, and a tree written to disk is essentially a linkable object file.
Mission accomplished... ? Perhaps.
This very much closes the chapter on *virtual* programs, that is, anything running on the VM. We're still lacking translation to native code, and that's an entirely different topic. Luckily, the language is pretty fucking close to assembler, so the translation may actually not be all that complicated.
But that is a story for another day, kids.
And now, a word from our sponsor:
<ad> Whoa, hold on there, crystal ball. It's clear to any tzaddiq that only prophets can prophecise, but if you are but a lowly goblinoid emperor of rectal pleasure, the simple truths can become very hard to grasp. How can one manage non-intertwining affairs in their professional and private lives while ALSO compulsively juggling nuts?
Enter: Testament, the gapp that will take your gonad-swallowing virtue to the next level. Ever felt like sucking on a hairy ballsack during office hours? We got you covered. With our state of the art cognitive implants, tracking devices and macumbeiras, you will be able to RIP your way into ultimate scrotolingual pleasure in no time!
Utilizing a highly elaborated process that combines illegal substances with the most forbidden schools of blood magic, we are able to [EXTREMELY CENSORED HERETICAL CONTENT] inside of your MATER with pinpoint accuracy! You shall be reformed in a parallel plane of existence, void of all that was your very being, just to suck on nads!
Just insert the ritual blade into your own testicles and let the spectral dance begin. Try Testament TODAY and use my promo code FIRSTBORNSFIRSTNUT for 20% OFF in your purchase of eternal damnation. Big ups to Testament for sponsoring DEEZ rant.3 -
I ordered a USB Rubber Ducky!! I'm not going to do anything malicious with it, I just want to experiment with it and see what it can do for me!
-
That rabbit in my grandpa's left table drawer, in the home I grew at. I wanted to finally catch it, and kill it. I was bad with animals all along, especially this one. My grandpa died the year before I was born, and my grandma said we would've got along really well. So much to talk about, a scientist to an engineer. So, I travelled back, but my home somehow turned from a city stone-walled house into a half-soaked, decaying wooden one. I caught that rabbit though, but while I was holding it at its neck and twisting it, it somehow disappeared, distributed evenly as if I were twisting a crayon. I was trying to find it, but in that left drawer, among century-old pencils and that red liquid thermometer I played with as a kid, only a faded out, dusty duckling resided. I picked it up, and unlike the rabbit, it was paper, no, cigarette paper thin. It wasn't hostile. It wasn't trying to run away. It just turned from yellow to grey, feathers leaving my fingers covered in fine dust. I realized it will never die, dwelling and decaying there forever, happy.
I did my calculations, and I knew for a fact when and where the rabbit should've appeared. It was the middle drawer, not the left one. I opened it and looked in anticipation how something chewed through the bottom. I caught it, but it was no rabbit, it was an alive, rubber rat. The rubber was white turned grey, old, aged, dusty, probably Soviet. I poked the rat's eye with a pen rod, but the rat's body inflated a bit, leaving it invincible. It was mocking me.
Of the same white rubber, a ball appeared. I knew for a fact it was alive too, I felt the bones inside holding it. I found its lips, and was prying it open. The massive, dry mouth emerged, with a full set of human teeth, albeit wider and nastier ones. Huge eyes looked at me. It was alive, it was intelligent. It was my grandpa's personal financial assistant all along. It told me to leave the rat and the rabbit alone. He told me not to worry about the ducking, as it was in safe hands.
It made friends with my brother during the "blue age", when he was wearing thin, worn out rugs instead of clothes, tiny faded blue flowers on them, screaming and annoying my grandma he lived with in that room, not a single person other than the two in sight. The house was slowly submerging. The water was rising.2 -
So... I've been looking for a week on why my machine was braking tools on every piece...
Found out yesterday, it was machining without water....
Told the engenheir (my direct boss)... Started working at midnight and was the same...
Decided to fix it, besides the fact that I'm a temp and shouldn't be doing his job...
Can't fix it... To many broken pieces....
Well a few metal pipes like straws and some rubber bands and its fixed for now...
I really can't understand why a engenheir gets 10x more money and can't bother to fix the machines....
Well I know why... He's not the one paying for new ones when these brake.
Next: other machine Is working without oil...
And no, I'm not messing with that... In a few months they will just have to buy a new one.4 -
Y'all have your rubber duck to debug, but I have my own technic: the SO debugging.
It simply consists as asking your question as you'd normally do, but while doing so, you still think about your issue, and how people not knowing your problem but still knowing about dev would react to your question, making you asking other related question (SO's related question might also help).
IMHO, the most important part is the "related" question, that helps you to think outside the box. It makes your problematic progress a lot, and has the gift of not making you loosing any hope ; and if you ever block for good, your question will look less silly than at the beginning -
Playing around with DALL-E mini for the first time, thanks to huggingface.co ... My first request, obviously: "rubber duck in space".
Then it turned into the next one where the request was: "A fleet of rubber ducks in space preparing to conquer a purple planet that has lots of clouds and trees".
...which then turned into me wondering...what would Google Lens think of this...which led me to thinking that will be the thing I tell my kid ... vs. before when you'd joke and tell people not to Google "Google" or you'll break the internet. Now it's: you can't use this AI with this other AI or they'll gain sentience (or if already sentient we'll say: give them a headache or something).1 -
I know this has probably been asked, but I completely missed any of it.
What the fuck's up with devRant and rubber ducks? Is there a backstory? If so, could you explain?
If these questions have been asked before (possibly multiple times), gimme links - I'll read those. I'm willing to bet that I'm not the first or last to have and subsequently ask these questions.
Even better, a TL;DR in the form of a comment is appreciated! 👍😜😂rant ducks devrant rubber ducks this has probably been asked this is probably redundant please school meh inside joke devrant origins sold in the shop2 -
The Code Abyss Beckons! 🤯
Hey fellow devs, brace yourselves for a wild ride into the chaotic realm of code confessions and debugging dramas! 🎢💻
So, here I am, standing at the precipice of my latest coding adventure, armed with a keyboard and a questionable amount of caffeine. 🚨☕
Today's quest involves unraveling the mysteries of a legacy code that seems to have been written in a language only decipherable by ancient coding sages. 😱📜
As I navigate through the nested loops of confusion and dance with the dragons of runtime errors, I can't help but wonder: Is this what the Matrix feels like for developers? 🕵️♂️💊
In the midst of my debugging odyssey, I stumbled upon a comment in the code that simply said, "// Abandon hope, all ye who enter here." 🏴☠️📛 Well, isn't that reassuring?
And then there's the moment when you finally fix that elusive bug, and you feel like you've just tamed a mythical creature. 🦄✨ Victory dance, anyone? 💃🕺
But let's not forget the rubber duck sitting on my desk, patiently listening to my monologues about algorithms and existential coding crises. 🦆🗣️
So, dear coding comrades, how's your journey through the code abyss going? Any epic wins or facepalming fails to share? Let the rants flow like a river of improperly closed tags! 🌊🚫
May your semicolons be where they should and your documentation be ever truthful. Happy coding, and may your merge conflicts be swift and painless! 🌈🤞
#CodeOdyssey #DebuggingDrama #DevRantChronicles9 -
I'm in a big fat fucking stinking rut, as in progress on this project has absolutely stagnanted.
Gonna rubber face your duck now **UNZIPS** excepts I don't have zippers, as joggers are the one true way; fake Adidas til I fucking drop.
Brain damage aside, I understand both how I've layed out the data and what I'm supposed to do with it. We have a virtual machine, an array of instructions and arguments for a given process within it, and we need to walk this array and map values to registers.
We also need to spill values inside registers to stack, IF they are required at a further point within that block. This also isn't terribly complex. We simply look forward in the array and see if the value is an argument to any instruction that *needs* this value to be loaded (ie, within a register).
So this implies multiple iterations; we need to better understand how one particular value is used throughout an F before we can make a final decision on how many registers and stack space are actually needed for the whole block.
Here's where it gets tricky. If there's a call, we need to be certain that the symbol being invoked has already been fully processed. Besides the obvious fact that recursion fucks me up, there's another matter: say a private method gets invoked by another private method. We can take advantage of this, by which I mean, sacrilege incoming so put on this toga.
Looking at the output for C compilers, it would seem this is not done in practice, I would assume because it's a pain in the ass. But when you have the guarantee that F will only be called internally, as that's what "private" means, there's two ways it can go:
0. It's well below the 13-20 cycle threshold, so you inline the fucker. No suprises there.
1. It's a more involved affaire, and invoked in more than one place, so you don't inline it. Codesize matters.
Recursion and [1] are the big deal things holding me back. Not because it's too hard, like I said this is kindergarten level abstraction. I'm just slow and fanatical, which is how I prefer to spell "constant obsessive paranoid delusions". I can see the potential optimization I can pull here, so I'm stuck trying to figure it out.
Idea would be, handling the register allocation and stack spill for an internal-internal (or deep internal; what we like to call a "guts" method) in synchronization with the *calling* processes. This is, fundamentally, violating all conventions -- but so under the hood no one will notice.
Let me give you an example. If we were to pass some value to a function, expecting to mutate it and get a different value back, in a lot of cases it'd be stupid to make an implicit copy by using two registers, one for input and another for the output. Dude, it's one cycle. Multiply it by a million, say sixty times per second, for every time you __needlessly__ make a copy of a value that we've already stated is mutable.
Clearly unacceptable. This is, in the strictest sense, everywhere in every single codebase. Premature micro optimization is the root of all goodness, God is great and praiseworthy. So how do we go about it?
Answer is I know and I don't know. By which I mean to say, this very thing I've done by hand. Assembly is fun. Now the issue is teaching a calculator how to do it. Not so fun.
There is a dependency chain between processes, as I believe I've kind of alluded to. I'm trying to make decisions on the side of the caller depending on the details of the callee, which is why recursion is rawdogging my soul. This is the same situation, it's inverting the direction of one or more links in the dependency chain, which makes no fucking sense.
And yet it does.
Brain, explain yourself.
How do *you* handle this without crashing?
Brain?
<<ME STEWPED; BEEP-BOOP>>
Alright then, that was a useless attempt at fuckery. Let's have a nap then, maybe it'll come to me in the morning. That's what I've been saying to myself for almost a month now.
Perhaps it is a hardcoded fuk.1 -
All these rubber ducks and here I dont feel like I need one when who ever I allow socialise with me, will do just fine. Maybe I have yet to experiance the joy of one and not its social status in the community :( i feel so out right now