Thread 106017526 - /g/ [Archived: 8 hours ago]

Anonymous
7/25/2025, 9:27:40 AM No.106017526
golang
golang
md5: 2662cdfc565169f858932f5c2ef8dc29🔍
>having a fight with teammates
>they want to use prefix/suffix "I" to name interfaces in Go
>I am against it because it doesnt make sense to mix subhuman patterns into already superior and clean Go
am I a seething asshole in this story?
are they right?
but like how long are we going to use these types of shit even in newer languages?

can C++/C#/Java fags explain why was it ever needed to add the prefix/suffix "I" to the name?
why do you have to know by glancing over the argument of a function whether its a interface or a class?
Replies: >>106017650 >>106017753 >>106018028 >>106019287 >>106019293 >>106019849 >>106023033 >>106024206
Anonymous
7/25/2025, 9:51:01 AM No.106017650
>>106017526 (OP)
you name name interfaces without any suffixes or prefixes, and implementing classes should have Impl suffix

this is the only White Man's way of doing interfaces

if you disagree you're tranny, brown etc.

interface WhiteMan {
int favoriteNumber();
}

class WhiteManImpl implements WhiteMan {

int favoriteNumber() {
return 1488;
}
}
Replies: >>106017678 >>106017850 >>106019293 >>106020351
Anonymous
7/25/2025, 9:53:35 AM No.106017664
you already had this thread and it died. nice roleplay op
Anonymous
7/25/2025, 9:55:26 AM No.106017678
>>106017650
fpbp

OP btfo'd
Anonymous
7/25/2025, 10:11:20 AM No.106017753
posted-it-again-award-award
posted-it-again-award-award
md5: 6620639e49120a8c9865966ab4ab4b15🔍
>>106017526 (OP)
Anonymous
7/25/2025, 10:34:24 AM No.106017850
>>106017650
but you havent explained why do you need suffix/preffix at all?
do people really need that indicator of what is an interface and what is not?
what are the usecases of knowing that by glance?
Replies: >>106025806
Anonymous
7/25/2025, 11:07:53 AM No.106018028
>>106017526 (OP)
Long time ago when I took java classes, the teacher said every word ending with ---able were interface.
Replies: >>106018050
Anonymous
7/25/2025, 11:12:11 AM No.106018050
>>106018028
that is retarded

some interfaces with that make sense, like Serializable, Sortable

but most of the time you will be putting an interface on some business service, or repository
Replies: >>106019293
Anonymous
7/25/2025, 2:38:18 PM No.106019287
>>106017526 (OP)
>not adding "I" > adding "I"
>adding "I" > adding"Impl" (or creating sub package "impl")
And I'm seeing the last one way too often.
Replies: >>106019293 >>106019300
Anonymous
7/25/2025, 2:38:57 PM No.106019293
>>106017650
>implementing classes should have Impl suffix
no. it should have NO suffix you stupid cargoculting mongoloid.

either you have multiple classes that can be differentiated by meaningful names from the interface OR you have ONLY ONE FUCKING CLASS WITHOUT AN INTERFACE. YOU DON'T FUCKING CREATE AN INTERFACE WITH ONLY ONE CLASS HOLY FUCKING RETARDED JEET SHITTER

>>106017526 (OP)
also stop posting this thread you removing YEARS from my life expectancy through the sheer amount of anger and stress i experience every time i enter this thread. and no i won't stop

>>106018050
you use adjectives where it makes sense and normal words that describe the function everywhere else

>>106019287
WRONG
Replies: >>106019300 >>106019418 >>106023033
Anonymous
7/25/2025, 2:39:41 PM No.106019300
>>106019287
>>106019293
wait nvm you good
Anonymous
7/25/2025, 2:56:17 PM No.106019418
>>106019293
>OR you have ONLY ONE FUCKING CLASS WITHOUT AN INTERFACE
found the jobless retard

you always try to put a business heavy service behind an interface, because:
- you can expose a single interface from a module and as a dev you instantly see what it does (input -> output)
- super easy to mock the interface for testing. Have a repository interface? then create a fake repo for super lightweight tests that uses a map underneath
- its easy to swap beans based on different profiles / feature flags if they implement a common interface

