>mfw I use a goto in my code
satania
>>107663909What's wrong with gotos? I'm Indian btw
I use them all the time.Especially when you only jump forward to skip sections of code, it doesn't impact cleanliness most of the time
>>107663909And? Dijkstra was a fucking faggot.The longer you've been coding, the more you'll disagree with that pompus (and thankfully, dead) windbag on anything that isn't pure math.
goto has no usecase in good programming languages paired with properly written code.
>>107664348>my specific, perfect, entirely infallible brand of predefined control structures has never been triedOr worse yet, you think the shitlang you use already includes all of them in its tiny set of constructs.
>>107664367The only usecase for goto is to cope with C not having proper control structures for the purpose of error handling and cleanup of resources.Even Poothon and JavaScript has ability to declare that certain resource should be cleaned up when out of specific scope.You're a Cuck who loves doing pointless busywork that compilers could do for past 40 years flawlessly.>inb4 midwit who writes 6 level loops copes with goto being "useful" to break outAny programming language has functions and return statements, you aren't intelligent for writing hard to understand spaghetti.
>>107663909>mfw goto isn't supportednoError: { error = doStuff(); if (error) break noError; return doStuffAgain();}return proceedError();
noError: { error = doStuff(); if (error) break noError; return doStuffAgain();}return proceedError();
>>107664328If Dijkstra was listened to you would never be ALLOWED to write code in the first place. The consumers should only have terminals and only us, the engineers, should be allowed to program computing machines. People who spent years learning the relevant maths although even the CS degree was a mistake. Back when I was a tech lead I never hired cs grads, only people with background in actual mathematics, even if they had less experience because the vast majority of CS grads shouldn't be even doing frontend when they literally don't have. In general I am happy I will never have to actually work in tech again and I can just look at the sorry ass state of this industry from afar.
>>107664395>mentally ill retard immediately spergs out about C for no discernible reasonNot reading any further. And guess how I know you use Rust. A guy like you, you'll probably lie about it now, too, out of embarrassment.
Wondering if this is a valid argument for using goto (not that I think you need one, just entertaining the normal aversion).Say you're leveraging low-level hardware or CPU behavior for some optimization and you want to minimize hidden variables and complexity that could cause security issues or unintended behavior. You want that section of code to be as close to the resulting assembly as possible. Maybe not all the way to inline assembly but still minimizing divergence between source and compiled output.Using goto closes that gap. On one side it helps you structure the code in your head closer to how it actually compiles and runs (readability in the context of that goal). On the other side you get tighter control over where jump statements land in the final binary so the translation is cleaner.Yeah if your goal is high-level abstraction then loops or dedicated iteration functions make sense but there is a usecase for using more primitive gotos.
>>107664581g*d ur based
>>107664581See >>107664508>guy like you, you'll probably lie about it now, too, out of embarrassment.
>>107664589It's embarrasing how mentally ill you are.But you're right, if someone pointed a gun at my head and told me that it's over, I'm not allowed to program in C++ again, my downgraded choice would be Rust and not C.And hypothetically speaking, if it happened to me again with Rust, my choice would be pure assembly, I'd rather write my own compiler in pure asm than ever touch a shitlang that is C.
>>107664477>slurpslurpslurp look at what a good little npc i amYou're even more of a faggot than Dijkstra.
>>107664607You'll be losing your mind with rage and shitting out paragraphs no one reads for a long time. Be sure to updoot yourself. :^)
>>107664612I never wrote a full paragraph in my entire life though?
>>107664607ngl you seem pretty emotional for no reason. There is zero reason for you to actually hold this position with such vigor (and by position i don't mean your preference, but the intense hostile aversion against other people using C) Any normal person including you when you are not trying front in front of random people are going to use any lang that matches the goal. If there was a situation where it made sense for you to use C you would use it with zero fuss. If there isn't a requirement then you use C++ which i am certain you don't program in a C style, not due to intentional avoidance, but just because you are working in a higher level of abstraction. But i'm pretty confident to say you at some point did some low level programming with C++ and at some point used C style programming. And I'm sure you had zero complaints and moved on with your day. Hell i'm pretty sure you played around with C a fair amount. Meaning this strong hostile aversion against C is simply you larping to put on a front because of some fantasy battle/war in your head. Which puts you into this defensive mode making you constantly try to front and project superiority. You are only saying the things you are saying because of this perceived battle in your head and the idea that you need to hit back and put the other person down. It is dishonest to pretend otherwise and I think it would help if you took a look at yourself and realized what you are doing. If you are simply saying all this because you are having fun then whatever, but if this is actually inducing some sort of stress where you actually feel the need to be in this hostile defensive mode then I hope eventually understand that all this stress is self inflicted and you actually don't need to act like this.
>>107664821your unholy reddit nocoder midwit yap formatting reminds me of average C code, something that could be 2 sentences is taking up x5 as much space and is at least thrice as wordy.
>>107664853Its nice to know you actually don't mean anything you say and you are just trying to hit back because you feel the need to. Its a very freeing feeling to know I don't need to fight back. Hope you can learn that at some point.
>>107664862it's ok lil bro, go use that free time to write more gotobabble since RAII filtered you
>>107664897Its actually interesting to see where your mind goes when you can't actually illicit the reaction you wanted and all of your insults and attempts to hit back are ineffective.The replies get less and less coherent and you start to make wild assumptions in the hopes that mean something. Which actually makes the insults more and more meaningless. Like you don't even need to act like this, but even if you did you aren't doing a good job at hitting back. The sick "burns" you are typing out just look more and more deranged. I really want to know what is your perception of the other party that you are fighting against in your head that made you think this reply was meaningful?
>>107664821>trying to reason with the mentally ill retard
>>107664964damn lil bro, you don't actually program at all? wow
>>107664983but enough about C shills
>>107664986Its like you are going down a dialog tree in your head, jumping to the next pre programmed insult. Like tell me why do you feel the need to be so defensive? Where do you see any benefit with all this hostility and self inflicted stress? What is your perception of the other party where you think your replies have any punch to them?Its like those small dogs that simply don't understand they don't need to be hostile constantly barking at the owners friend when they come over. And are so small that are simply unable to project any sort of threat. So much so that the friend sarcastically jokes about how terrified they are.
>>107665055>writing long laments about the mentally ill retard's mentally ill behavior
>>107665055I understand that you're a nocoder midwit, you don't need to keep repeating yourself.
>>107665080Is that the final insult you are going to settle on? I think we've reached the end of you ability to form new thoughts and replies. I think you would benefit rereading all of you replies in isolation after you calm down, just to see how deranged they are. It could help a lot with ability to regulate your emotions. Cause its not good if you constantly feel the need to go into defense mode and project hostility. It doesn't make your life better. It doesn't make the thread better. All it does is inhibit your ability to have meaningful interactions with people. You don't need to be in a constant war with everyone you come across. But even if you are never able to move past this you might want to work on how you form proper insults. Like I know you don't have a lot to work with so all you can do is just fall back to the generic insult of the month. Still you could have put more thought into it and tried to say something unique or even funny. At least then it could have served as something entertaining to read. Any ways it seems like your ability to form unique thoughts has been tapped out so I'm going to carry on the rest of my day. Hope you can reflect back and learn from this interaction. Toodles!
>>107665078Believe it or not, but I find this interaction enjoyable so there isn't any cost to me typing out replies.
>>107665159Were "insults" in the room with you the whole time?
>>107665176Probably because you're suffering from even more extreme narcissism than he does. You probably feel some imaginary audience is actually reading your posts and admiring your clumsy and verbose rants about nothing.
>>107665205Its less about others reading it and more about the actual interaction with the person i'm replying to and also enjoy typing even if my writing is clumsy at times. But thats an interesting theory.
>>107665226I realize self-awareness is not your forte.
>I enjoy being retardedsmartest cnile nocodeshitter
>>107664964ai?
>>107665237I mean this is simply just you saying i'm something and me saying i'm not with zero way to prove it either way. So its a meaningless argument to go back and forth on. You can just say the general way I'm replying back and forth and the points i express and the way I express them clearly point that I am "negative thing". And that this one interaction with random people on 4chan gives you a complete and accurate understanding of me in all situations and interactions with all the people around me.But its really hard for me to truly think you have a credible analysis and not you wanting to project superiority and induce some negative emotion.
>>107665302Guess whose post I'm not going to read.
>>107665299If it has redditspacing, it is AI, yes.
>>107665319damn man it's bots everywhere, i guess i will stop coming to 4chan soon
>>107665310I actually think its impossible for your brain not to just passively read a post that short. So you are really just trying to express "I don't care about your reply and i want you to feel like i don't care" But cared enough to express that in a indirect way so...
>>107665337>>107665310
>>107665337>it's heckin' impossible not to read my slopYou're either mentally ill or a spambot.
>>107665319Its actually interesting to think how confident you are incorrectly assuming my posts are ai. Because of some arbitrary heuristic, which isn't even a unique thought but you just parroting what is commonly said. Also how much you need reality to be a certain way for you to comfortably accept the situation. My posts have to be ai. And no one is going to tell me otherwise. You need it to be the case.This is actually a pretty common thing i have observed here where people need to create this false reality so they can project superiority and win the so called 4chan battle in their head.
>>107665399>>107665310
>>107665364Be honest with me. Do you genuinely believe this? Have I said a single thing that is so out of this world crazy, deranged that the only explanation is either ai or the someone who is bat shit crazy bouncing off the walls insane? What kinda mental model of the world do you need to have to think this? Do you have such a narrow view of how people should act and type on this site that any deviation of it is a sign of lunacy? Like everyone needs to act like a single herd. If you don't act like an emotionally unregulated teenager who needs to constantly participate in the endless battle of meaningless insults and one upping each other you have to be crazy?
>>107665513>>107665310
>>107665513>Be honest with me. Do you genuinely believe this?Yeah. You literally can't cope with the fact that no one reads more than one line of your dumb rants, desperately clinging to your imaginary audience, forcing them to read your trash against their will in your fantasy. Kek.
>>107665523It seems pretty contradictory to express you don't care about something when you are constantly reiterating that point instead of simply not replying.
the goto djikstra argued against was more akin to setjmp/longjmpyou can't jump outside of a function with gotos in C. it's nothingburger. actually makes the code more readable I think
>>107665560>It seems pretty contradictory to express you don't care about somethingWhat don't I care about, GPT2?
>>107665550What is making you think these things? It really just feels like you are inherently biased so you have to resort to the worst possible interpretation of the situation. Like if you are trying to illicit a negative emotion within me you'd have to make your points at least credible and not just a baseless narrative that only exists in your head. This is just you attempting to be hostile trying to create some false reality so you can feel superior.
>>107665575>this much coping>>107664348
>>107665610>What is making you think these things?The way you WILL continue writing paragraphs of dumb shit even though, objectively, no one is gonna read most of it.
>>107665639Typing these out have almost zero cost so this point doesn't really mean anything. And this singular point is some how supposed to back up this mental model you have and to prove you are not simply just trying to illicit a negative emotion? Its not hard to admit you just wanted to be hostile. And that your mind is simply going to create as many negative narratives / interpretations it can so you can express your hostility.
>>107665671See >>107665237
That is SUCH a Satania thing to do.
>>107665698Just saying that doesn't really mean anything. You can say that in any conversation and it would have the same effect. Like just taking that at face value its pretty strange to make such an assertive generalization about someone. Like I'm making claims about you and the other people, but they are very specific claims in response to specific behaviors. and not just a overused generalization. Just taking it at the value of trying to be an insult it really is ineffective because its obv just trying to be an insult with nothing backing it. So either way I don't really see what this reply achieved and its interesting to think you thought it would achieved anything.
>>107665792See >>107665237
>>107665809I see you have mentally tapped out of the interaction and can no longer form novel replies. You know there is a self awareness angle you could definitely play, but I am not confident you would be able to actually thread it all together.
>>107665828See >>107665237