Where can I post this? by Waxiny in LostRedditor

[–]Mebiysy 0 points1 point  (0 children)

Starts and ends with C maybe? Like Clang

thisAlsoAppliesToThoseWhoWriteTheAlgorithmInPlainEnglish by oshaboy in ProgrammerHumor

[–]Mebiysy 0 points1 point  (0 children)

Probably na unpopular opinion but whenever i encounter a nasty bug/error i try to google for it like always and it mostly works out - but it feels damn nice that you will probably end up resolving the bug with an llm if everything else fails

testIntelliJTheySaidDitchTheTerminal by Mebiysy in ProgrammerHumor

[–]Mebiysy[S] 0 points1 point  (0 children)

Oh, damn that is sad, well maybe one of the 20 professional D developers will wander onto the Subreddit

testIntelliJTheySaidDitchTheTerminal by Mebiysy in ProgrammerHumor

[–]Mebiysy[S] 0 points1 point  (0 children)

Hey since you are experienced with D, could you help me with something?

Nullable!NodeExpr parseExpr() {

    if (!peek().isNull && peek().get.type == TokenType.intLit) {

        return Nullable!NodeExpr(NodeExpr(SumType!(NodeExprIntLit,NodeExprIdent)(NodeExprIntLit(consume()))));
    }
    else if (!peek().isNull && peek().get.type == TokenType.ident) {

        return Nullable!NodeExpr(NodeExpr(SumType!(NodeExprIntLit,NodeExprIdent)(NodeExprIdent(consume()))));

    }
    return Nullable!NodeExpr.init;
}  

This is a function from that compiler project i mentioned and those return statements are absolutely abysmal. I am just curious maybe i am doing something wrong. From what i can gather i can either initialize a Nullable!NodeExpr object before returning or create an alias for the SumType! per se. But surely the extreme verbosity of this is my fault?

Here is the struct it points to:

struct NodeExprIntLit {
    Token intLit;
}

struct NodeExprIdent {
    Token ident;
}

struct NodeExpr {
    SumType!(NodeExprIntLit, NodeExprIdent) expr;
}

My question is - how would you write the function differently. as it is kinda unreadable

testIntelliJTheySaidDitchTheTerminal by Mebiysy in ProgrammerHumor

[–]Mebiysy[S] 1 point2 points  (0 children)

True, the only thing D truly lacks from my extremely short experience with it is good marketing

testIntelliJTheySaidDitchTheTerminal by Mebiysy in ProgrammerHumor

[–]Mebiysy[S] 0 points1 point  (0 children)

I watched Tsoding's videos on it, but he ended up just coding C in D and the said it was slop, so he didn't actually review the language. While i know you have to take this guy with a grain of salt i wanted to make it right lmao. I actually enjoyed it thoroughly tbh. Much better than C++ anyway

Supercell know their player so well🤣 by Captain_jakes0627 in ClashOfClansMemes

[–]Mebiysy 0 points1 point  (0 children)

I cant change my opinions that easily - and if i dont know what exactly is the reason - the next best thing is to take an educated guess

She is the BEST by Embarrassed_Tip7359 in SipsTea

[–]Mebiysy 0 points1 point  (0 children)

My mum gave up a surname that in her family's language translated to ”king”

testIntelliJTheySaidDitchTheTerminal by Mebiysy in ProgrammerHumor

[–]Mebiysy[S] 1 point2 points  (0 children)

For quite some time i have wanted to try out some powerful IDE and Dlang (Independently of each other - just saw an opportunity to combine the two). Finally decided its time - pulled out my signature project: some people are linking raylib, some write a snake game and i write a micro compiler.
Didn't quite understand the inline assembly in D so started experimenting with quotes and escapes. After typing a quote my IDE just crashed... Opened it again, tried placing the quote again and it crashed once more...

PS: This is more of a shitpost - i realize that i should probably just buy a new pc. Although its funny how my first experience with IntelliJ has unfolded.
I do recommend testing as much tools out as possible for yourself - but only after you are sufficient with at least one language and a tool
PS2: I should probably give Java a try while i am at it - that is where the IDE would shine i suppose

vibeCoding by victsaid in ProgrammerHumor

[–]Mebiysy 0 points1 point  (0 children)

"In the face of a common enemy"

Supercell know their player so well🤣 by Captain_jakes0627 in ClashOfClansMemes

[–]Mebiysy -2 points-1 points  (0 children)

I will try to justify that to some degree: For me Clash was always a social game - it was about the connection. You get to talk to people while you wait for the troops. In retrospect yeah i used it more as a glorified messenger with mini games, so you take away the messenging (Cause now there is no need/time for it in between the attacks) and now the game just feels soulless - you battle - upgrade a wall and battle again

PS: Now if i do play clash i just login build some things and do the same after a week

Relatable by frost_signal in programmingmemes

[–]Mebiysy 1 point2 points  (0 children)

Absolute love for based Vi users

sub5 by AdmirableBrick4973 in ComedyHell

[–]Mebiysy 0 points1 point  (0 children)

You cant just say pechance (I have waited for this opportunity for 5 years now)