which I don't expect a jobless retard from /g/ like (You) to know of course, just trying to educate you, so you dont embarrass yourself in the future
Replies: >>106019495 >>106019579 >>106019593 >>106025919 >>106029080
Anonymous
7/25/2025, 3:08:11 PM No.106019495
>>106019418
>t. it makes it easier to add technical debt
Replies: >>106019524
Anonymous
7/25/2025, 3:12:11 PM No.106019524
>>106019495
>t. can't code and doesn't do DDD
Anonymous
7/25/2025, 3:19:25 PM No.106019579
>>106019418
Actual mental illness kek
Replies: >>106019588
Anonymous
7/25/2025, 3:20:49 PM No.106019588
>>106019579
it's called being employed and having years of experience building commercial software
Replies: >>106019618 >>106019620
Anonymous
7/25/2025, 3:22:09 PM No.106019593
>>106019418
literal and unironic skill issue
Replies: >>106019616
Anonymous
7/25/2025, 3:25:23 PM No.106019616
>>106019593
get a job goober
Replies: >>106019640
Anonymous
7/25/2025, 3:25:29 PM No.106019618
>>106019588
I also have that, but I don't have enough cognitive dissonance to pretend that commercial software isn't garbage. Everyone realizes this, even you do when you're off the clock and *using* software. You just turn that part of your brain off while you're working on your goyslop apps.
Honestly, I don't have any problems with people doing this cognitive dissonance thing if it allows them to have a normal life and a family. I really mean that. But to go on 4keks and unironically defending this garbage? That's just embarassing. Lmao.
Anonymous
7/25/2025, 3:25:43 PM No.106019620
>>106019588
i'm sorry you spend years making shitty code. and yes you can have shitty code AND a working commercial software
Anonymous
7/25/2025, 3:27:52 PM No.106019640
>>106019616
i did and i found that in 99% of all cases every single-class-interface could have been replaced with just the class.

if you ever need an interface: guess what? you can just add it! so please spare me going through hundreds of literal boilerplate "interfaces" because someday in your schizo delusions it becomes useful.

PS: use modern libraries
Anonymous
7/25/2025, 4:02:31 PM No.106019849
>>106017526 (OP)
Gojeets lost.
Anonymous
7/25/2025, 5:09:01 PM No.106020351
IMG_20250725_110848_718
IMG_20250725_110848_718
md5: e4d9a16601ea0b5c10e1783ae0418006🔍
>>106017650
A white man cannot be a contract.

Should be the Hyperboreum contract instead.

type Hyperboreum interface {
Tywaz() rune
}


Now every struct that implements the Tywaz function complies with the Hyperboreum contract.
Anonymous
7/25/2025, 8:44:20 PM No.106023033
>>106017526 (OP)
>can C++/C#/Java fags explain why was it ever needed to add the prefix/suffix "I" to the name?
Java doesn't have prefixes or suffixes for interface names

basically what >>106019293 is raving about: you don't need to differentiate names of interfaces and classes
Anonymous
7/25/2025, 10:03:13 PM No.106024206
>>106017526 (OP)
Superior Java Chat here.
We don't prefix "I" to our interfaces, that's a Cshart thing.
Tell your teammates that they are fags and they should suck a dick
Replies: >>106024933
Anonymous
7/25/2025, 10:43:14 PM No.106024933
>>106024206
I did
15 min later my manager scheduled an unordinary meeting on Monday with me
Replies: >>106025433
Anonymous
7/25/2025, 11:05:18 PM No.106025433
>>106024933
is your manager hot? this might be a good thing!
Replies: >>106025753
Anonymous
7/25/2025, 11:20:27 PM No.106025753
>>106025433
its a bearded married man with kids
Replies: >>106025792
Anonymous
7/25/2025, 11:22:29 PM No.106025792
>>106025753
>kids
jesus christ anon don't go to that meeting!
Anonymous
7/25/2025, 11:23:00 PM No.106025806
>>106017850
>but you havent explained why do you need suffix/preffix at all?
It's an outpost of the Systems Hungarian brainworm, and it's so dumb.
The same people who do that also like to put m_ at the start of member fields and otherwise add type mangling even though nothing needs it. They also can't into actual readable names.
Replies: >>106025875
Anonymous
7/25/2025, 11:25:47 PM No.106025875
>>106025806
you see back in the days vowels used up more ram cycles and i created a wiki page that explains all of my commonly used abbreviations so it's actually the best practice
Anonymous
7/25/2025, 11:28:03 PM No.106025919
>>106019418
don't listen to the jobless shitters
Anonymous
7/26/2025, 3:37:06 AM No.106029080
>>106019418
all your points ignore the argument of the interface having only a single implementing class

you can easily do Extract Interface when needed
creating them eagerly is - at best - unnecessary