Conversation
Notices
-
Embed this notice
Construction Worker (mercurialbuilding@cawfee.club)'s status on Tuesday, 07-Nov-2023 07:32:14 JST Construction Worker @condret @kirby idk it's been drilled into my head that gotos are evil and it makes following the control flow confusing and it's like eval you should never ever do it - Pleroma-tan likes this.
-
Embed this notice
Pleroma-tan (kirby@lab.nyanide.com)'s status on Tuesday, 07-Nov-2023 07:37:01 JST Pleroma-tan @MercurialBuilding @condret i forgot to say for error handling. -
Embed this notice
Pleroma-tan (kirby@lab.nyanide.com)'s status on Tuesday, 07-Nov-2023 07:40:05 JST Pleroma-tan @MercurialBuilding @condret holy fuck why does phone video always break like this
I'll upload to YouTube -
Embed this notice
Construction Worker (mercurialbuilding@cawfee.club)'s status on Tuesday, 07-Nov-2023 07:40:06 JST Construction Worker @kirby @condret Can you recommend some firefox plugins or something -
Embed this notice
Pleroma-tan (kirby@lab.nyanide.com)'s status on Tuesday, 07-Nov-2023 07:41:45 JST Pleroma-tan @MercurialBuilding @condret https://youtu.be/VI-qmtPeiNo?si=uXziVLp3D45WPTHc -
Embed this notice
Pleroma-tan (kirby@lab.nyanide.com)'s status on Tuesday, 07-Nov-2023 07:41:57 JST Pleroma-tan @MercurialBuilding @condret remove si if that's annoying In conversation permalink -
Embed this notice
Pleroma-tan (kirby@lab.nyanide.com)'s status on Tuesday, 07-Nov-2023 07:43:53 JST Pleroma-tan @MercurialBuilding @condret if you're in function hell it would be very annoying to return constantly.
You could use an assert too, but if you're in a scenario where you can't use them for some reason gotos save youIn conversation permalink -
Embed this notice
Construction Worker (mercurialbuilding@cawfee.club)'s status on Tuesday, 07-Nov-2023 07:43:54 JST Construction Worker @kirby @condret why have a goto error instead of just return 1 In conversation permalink -
Embed this notice
Construction Worker (mercurialbuilding@cawfee.club)'s status on Tuesday, 07-Nov-2023 07:45:13 JST Construction Worker @kirby @condret Ah in our class we're not allowed to have nested functions, stack frames being bloat apparently
I wanted to kill myself when I was told I needed to implement AVL tree deletion without using a stack or recursionIn conversation permalink Pleroma-tan likes this.Pleroma-tan repeated this. -
Embed this notice
The MILF Messiah (lunarised@whinge.town)'s status on Tuesday, 07-Nov-2023 07:46:42 JST The MILF Messiah @kirby @MercurialBuilding @condret I swear to god if i see anyone using a goto statement in 2023, im going to make sure they never work again. Just learn proper control flow homie :^)
Heres the GOATs take on them
https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdfIn conversation permalink Attachments
Pleroma-tan likes this.Pleroma-tan repeated this. -
Embed this notice
iced depresso (icedquinn@blob.cat)'s status on Tuesday, 07-Nov-2023 07:47:19 JST iced depresso @MercurialBuilding @kirby @condret throw it in the trash and use a skip list
they're probablistically optimal without the complex rebalance functionsIn conversation permalink Pleroma-tan likes this.Pleroma-tan repeated this. -
Embed this notice
Pleroma-tan (kirby@lab.nyanide.com)'s status on Tuesday, 07-Nov-2023 07:47:32 JST Pleroma-tan @lunarised @MercurialBuilding @condret k&r says they're fine... I think they're fine for these sorts of things........
Tbf asserts are niceIn conversation permalink -
Embed this notice
Kirino Kousaka (kirino@seal.cafe)'s status on Tuesday, 07-Nov-2023 07:47:54 JST Kirino Kousaka were you born male?
In conversation permalink Pleroma-tan likes this.Pleroma-tan repeated this. -
Embed this notice
Construction Worker (mercurialbuilding@cawfee.club)'s status on Tuesday, 07-Nov-2023 07:49:21 JST Construction Worker @icedquinn @kirby @condret It was for a school assignment. Had to create an AVL tree data structure from scratch with all the operations. In conversation permalink Pleroma-tan likes this.Pleroma-tan repeated this. -
Embed this notice
Construction Worker (mercurialbuilding@cawfee.club)'s status on Tuesday, 07-Nov-2023 07:49:29 JST Construction Worker @icedquinn @condret @kirby This was part one of 5 on the bloody first assignment btw In conversation permalink Pleroma-tan likes this.Pleroma-tan repeated this. -
Embed this notice
Construction Worker (mercurialbuilding@cawfee.club)'s status on Tuesday, 07-Nov-2023 07:50:32 JST Construction Worker @condret @icedquinn @kirby Anyways I'm eternally on the edge of dropping this class because it's prevented me from making any progress whatsoever on either of my two theses In conversation permalink Pleroma-tan likes this.Pleroma-tan repeated this. -
Embed this notice
The MILF Messiah (lunarised@whinge.town)'s status on Tuesday, 07-Nov-2023 07:56:03 JST The MILF Messiah @kirby @MercurialBuilding @condret @kirby @MercurialBuilding @condret
i imagine K&R added it to their book as they wanted it to be part of the C spec to help the Basic and Cobol developers to find some familiarity.
The issue with goto's primarily that it can interact with stacks in odd ways, and almost any wanted use of a goto could be better defined with a function (with the added benefit of allowing value return)
They can also fuck up alot of compiler optimisation (albeit through lack of use)
Id seriously consider not using goto's unless your code is architected in such a way that you cannot not use them and you don't have the time to refactor your code to be friendlier to stacksIn conversation permalink -
Embed this notice
The MILF Messiah (lunarised@whinge.town)'s status on Tuesday, 07-Nov-2023 07:56:05 JST The MILF Messiah @Kirino @MercurialBuilding @kirby @condret ...yes In conversation permalink Pleroma-tan likes this. -
Embed this notice
T man :sex: :puffgiga: :puffpowerroll: (theorytoe@ak.kyaruc.moe)'s status on Tuesday, 07-Nov-2023 08:00:42 JST T man :sex: :puffgiga: :puffpowerroll: @MercurialBuilding @icedquinn @kirby @condret
>mercurialblack writing theses
holy shit hes :brain4:In conversation permalink Pleroma-tan likes this.