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 - "thread"
-
We had recently a thread asking about our internet speeds, this seems relevant to most of what I've read in the comments so far.2
-
I accidentally created a bug that became an amazing feature at my last job.
It was for a program to read barcode tickets (we created software and web solutions for events), and to register the barcode sacnners to the computer I had to do some magic with USB-detection since it was not specified which brand the scanners would be (so no SDK would be available).
When the scanner was plugged in it would create its own thread so it wouldn't interfere with the UI of the program when it was reading/sending data.
Somehow I messed up with the thread termination for new scanners so it would accept to connect more than one scanner and it would work flawless since it was its own thread in the program.
When I tried to think out a solution for multiple scanners when planning it I got a headache and thought that's something for later. Turned out alright in the end apparently.8 -
"Got a cool idea! Need to check if it is possible. "
*Proceeds to do some research on the internet*
"Oh great! A thread about it from two years ago! It must have the solution there!"
...
*It was me creating the thread two years ago*
Mfw12 -
1. Search on google for an answer
2. Find someone asking the same question on some forum
3. See the question has an answer
4. The answer is "Please search yourself before asking. Thread locked."
This happens too often..4 -
It's important for developers to remember that......
For the rest of the world a "string" and a "thread" are the same thing..4 -
*1 week into dream job*
Me: I need to communicate this variable to a script running in another thread, how do you normally handle that?
My Lead: oh, just add it as a global variable
Me: oh no...3 -
Got this cool af pen drive from the company I an interning at. ✨🤩
Let's make this a cool pen drive thread!29 -
A nice thread to spend some time while waiting for RDS to scale up :)
https://twitter.com/RandallKanna/...6 -
Manager: our file IO is slow, any suggestions to make it faster?
Code: multithread writing to a few hundred small (temp) files then single thread combine to one big file and delete the temp files.
Eyes: bleeding31 -
It’s that time again. I should be sleeping and instead I’m on here delirious with toothache and the dread of the dentist later.
So have a face reveal thread.39 -
We've seen the 'battlestations' threads more than enough, how about a server/nas/network thread?
Here is mine tucked away in an otherwise useless part of my studie.9 -
Just found a stackoverflow thread that had no answer and 2 comments. Here are the comments:
Person 1: Did you find a solution for this?
Author: Yes, please email me [...@gmail.com].
Bruh, what's wrong with some people???? Writing nothing at all would be better then that7 -
Introducing Marvel's newest anti-hero...Threadpool. He can do three things at once...I never said it was a big thread pool. He must get revenge on his nemesis Task Manager with the help of his side kick Q.
-
BRAIN_UNCAUGHT_EXCEPTION
Could not execute "sleep()", as main thread was busy thinking about why a beautiful girl would just handle me her number.
Ok we did get on well but it was unexpected nevertheless
Thank you brain for wasting my day 👍11 -
Had quite some laugh at this, could be absolutely fake but it's still a great thread
https://twitter.com/atomicthumbs/...9 -
Its such a elating feeling when you implement multithreading perfectly.
I had a task where I read data from one table, searched on it and added the searched data to another table. The table had 0.22 million records.
On single thread it took entire night to do half of the job.
I divided it into 8 thread jobs, and pushed my quadcore to 100% and voila, its done in 2.5Hrs.
Just like Hannibal would have said, "I love it when a plan comes together"5 -
MFW searching for a solution to an issue, I find a thread about it and the only response is:
“I don’t have this problem on my end.”2 -
Me, explaining to my wife the difference between WiFi and Cellular as I explain why I need put the Pi from that other thread between our modem and router (and take our WiFi down) all so I can finally answer her repeated questions of "Where is all our data going???"8
-
<Email thread>
Manager: Hey @iiii, please, create stories for {things that shall be done}. You will be responsible for that implementation next sprint.
Me: *procrastinating like a bitch*
**several hours later**
Dev from another team: Actually, we discussed that with {upper management guy} and it seems like those things are unapplicable for current project, so we'll send a letter to {client} to remove those requirements.
Manager: @iiii, don't create stories.
</Email thread>
Me: *welp, good thing I did exactly nothing so far*6 -
Just read a forum thread where someone uses an excel spreadsheet as their database for a PHP website. What makes it worse is they have done this for the past 12 years.
Is this real or someone taking the piss?11 -
HR: I’m sure you know what this meeting is about
Dev: My script that converts the name of our 3rd party IT provider in any email thread I reply to with “PooPoo Inc.”?
HR: No, that is a separate meeting
Dev: Ah.4 -
Client: the app is slow
me: can you upload a thread dump to the ticket?
Client: here *uploads 2GB catalina.out.gz*6 -
TL;DR — Never ever use work chat to gossip about work. NEVER.
—
Just some minutes ago, my boss asked a mate to move aside from his computer and began checking out some docs.
By the tone he used, I assumed something was wrong, I stood from my workplace and went to grab something from the kitchen. Came back and he was looking through a thread in slack between a mate and another work mate.
I thought he was going to send something to himself but then he asked me if I could help printing out the screen. Took a quick look and they were talking shit about him.
Now, it'll be an awkward silence until I go home and those two stay to argue about that thread.
Sheez.9 -
I wrote a web crawler to find a few problems on my company's blog. I accidentally DOS'd the peice of shit with a single thread. Fuck WordPress.3
-
When you're looking for answers on Google and you come across that one thread that goes on forever; you read every last response. You finally reach the ended to see:
"Thread locked.
Issue Resolved."
You never found your answer. -
Is your 20-line long signature detailing your role, team, office location, other office locations, company division, place of birth, etc. really necessary? And on every email in the same thread?3
-
* Calls themselves "Software Engineer"
* Doesn't know what a thread is.
I swear these coding boot camps are churning out code monkeys whose real skill is building shitty React apps.
I believe a CS degree is necessary if you want to work on something more than CRUD applications.
Nothing against devs without degrees, but at least make an effort because my head will explode next time I have to explain to someone what a thread is and why it's a very bad idea to run blocking code on the main thread.26 -
"And there you have it folks. Open-source "many eyes have looked at it for years so it must be secure" crypto code."
🤘
https://threadreaderapp.com/thread/...21 -
Trying to run a process on each CPU thread in our vps only to find that our vps has just one CPU and no multi threading. :/
We need an upgrade.1 -
I told a guy to implement an algorithm in cpp. He wrote this weird 600+ lines of code which contains only global variables and void functions then I told him to make it object oriented and he just put all those garbage in the class and gave me back and on top of that class name is Template and file name is template.cpp. I don't have words to describe his code. May be this picture can help you understand my state. Oh, if you think this matchOn_r1, r2,r3 are different then you are mistaken they are just different with one argument (one global argument). This is just part of the code. He has this shit all over the place. Why the fuck this kind of people exists?13
-
!rant
Im going to boast for a second. I wrote a lockless multi producer c++ thread pool that scales linearly, doesn't eat cpu on no work, and has a proper packaged_task + futures interface. It's fucking awesome, and that is all. Thanks for reading 😎3 -
Python rant
Where the hell is Break key?!
Story: I wrote multithreaded python script and went to Lab to test it. Script got stuck (one thread died) and I needed to stop that thing, but how without magic Ctrl+Break?
Damn you Dell with your slim and minimalistic keyboards!10 -
- Team_leader_1: I know you're a frontend developer, but trust me NodeJS has threads :) sync operations don't block the main thread :)
- Team_leader_2: You need to study the theory :) NodeJs can handle further operations during the sync function :) it spawns a new thread, you haven't studied Javascript well enough :)
- Me, very ready to dab on 2 condescending little fucks:16 -
Imac - brand new <16hrs used: Disk error, probably needs to return to apple
iPhone <6 months old: loses cover
iPhone case 2hours of use: loses color
Macbook Pro 2017: randomly shuts down...
Mac mini: CPU halted error
Other iMac (old one): Thread error...
Apple, what the f is going on??? Software problems with root etc. But now, what the f!!8 -
me: *finds the thread on issue i encountered*
thread created 2014: no answer
someone replied 2015: "got the same issue any thoughts?" and no ome answered
me: it's fckn 2016 already!! -
# PROD
* 10 app instances running
* 1 instance starts burning up 100% cpu
* we ask for a Thread Dump (stack traces)
* we get a TD taken after they manually restarted the instance
* they: "Please investigate. We need this fixed ASAP"
* .....
EVERY FUCKING TIME!!! Not once in recent years have they managed to take a TD correctly. What kind of a retarded monkey do you have to be for this to not sink in for YEARS!
Who tf put those idiot monkeys there in the first place...8 -
An intern who tries not to show that he doesn't know shit has been asked for fun:
"What's the difference between a pointer and a thread?"
He answered: "I don't know, I am not experienced enough in oriented object programming".
Seriously. Bullshiting has gone too far.3 -
Thread-based asynchronity is the best because you can run operations in parallel that weren't designed to run in parallel.
Thread-based asynchronity is the worst because you can run operations in parallel that weren't designed to run in parallel. -
has anyone seen Google's AI face-tree nightmare generator? (a joke from another thread)
They need to be stopped!12 -
Holy shit. I just watched a video on Rust and I think I am in love.
Tracked mutability, reference counting, guaranteed thread safety, all in a compiled type-safe language with the performance of C++? 😍
Why did I not check this out sooner??10 -
!rant
Just saw a thread about Global Reddit Meetup Day. Do we have one in devrant? If not, is it possible to have one? I know the user base is not comparable with reddit, but it would be fun meeting other local developers who rant too 😛6 -
I am driven nearly to blind rage by people who insist on sending you issues as emails and just keep piling more emails on the same thread. For the love of everything decent learn to use a mother FUCKING ticket system.7
-
//Dunno what causes these random connection errors; probably just hiccups in connection between our EC2 instance and Discord
try {
client.login(token);
} catch(e) {
//Do nothing, just prevent it from crashing the main thread and the client will reconnect
}4 -
Preparing to debug racing condition between 20 different threads.
Not looking forward to this sprint :(5 -
let's try something...
Roast thread, please tag and insult your fellow devRanter in this comment section. Get creative in finding swearwords. Too many ++ bombs, poor code quality or you're just secretly in love with some other Ranter and hate it.12 -
Sleeping the Thread for 1 sec, because the database had no real timestamp and a transaction on the same item within the same second would lead to a doubled primary key...
No real feature, but it is a bug and this makes it a feature I guess.1 -
Ah, the old locked up non-gui thread. Bastard gets me every time. My monkey brain says "Button still work, so no infinite loop". Oh, but there DO be infinite loop.
-
Has anyone who's running a start-up had to deal with email happy clients?
I just watched a thread of 14 emails be generated for sending a maintenance contract which was already agreed upon.
Most of the emails are "thanks for the reply........."
To which some one will reply " thanks for the reply.........1 -
!rant
@dfox
Any chance the notifs can jump to the relevant item? When someone has commented on a rant I commented on, I want to start looking from that particular comment, not have to go through them all and wonder where the fuck i read last in that thread.
Thank you.2 -
Me: Can you tell me how to do X?
ChatGPT: yes, you can do xwz!
Me: I researched your suggestion and every source I find mentions that you should not do it because it would mess with the UI thread, amongst other side effects.
ChatGPT: Yes, you should not do xwz.
I’m kinda liking this thing, it’s full of noob traps.4 -
I posted a long-winded Twitter thread describing the experience I have in software development and advertising that I’m looking for a job. It felt awkward as hell to do, but yolo. I’ve had a few people reach out as a result; here’s hoping something works out. Hilariously, absolutely forgot to talk about databases. 😅
https://twitter.com/AmyShackles/...4 -
What kind of music do you guys listen too when you're coding? I need recommendations!
I can't do anything with English lyrics (other languages are fine. As long as I don't understand the lyrics, it's not distracting), so I usually stick to instrumental like animals as leaders, polyphia, Chon, etc or German metal: Rammstein, oomph, wbtbwb, etc
Whatcha guys got?24 -
When you finally understand how a RxJava operator works in different multithreaded scenarios after hours of trial and error...3
-
the guy won't reply messages, he won't do his job and everyone who depends on him is punished for his behavior. he's hanging by a thread but also no one know how to do his job because it was not documented2
-
Raised a support ticket with an api provider about unclear error messages. They were as confused as I was and as the thread continued I essentially ended up debugging thier application for them!3
-
@dfox @trogus can the notifications area be split between +1'd comments and rants and new comments? Or the ability to remove selected comment thread notifications? Cheers. Great app btw5
-
Some people in the company (3000+ people) didn't know how to use static variables (c#) in a thread-safe manner which resulted in production problems.
Only possible way to solve this in management's mind?:
Disable the usage of not read-only static variables via quality control...1 -
Weekly reminder that RECRUITERS ARE MANIPULATIVE, LYING ASSHOLES BY DEFAULT.
Nothing new happened. I have seen the thread about rec scums in Reddit.5 -
I'm so fucking sick of pouring hours of work into providing application code for someone who could give two shits about what I've done -- instead he completely fixates on what's missing or broken -- nevermind that I completely eliminated a bad UI thread bottleneck.
Sometimes I swear that coding is a thankless job and people just expect miracles.1 -
I was searching for a good answer about a problem I got. Found an existing thread on stack overflow.
Many answers, all of them upvoted but not working.
One answer being not upvoted was working.
Wanted to upvote it, signed up to stack overflow.
"you can not upvote. too less reputation."
GOD, DAMN IT.2 -
@dfox @trogus Any chance we'll be able to have the comment box a bit smaller and display the current thread at the top of the screen while a user is adding a comment? It would also be cool if we didn't lose everything we typed in if we clicked on the X before posting a comment. I know sometimes I have to take another look at the thread to make sure I am replying correctly. Keep up the good work, guys!2
-
People who don't ++ OPs, nor comments or add anything of value on social media / thread.
Please.
What is your purpose but self projection?16 -
Discussion Thread.
With all the frameworks and libraries available and game engines to develop games, its now easier than ever to build stuff.
With this in mind, do you think its necessary to have a core knowledge of how stuff work under the hood? Or is it okay to build upon and develop new stuffs on the foundations available today?5 -
You know what's fucking horrible?
Implementing new features to an Android app in production that another dev wrote...
...which has no architecture, no documentation, no modularity, no testability, everything runs on the UI thread, filled with spaghetti code and it somehow works smoothely so I have to not fuck it up.
Oh and I'm also a junior. So fuck me, right?1 -
It might seem stupid but lets do a thread with our watched. I wans never interested about those little accesories until i got mine a few months ago and now i wear it everywhere 😃
True gamechanger when talking about exams and dead battery situations as it has some machanism of charging itself without using batteries and it gloes in the dark 😏15 -
An actual email thread:
G: I need this done
Me: okay. Whats the priority, when's the due date, who are the stakeholders, what's the sensitivity level of the data?
G: Priority is ASAP, due date is ASAP, stakeholders are ALL OF IT, and i want to be able to control the data sensitivity level
...
Those arent ANSWERS; they're REQUESTS!!!9 -
*Debugs a thread synchronization issue in a C program*
*Gives up after few attempts to debug a bootstrap table that’s not showing a column* -
@Android Question
Does all android devs use Async Task for their Json calls or you prefer to do them on Main Thread ?
Am just asking to improve my skills and get some senior programmers opinion14 -
I can’t even wait for my copy of Leviathan Falls to arrive. I’m so tempted to read the All Spoilers thread on Reddit. Aaaaaaaaaaaaa! C’mon... you can do this. Just a couple more days.6
-
Currently reading through a long GitHub issue thread. For some reason people started quoting the entire message they are replying to.
The last post has 9 nested messages and the quote section is 1600 pixels tall. Who needs @mentions anyways.5 -
Can we have a general appreciation thread for the kde community?
I feel like those guys and gals don't get the love they deserve, yet a lot of us use their software, desktop environment and/or Linux distro.
So, if anyone from the kde community is here, I'd just like to say thank you ♥️2 -
aaaaaghh fucking Handlers man. Android is so fucking full of shit, i wonder why am i still doing it. love is pain.
Why can't there be one mother fucking solution to all lazy ass asynchronous programming? handlers, threadpools, asynctask, executers, Broadcasts, intentService, coroutines, rxjava,.... i don't what new stuff are people snorting these days.
Ok , leave everything. A handler is class- no sorry, Handler, alongside some fucking Looper clss (and maybe some more stuff i don't know) other classes is a way of handling inter thread communication. Handlers can:
-send data to ui thread
-recieve data from ui thread
-send "messages" to ui thread
-recieve "messages" from ui thread.
- can be attached to ui thread
- can be attached to any child thread
- can be accessed anonymosly via any view
- can be present in multiple places, working together
- can kill night king with a dagger
- can do porn better than johnny sins
- can run for president of the whole fucking world
- do some more shits that i have yet to discover
And where do i find this? buried deep insides some medium articles or in some guy's horrible accent video.
Is background processing really this much of a toughnut to crack?
earlier i was all about using asynctask or foreground/background services, because these are the most easy to understand abstraction of a fairly difficult topic.
But as i see more projects, i see underlying apis like handlers, threadpools , executers , being directly used.
Why cant there be a fucking single abstraction, that could be "lightly tweaked" to handle every ugly case.6 -
Core Thread[20741]: segfault at 0 ip 0000000000000000 sp 00007faacbff7e98 error 14 in spotify
Dude, please handle being not able to open an audio output... :(1 -
Being 8 hours trying to update the GUI from another a thread without the GUI freezing. Finally made it.4
-
I'm writing a multi threaded program right now and just pray for the threads not accessing my var at the same time :) but I cannot use a locking algo because my 1st thread needs to access that var up to 1000 times a second. Pray for it to work as it should 🤔😇9
-
If you were to teach others a last thing before you die, what would you say?
Id tell my surroundings to use time efficiently. We only have like 800.000h, assuming that we become 100 yo. thats nothing.
Please dont make jokes, id really like this to be an informative thread18 -
Endlessly tweaking your site's CSS thinking that you've gone insane until a random stackexchange thread points you to a bug that Mozilla has had open for SEVEN FUCKING YEARS.
https://bugzilla.mozilla.org/show_b...3 -
"Racing condition, meet deadlock"
"Deadlock, meet racing condition"
And they were never heard from again -
My teammate send a prank email to us(lots of bad swear words to our client)...unfortunately..he used the thread of client's issue. The next morning we're terrified to learn that the prank email was also forwarded to client.1
-
What would be the better approach for loading very big in size or in quantity files in java?
1) Loading data parallel through multiple threads
2) Loading data in series in a single thread
3) any other methodology?
Just asking because loading time is varying both cases.16 -
@dfox New excellent algo sort makes lots of old threads bumb which means better notifications is suddenly more important.
I'm wishing for notifications grouped per thread and with a line or two of the rant/comment the notifications is about. -
!rant
You know SO is the best source of info when you google a question, find a thread, find the answer that solves your problem perfectly, see that the person who answered is your next table colleague5 -
* me: we need a timeout here because this thread could leak.
* pm: I guess timeout is not needed because there are no functions which will run endless
* me: hold my beer1 -
So. Here's a cooking thread.
Please behave nicely, get ya favorite recipes out or your "my brain is melting and I randomly chop sueyed hot cooked this stuff together and it was awesome" creations.7 -
@dfox - Idea for weekly rant - worst candidate that showed up to a job interview.
Had a solid resume, claimed to be a Java king, top notch. First question after he sat down: How to create a thread-safe singleton in Java using double-checked locking?
Guy didn't know the answer. - NEXT!14 -
Why the f*ck do you want custom cursor on the site? It's annoying when suddenly your cursor changes from default. If that's not enough they are increasing size by 2-3 times. I understand if it's a gaming site or web game but why do you want to put this crap on a business site? No need to change the cursor for branding. That's stupid.2
-
The system I'm developing is depending on an image generating application, that is generating thousands of unique images per day. The kicker? The application is a single thread wpf application hosted on two desktop computers, behind a load balancer, in our server room... because 'it can't be converted to a service'...1
-
I wish people took concurrency more seriously
I get the feeling that often people start writing a project while giving 0 f*cks about thread safety, thinking that it is somehow handled "automatically" by the framework
Only to discover later that large amounts of their code are not thread safe and were only working fine in the past because there were fewer requests, so the chance for two requests happening simultaneously was low5 -
Today was the first time I used WebWorkers. I loaded it with a hyphenator script because fucking Chrome is still not able to do hyphenation on its own. For the main thread I wrote an injectable Angular service as a wrapper and to enqueue hyphenation work.
So far it works pretty smooth and quickly.
Have you used WebWorkers before? What for?3 -
!rant
mods are asleep.
all aboard the ++ train
How to:
++ all the comments in the thread. once you reach the end, post a comment. only post one comment. board the train.19 -
Guy wrote a whole ass thread explaining how to fix it and its not a big issue but the manchild elon musk's ego couldn't handle being wrong so he fired him39
-
I finally feel like a proper developer! I was googling something, found a promising thread on Stack Overflow and after going there noticed that it was my own self-answered question from some time ago that unfortunately didn't really answer my current problem.
-
Was writing a multithreaded program in Java with an infinite while loop (for waiting). The thread was never preempted. Added a print statement inside the while loop and everything started working :/
Now I need to print a stupid message just so the program works :P3 -
I swear the God I'm considering getting a rabied dog just to bite your balls off in case I ever see you in the streets..
- guys X are running load tests on env A
- load tests complete
- analysis of test results is being done
- slow response times are obsered
- someone asks whether X guys took a thread dump for further analysis
- a guy from team X (Mr. Xx) replies: "Will take the Thread Dump now."
- 10 minutes later uploads the whole fucking 2GB log file to Slack
- Xx replies: "I do not see anything wrong in the dump"
A fucking retard... Shove that useless dump up your ass and THEN tell me there's nothing wrong with it! Why the FUCK do you think that's the case? Moron1 -
We need a thread dedicated to just debating tabs vs spaces and light vs dark themes, every third post is about one of them!1
-
Seeing quite a few people post ("bump") just to subscribe to a rant.
would be a neat feature to have a subscribe to rant checkbox :)6 -
A guy asked on an online channel of programmers about buying a laptop and here's the perfect guide from an experienced programmer.8
-
Fuck Java because java is one of the worst first languages you could pick. In the following I’ll highlight two main issues. One issue, the complexity of Java, will make life more difficult for you immediately, and the other, the danger of developing myopia regarding programming languages and their capabilities, has the potential to hurt you for many years to come and possibly your entire career9
-
Just a helpful hint: if you ever run Firefox from the terminal for any reason, use "firefox &>/dev/null &". It runs on the same thread and spits out tons of random logs.
Edit: also, hello world! Almost forgot. :)2 -
this should have been my first rant, but ive never thought about this till now. here goes.
did anyone actually find out about this community by googling problems with profanity? and instead getting some thread from stackoverflow, they got a rant post from this website haha6 -
oh boy, here we go again, another hacker news "who is hiring" thread... can't wait to be ghosted / ignored by a dozen+ companies...
🙄🤡🙄🤡🙄🤡🙄🤡🙄🤡🙄🤡🙄🤡🙄🤡🙄🤡🙄🤡🙄🤡1 -
Fucking hell! Why can‘t I block notifications for a specific conversation thread for a limited amount of time in Teams? I get spammed with shit that I don‘t care about but when I block it now, I will forget to unblock it later. 😡4
-
That one guy's post from 2008 thread with no comment having same error as yours now. You scream all in your mind : @coderguy420 what did you see on screen?
-
!rant
Feature idea:
A way to mark your email message as "doesn't need a response" so you can send a simple "ok, thanks" to the email thread without triggering everyone's Automatic Out of Office Response.1 -
Always read the Stack Overflow thread carefully otherwise, you will'be the one asking a question next time.
-
*sends message in a thread at work immediately responding to message from another person*
*no response in more than 10 minutes*
*edits message to include apology of some kind*
Damn it, self. Why do you feel you have to do this?!3 -
Is it just me or everytime I look up a question and I land on Microsoft Q&A site, theres never any accepted answers?
Rather you get, this thread is closed after all these non helpful answers from staff2 -
Another unrelenting "Please remove me from this email thread" reply-all's trickling in every 5 mins today due to someone accidentally cc'ing to broad distribution group at company.
WTF is email functionality a lost art or people just trolling?2 -
When I published my first app and some people made an official thread in a forum. When I went there they told me I had done a good work. Needless to say they don't know me at all.
-
Anyone know a good site to ask programming questions that are more on the looking for suggestions side of things rather than explicit answers? Apparently Stackoverflow mods would rather wave there mighty e-peen and close a thread if your looking for suggestions on how to go about something... 😕7
-
so on android you're supposed to do network stuff like sockets and http requests on a separate thread right. lazy me released an app with a line of code (i forget what it is) that allows me to make http requests in the main thread. rip3
-
Hey guys how's it going, I just wanted to make a thread kinda rant to discuss various ways to keep devrant free of ads. I think as Devs we can solve this problem. Let's do this ☺
P.S - kindly share your thoughts, don't think it's shit, we can always discuss it.8 -
My companys custom logging library is not thread safe and has problems with multiple instances of the endproduct as well.1
-
hey guess what
commenting "I have this problem too!" does absolutely nothing for a github thread. ABSOLUTELY nothing.
you are bad and you should feel bad
goodbye6 -
I wrote a little webserver console app that would allow me to test another project without bypassing the DRM I wrote for it. Unfortunately, after compiling, the console app immediately closes on startup, not being at all thread safe. You might say, the worst tool I've ever used is one of my own creation...
-
Today, I found this in our upstream repo. How the fuck does it even get merged?
No use of tempfile, instead of idiomatic it's idiotic. I have changed that system, now I am hoping i don't have to refactor thia shit.11 -
## Scripting myself out of the company
who needs an expensive profiler, when you can make thread dumps and compile them into a flamegraph for free without any risk of outages!
Though what bothers me is that I'm yet to come across a person in this company who knows how to read them (besides me)...
Are flamegraphs really THAT unpopular?
I mean.. you can represent the whole profile in a single image!9 -
A JavaScript developer want to understand my 1000+ lines pythonic python code without any prior knowledge about python and he just want to understand it so that he can translate it into js. What should i do?19
-
Latest promoted thread on XDA to make the list:
"how to disable forced encryption".
This is from a place that tries to be innovative. I'm half expecting a thread get promoted with the title "how to give everyone your passwords/identity/credit cards".
https://forum.xda-developers.com/ma...3 -
I hate to make an entire thread for this, but how do I filter out tags here? I want to filter out memes entirely7
-
What is the longest time any of you have been debugging one problem?
For me it was at my first internship where I was creating a multithreaded qt application. I had a problem that took me two weeks to figure out. I was trying to call a function from a qt thread when it wasn't the main thread. Took me two weeks to figure that out since it was my first time doing multithreaded applications, and the fix was dead simple.
Any similar stories?1 -
There are two types of people in this world, those that understand that arrays start at 0 and
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at NewClass2.main(NewClass2.java:7)2 -
When the technically inept PM wants to be included on every single email thread. So then you have to waste even more time explaining.
-
Me: *pastes error message into search engine* && *clicks first result*
First Result: Hey I have a problem with *this error*
Thread replies:
Same
Me too
Same here, anybody know how to fix it?
Help me
This has been irritating me for the past 2 minutes, somebody please help
Me: *replies "same" on a two year old thread*
Fuck you.5 -
Nothing like using a ThreadPoolExecutor to thread out my shitty selenium task, so it will go just a bit faster.
-
Let's get a thread going..
>Age
>Job
>Country
>Favourite language
I'll start off..
>English teacher (might start my CS degree soon)
>Malaysia (Russian by birth)
>JS & Python41 -
We use Slack at work for IMs.
There are tons of threads created in each DM, group chat, and channels.
There is a purpose to each thread.
But.. BUT.... Engineering team responds to a thread and also sends the same message in channel.
What's the fucking point of the thread...
FUCKING STOP SPAMMING WITH DUPLICATE MESSAGES.
I have a cup of green tea in my hand right now and I feel like pouring it on myself.
Third tier geniuses from Timbuktu.6 -
Twitter comments are shit
How the fuck to use them? Why don't they just show one under another? If post has more than 2 replies it can be clicked to open its direct replies, some of them are shown in main thread, some of them are shown under opened thread. Some replies from main thread are shown under child thread. And to make it even worse any comment of sub thread can be expanded as well showing some random replies that could be expanded recursievly so you may end in main thread again. It is just impossible to read all replies in chonological order. Show me the moron who made this, I wanna kill him....1 -
C# can be great and all but sometimes it just makes me want to put a bullet in my head because i can't figure out HOW TO FUCKING USE A GOD DARN FORM ITEM IN A FUNCTION OR THREAD!3
-
I was doing some reading on sound analysis when I came across this article. Look at the comments thread.
https://royvanrijn.com/blog/2010/...1 -
@DevRantDevs could you please add the feature that i can view an image dorectly from the thread wothout loading the rant?
Is maybe someone else interested in this feature?6 -
When you convince your client to purchase a commercial thread-dump analysis tool, and that pies of soft gives you flamegraphs like this one [excerpt].
And then your own TD analysis tool works significantly better than that.
[P.S. I wonder how many of you will spot what's wrong here :) ]5 -
Google Inbox is starting to be more and more laggy, unresponsive and slow. And they just don't care. Sometimes I'm like clicking fucking 10 times on a thread until it opens.
Also going back to Gmail is not an option as the current version also looks like a Frankenstein's monster with a mix of different designs from material design and something else.1 -
Annoying things
while programming: the thread
* Don't go off topic
* No meme images. Even if they are related to the topic
Have fun! -
Ive been shit lately and my only escape has been programming and even so I still feel just bad.
Going through a C# book I have helps, but the last thing to get me to just feel good was this Python script I wrote to download a lot of images within a thread of a post and just seeing it go from nothing to working how I wanted is such rush and to watch it work and go through a LARGE thread of pictures that ARENT pornographic and download and save them is extremely satisfying.
That’s how I’ve been lately.3 -
Have you ever been so frustrated with a problem that you almost posted a question to Stackoverflow.com just to find your answer minutes later?
Which reminds me, I need to comment on that thread where I found my answer. It wasn't entirely correct...4 -
Just noticed a thread on r/programmerhumor about bank code intentionally adding delays with all these JavaScript code blocks of how it's adding sleep cycles in.
So I spent an hour reading the documentation and wrote up an over engineered solution in COBOL just to prove a point.2 -
I'm reading my first Rust codebase after getting familiar with language for a while and I feel like a raw potato.
-
You know when you are interested in a topic or have a question, and you find it on stackoberflow or hacker news, but it is from 754 days ago ...
You are left wondering, should I leave a comment here or create a new thread ...1 -
Clowns who reply to each thread separately with a single comment on Slack instead of keeping it in the main window 🤡
-
wk145
A uni kicked out here, enough said :3
// I don't wanna share my great achievement and wisdom in the official weekly topic thread 😆 -
Me, explaining once again that a webserver needs to be thread safe:
"I have nothing to learn from my colleagues".2 -
Build Succeeded in 9.37s (3 seconds ago) ...
$ java -jar MyAwesomeAppWithALotOfExceptionHandling.jar
Exception in thread "main" java.lang.NullPointerException
at ...
at ...2 -
welp I went from "gosh rust makes programming so stupid because I don't have to keep anything in my head like in JavaScript, if it compiles it runs zzzz you can literally be wasted / in dementia and write working software now"
to "I wonder if I can inspect how long threads are waiting for mutex locks to squeeze the hell out of performance"
new code golf23 -
Posted on Twitter
A thread of Rittenhouse facts
I learned watching trial
So many spread lies
I couldn’t keep my silence
RIP follower count35 -
Anyone had any luck running Minecraft servers on DO/AWS/GCP? My current DO Droplet isn't cutting it, and I think I'm noticing the single thread bottle neck of Minecraft.8
-
Conky thread!
If you use conky (https://github.com/brndnmtthws/...), make a screenshot of what your config looks like, and maybe also share the config with a link!
I will also contribute mine, once I'm happy with it.5 -
Why the hell every IT/CS professor teach pattern codes like pyramid, star and many weird kind of designs to do on console? just why? Why don't teach basic implementation Problems which are really going to ask for SDE jobs in most of the companies.8
-
I have started a freelance full-stack project with some existing code-base and it was horrible. They only have API endpoints for fetching whole data. No limit, No sort, No filter. They are doing all this shit on the front end. They are even aggregating data on the front end. Seriously who the fuck does that? On top of that the guy who has coded it was a senior developer. I am wondering now, did he write that kind of code purposefully or this kind of shitty devs actually exists?2
-
Yanno, would be awesome if everything wasn't tied to one main thread. Why is it so much effort to have your ai just run in a separate thread huh4
-
A forum admin started requesting donations and threatening to kill the site if nobody pitched in because it was much too expensive and stuff. The classic wikipedia strat.
The thread was pinned and it was the first thing anyone would see when they'd go into the subforum.
Someone asked the admin how come he needed that much money monthly to keep the forum alive and asked if he could provide a breakdown of the things that needed to be paid.
Admin unpinned the thread and went silent. The amount he was asking was about $80 per month. Is that normal?6 -
Current dream PC:
Dual EPYC at 128 core/256 thread or higher
1TB of RAM or more
Dual AMD GPUs
Massive RAID 10 array of 7200RPM HDDs, something like 24TB or better
A few standalone SSDs, to taste (at least one of a sizeable capacity, like 1TB?)
Total cost, like $30k or so?51 -
Me post a lot of investigation in a slack thread and come to a conclusion
20 mins later engineers in thread post things like they didn't read anything I wrote and come to same conclusion, but involve other parties AGAIN making us all look dumb
Why do they just ignore what I wrote, literally linked the same splunk dashboards and same error numbers that I did. I don't get it.
Why should I care? I hoped I could use this as a way to convince manager once again that I do the things he asks me to, but it seems it's all useless.
Really want a new job but tough times, should be happy I even have a job I guess -
Have to upgrade Android app that connects to Bluetooth device and reads data.
I found the app creates new thread every line read from the device's Bluetooth stream, then reuses 1 object for every reading to store the state of the device in Jsonarray, then every thread creates a new thread to upload the data on cloud. Oh, I almost forget that is all working in one UI sctivity, and the same thread that parse the data updates the UI.
Deadline is next Monday and I don't know where to start editing my shit to place MY shit.
Fuck me I guess? -
Officially Running node-cron as separate thread in nodejs to update 27600rows every minute. Honestly, I am Supprised how well it is behaving.1
-
Emotional support thread - feel free to comment here if you've ever been in a conversation about .NET, .NET Core, .NET Standard, .NET Framework and someoneverysmart has declared that it is actually very straightforward and obvious and then proceeded to explain in a way that is neither straightforward nor obvious, or is even plain wrong.
Feel free to link them to this thread. I guess it is unlikely these folks have the requisite self awareness to get anything out of it, but it is worth a try.
Finally for anybody about to comment here to explain the differences, please read the above three times, try to get it into your skulls that this thread is more about empathy and awareness than it is about the differences in .NET versions; and then go ahead and explain here anyway becauese I guess it will be a good cautionary tale.4 -
I have a JS module in the main thread, which can only import regular JS files using dynamic import(). This means that imported functions can never be global.
I also have a web worker (which isn't a module because Mozilla) which can only import other JS files using importScripts(). This means that imported functions can only ever be global.
Effectively I can't use the same code on the main thread and in a worker if it relies on objects defined in other files, because references to these will never be the same. -
So fun fact about message-passing plugin APIs, everything becomes a parallel programming problem. My lexer (the part of an interpreter that recognizes fundamental syntax elements) spawns a callback thread with request and reply channels, and then messages a plugin which is able to either talk to the callback thread or message the original thread with a successfully parsed token or an abort.
It has just occurred to me that plugins are under no obligation to sequence their requests to the callback thread, which means that having one channel for requests and one for responses no longer suffices; the requests need to each contain their response channel. -
C is great, C is good
And we thank it for blazing code.
By it's spec we must be led,
Give us C, our orphaned thread. Amen -
Fuck Threads and fuck multithreading in general.
I've spent the last 2 hours and a half looking for an important error that did my project not work at first execution, and it was all because I did start a side Thread, but forgot to wait until it was done before showing the output of it.
Fucking multithreading...3 -
When I implemented a supplier's library, I noticed my app froze every time I called that library. I then asked the suppliers if they were doing any heavy stuff on the main thread and they told me they weren't.
Luckily, they were "right", StrictMode told me they were only dumping a whole log file... -
Rather than repost attire image macro like a lot of people seem to enjoy doing I thought I had to repost this thread which hasn't had any comments in 6 days and which is fairly informative:
https://devrant.com/rants/2610345/...3 -
Online Multiplayer Mafia party game built on Ethereum.
Project Type: Existing open source project
Description: I found that most of the blockchain game projects in this space are using traditional web2 technology for hosting gameplay. So, we decided to create a game that utilizes web3 technologies as much as possible for our project and create services like real-time chat, game rooms, player profiles that can be used by other games. These services are very common among modern online multiplayer games and we need a reliable and scalable alternative that uses a web3 tech stack. So, we have decided to create a game that incorporates all these features.
Blockchain smart contracts development is complete. I need help in backend and frontend development. You don't need to have any experience in Blockchain.
Tech Stack: Express.js + React.js + IPFS + Solidity
Current Team Size: 1
URL: https://github.com/cryptomafias/...
Note: We are eligible for a grant from the protocol labs - the company behind IPFS.8 -
Oh no, apparently GDPR is worse than we thought. Just look at the linked thread. The government needs not to touch anything
https://twitter.com/alexstamos/...2 -
Is it too optimistic for me to think like this?
Lecturer: Your assignment is to write a netprobe with C++. Using thread pool for multiple request... It is really easy with around 300 lines of code.
Me: There is one week before the deadline. On average I just need to write around 40lines of code per day!1 -
I just spent like 4 hours trying to figure out how to make a simple httprequest to the google directions api in android... nothing worked :( running it in a seperate thread, tweaking the address...
I'm sure there is something simple I'm missing... but I'm feeling broken and defeated right now...
They make it look so easy on the android5 -
Is it possible to record the time a thread spends processing only it's code?
E.g. capture sys.ms in thread A -> A is sliced and thread B runs -> B is sliced -> A comes back and captures current sys.ms. The resulting delta of Anow - Ainit includes the time that B spent on the machine.
Is it possible to account for this and get just the time A spent processing?
Is this doable on any other languages?
If it is or isn't, any documentation or papers explain why is appreciated. Google is flooded with "how to time" questions so I'm not seeing any answer for this.7 -
Hello world. Just found out about this nice community today then saw a thread talking about how the service and apps are inactively maintained for some time lol. Let me see how far I can rant down the road.3
-
Can we have a good quality headphone thread?
Using 20€ in-ears right now. Any good on ear wireless headphones, you can wear all day without your big ears hurting or too much sweating?9 -
https://medium.com/@jeffbcross/...
An article describing toxic environment in angular team. Read lots of angular shit issue thread. The problem might be worse.
Angular needs to die5 -
If you're in for a good read this thread is comedy gold: https://gamedev.net/forums/topic/...
(the second page is where it starts getting amazing)2 -
!rant I shared it in a thread, but in case y’all weren’t in it… the podcast I guested on dropped! Does this mean I am a professional now? 😅
https://open.spotify.com/episode/...2 -
What's wrong with reviving/bumping an old thread on a forum? It seems way more efficient to me to continue on one central thread. I hate common rules like "don't post in a thread that's a year old, start a new one". Why not keep the conversation in one place? What am I missing?
Isn't this already how we (properly) do email threads? I always go back to find the last email when I send a follow up to avoid breaking into two different threads with two different sets of replies.5 -
I hate those people that comment on threads saying shit like “just google it” or “oh fuck another [insert popular topic] thread we don’t need another one.” Fuck off. It’s an online discussion forum. If it’s shit content the mods will remove it, otherwise no one is forcing your sorry, lonely pathetic ass to stop scrolling, click the thread, and read the god damn post. Just fucking turn off your computer and read a book.2
-
use a mutable obj as hashmap key and the hash code changes when obj got updated. evey text book told u this is a stupid bug and impossible to debug, and I spend a week to prove u can debug it out when in single thread app
-
I was wondering if we can mute a rant's reply via the web interface. I am (also) designing a bot that will post to a specific thread to clearify it's a bot on that account at that time, so that way the affected user won't get any side effectes from bot's work.
(Such as mass ++'ing ;) )
(Idea: https://devrant.com/rants/2660331/... )6 -
As per knowledge everyone here knows that nodejs express is single thread compared to laravel which is multithreaded.
So definitely laravel is better than NodeJS
Then why would someone choose nodejs over laravel?23 -
!rant
A more of an informative thread .
I'm a noob when it comes to privacy protection..
I'll ask all the Indian DevRant is, how can an individual/organisation misuse your Aadhar card , email address and phone number details .
Like if they have it together , how can they misuse it?
It'll great if you can let me know9 -
These occasional contributor meltdowns on github threads make for comedic gold
The immediate next comment symbolizes my experience working with flutter. I was pleasantly surprised to see someone else feel the same. Full thread https://github.com/flutter/flutter/...7 -
[ Thread ]
👇
Let's share what psychology tricks you used on your coworker when working for a team?
👇
👇
👇
👇
👇
👇8 -
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 26
at words.main(nightmare.java: 4)1 -
Sometimes I hate StackOverflow's review because I tend to comment and the post turns out to be 5yo top question with inf. amount of comments.
And there I come, the captain obvious, bumping an old thread because the review told you it's 2hours old or something. -
I'm doing the thread again; post music to code to. I'll go first with 8-bit influenced jazz fusion band Sungazer:
https://sungazermusic.bandcamp.com/3 -
I have participated in a hackathon this weekend and one of the theme of hackathon was blockchain and being a blockchain dev i have created a DApps which follows token standard and other security standard but our UI was kind of basic cause we didn't have any designer in our team but one participated team's UI was far better than us but has serious flaws in the smart contract and guess what they are the one being selected and that's not it there wasn't a single judge who has basic knowledge of blockchain.I was using DApp term very often while presenting our idea and one of a judge literally asked us what is dapp? I mean WTF? Now i am regretting why did i participated in this shitty hackathon? On top of all that they juat give a single sticker for whole team. Wtf we are supposed to do? Cut it ? If you are a blockchain dev don't forget to see this beautiful function i found in the token contract of the selected team from the github.1
-
I spent 2-3 days on debugging code written in assembly script. Apparently, you need to initialise an array using new method otherwise it re-uses the previous array from the same scope and it has created infinitely large array. Just wtf.
And I got error like "wasm blah blah blah blah blah blah".Just give proper error.
Running the environment locally wasn't an option because well it doesn't fucking work locally. So, I have to forcibly test on CI and they have created a site that can show you logs because you can't access or query data directly from server and while debugging you try to log something it randomly works sometimes and sometimes you get output from god knows which deployment. Just create a fucking API for displaying log or build a proper docker so that we test it locally.1 -
In order to avoid talking bout thing we do to keep living, what's your fav music genre and why is it vaporwave? 😂2
-
I want to learn front-end and i have offers of two bootcamps.please tell me which is better one-month or frontend-masters.
Note: i don't know anything about front-end1 -
As the end of the decade is a week away.
I was wondering what would the tech predictions for the next decade would be?
It can be anything *as long as* it's tech related (e.g. computer languages, frameworks/libs, tools, processes, techniques, ...).
Remember to keep the thread civil and if someone already commented something you were about to comment, upvote their suggestion.17 -
i wrote a multi thread program for my company and they think its just a single process. i said to the boss: boss, i wrote a multi-thread program pls give me credits. boss said: fruit you you sockitor. do your freaking job. and im adding mybugs now.
-
Challenge mentioned in the below thread is one of the most asked javascipt question in top companies.
Do check it out and post your solution
https://devrant.com/rants/2381656/... -
People experienced with java/ multi threading , can you tell me how you build a pausing mechanism for threads? Like, if my bg thread is supposed to count for 100 seconds, and i need a mechanism to :
A: start it,
B: stop it on its counting completion/ manually
C: pause its execution at a number on a button click
D: resume its counting from the same number on another button click
How would i do that?
SO Question link here: https://stackoverflow.com/questions...21 -
gdb stuck at
[New thread 0xf03 of process 39241]
When that happens I have to manually shut down the process through activity monitor or a new terminal. -
If you're a fan of coffee and whiskey, you might have tried Irish Cream Coffee before. This forum thread is a place to discuss your experiences with this classic drink. Do you enjoy it, and have you ever made it at home? Share your favorite Irish Cream Coffee recipes or variations, such as using different types of whiskey or experimenting with different flavorings. Do you have any tips for making the perfect Irish Cream Coffee, such as the ideal coffee-to-whiskey ratio or the best way to froth milk? Whether you're a seasoned pro or a beginner looking to try Irish Cream Coffee for the first time, this thread is a great place to share your thoughts and learn from others.2
-
Are there any off-limits items for weeklys (other than politics)? Like could we get a "bad dev pickup lines" weekly or should i just start a thread?2
-
!rant
can you give me/point me to some good example problem/exercise for multithreading? as in, something that's small in scope, but actually requires dealing with most of the multithreading issues & complications? race conditions, synchronization, locks, shared memory access, cross-thread calls/callbacks, etc?2 -
When do you use an ExecutorService vs starting a Thread?
I tried executing a mongo.find() with service.submit() but it seems to start a new connection... or try to. The eventual error I got was something about state being closed.
Whereas thread.run() does not.2 -
The moment when you are desperate enough to integrate forceUpdate into production code.
Also I like how apollo-client acts like enterprise grade when they do all the heavy crap in the UI thread.3 -
Holy shit Realm. This DB.... On Android it will crash if you access a reference to the db from a different thread than the one it was created from! 🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️
Why oh why can't they just have their own internals managing all the fucking thread they need? There's a reason they provide sync and async db access.
This basically means that my reference to a realm instance should always be tightly paired with the corresponding thread reference so that I can run my db queries on it.
👎9 -
How do I get devrant sticker?
I have 50++ on a rant and i have mailed them but i didn't get any reply8 -
Worked on a project where the variable was public and static, was accessed at multiple locations and across multiple threads and no it wasn't using thread safe implementation. Since then whenever I read public static I start praying the next word be "final".
-
In Spring/Boot if you annotate a class as a Service is it started on a different thread? I used @PostConstruct to start listening to a connection.
The class with main () seems to just load Beans defined in the AppConfig?
I need it to start a thread that listens to a Mongo Changestream and trigger some action on each.
I noticed a log line under the watch() is never reached so seems it's blocking...8 -
Fuck this shit... how hard can it be to build a fucking Thread safe tree with links to parent??? This is madness. Deadlock hell... aaaaaaaargh
I am close to switching languages for this project3