13 ms·
Chad Strings – The Chad way to handle strings in C
- willcipriano 5y ago"Computer tells him where to start counting" Haha, fantastic.
- deleted 5y ago[deleted]
- xyzzyx 5y agoI fully approve of this.
- jorl17 5y agoWhat. The. Fuck. Amazing.
- ivrrimum 5y agoRussian hacker did this
- narrator 5y agoThis project needs a Chad code of conduct.
- woofster 5y agoI think you need less soy
- klyrs 5y agoThis is a super nice library, but I can't see using it in a professional context because of the toxic meme.
- dan-robertson 5y agoIt’s also kind of a crazy library (eg letting you magically shell out to commands—one step away from a 90s-style IFS security hole). I think it’s more of a fun exercise in crazy things you can do with C preprocessor macros.
- have_faith 5y agoWhat makes it toxic?
- dragontamer 5y agoI personally find it to be a funny meme. But think about the general implications: the general idea of 'Virgin vs Chad' is that 'Chad' gets more sex than the Virgin. Its basically incel logic in some regards, or glorifying toxic masculinity to an extent. Its innate to the meme. So it is what it is. Like many things on the internet, its kind of a mean message if you stop and think about it. On the other hand, I know its "just a joke" (but I'm aware that some "joke" evolve over the months and/or years into... well... not jokes. Serious things). Context for everything. Maybe the incel community will suddenly adopt the meme and use it "seriously", which would make it unfun. (I don't follow many incel groups, so I wouldn't know if they picked up on this meme yet). Kinda like how "Red Pill" was fine when it was just a Matrix reference, but suddenly turned into right-wing virtue signaling... the underlying context and/or culture behind the meme is often more important than the actual message.
- hellotomyrars 5y agoIf it were all just a joke then it might be fun and games but it's certainly not professional. But it's also not just a joke. It's really sad and depressing because incels are real and there are real people who think and perceive reality through those fucked up lenses.
- graderjs 5y agoSo why accept their meaning of it? You can acknowledge that some people see it in that way that you disagree with but you can also see it in your own way. Why require them to change? Why be held hostage to the opinions of others because someone has a different idea from you? That's sad, and crazy, because the implications is you require everyone in the world to have the same ideas as you, ideological purity, or you won't touch it. Which is sad, crazy, toxic and dangerous. But people promoting that sort of persecutory viewpoint seem to lack the empathy or awareness to see what their own position really is. When i see this, i think it's reasonably funny, i understand it might upset some people, but i also think, what's wrong with virgins? I know some people might be of the view that associating the so called "less desirable" traits with virgins is "unfair", but i just see it as, funny and dumb that people would actually believe that has any validity, because it presupposes some idea that virgins are bad. So what's wrong with being a virgin? I hold all these competing interpretations in my head at once but i don't let the ones i dislike win out, i just keep my own. I think the ideological purity requirement where you demand other people drop interpretations that you dislike, is toxic because you think you can control other people's thoughts, saying other people are "wrong" because of an idea in your own head, and failing to grok the key personal responsibility boundary that other people are not responsible for your feelings. If you arrive at a set of interpretations that you find personally upsetting, change the set, because you're giving validity to that interpretation that you pretended to disagree with, because if you had your own interpretation that disagreed with that you wouldn't be so troubled by these other ones you dislike. I agree that this is s hard thing to do sometimes, but precisely I think to the degree to which you are internally validating the interpretation you find repellant. It's actually very helpful to shift your own perspective, in these cases. Don't confuse this with other cases where it's more clear cut and people are doing something bad. I'm not saying "interpret" away bad intent, or bad actions, just... In cases where you can see the competing interpretations, (maybe indicated by the fact that there's a lot of other people who are not troubled by this and think that it's okay, which is perhaps a defining characteristic of things where you shouldn't be interpreting away the bad intent or bad actions are where the majority the vast majority of people not just people in your echo chamber but the vast majority of people find these thing repellent and bad and only a small, generally regarded as twisted, minority think it's acceptable), but when you have a case like this where there are competing interpretations, and you find yourself arriving at interpretations which you dislike then don't require everyone else to change and drop their interpretations, or not say the things they think, rather just own your own reactions and change your own dominant interpretation in your head. Say you don't like this because you make it mean people are saying virgins are weak and awful, and you're a virgin, so you feel people are attacking you. But say you also feel deep down that there's nothing wrong with being a virgin. So just hold to your own interpretation and make that dominant. So you think it's funny because all these people are counting on the implicit association that virgins are not good but you think what's wrong with being a virgin so you think it's funny that all these people have that belief. That they have that belief doesn't affect your belief and trust in yourself. But if deep down you really hate yourself then you'll have to change that belief but if you do hate yourself then that's not something you can blame other people for. so if you hate yourself you can ask other people to stop saying the belief that you feel is a reflection of your own self-hatred. because because what they're saying only has significance to you because you already believe it. In either case of you blame others for your reaction, you have the concept of responsibility all wrong and it will get you in a bond. So hopefully this helps you out if that's the case. This thing i described is actually really effective for a lot of situations (not just this one) particularly where there's ambiguity and where you don't really understand what someone meant when they did a certain thing. Don't be trapped by other people's interpretations, and especially so when you're maybe just imagining what they are, rather than knowing, but in either case, hold your own dominant interpretation that you like. Then you won't be troubled. And if you're not troubled, then everything's good. I know this is not easy, from personal experience, but it's possible and it's effective. So if you try it i think it might work for you ;p ;) xx
- smabie 5y agoIs it really toxic? It's pretty funny and not exactly offensive imo. Besides, you could just maintain a fork that was the same exact thing with a different name and a different readme. Though really, memes on a readme shouldn't affect technical decision making.
- klyrs 5y agoCalling people "virgins" for not using your library is toxic, and I wouldn't send this page to a junior, male of female. I dunno where you work, but this wouldn't fly with my employer (and yes, that impacts my technical decision making). And yeah -- you can fork it, and then maintain that fork. No thanks.
- dragontamer 5y agoIn meme culture, the "virgin" is what everyone else is doing, and the "chad" is why whatever you're proposing is better. Its... not actually mean in the context of the meme. But... yeah, meme culture is weird. Its kind of comparable to South Park's "F Word" episode (https://en.wikipedia.org/wiki/The_F_Word_(South_Park) https://en.wikipedia.org/wiki/The_F_Word_(South_Park)). The words "virgin" and "chad" have changed meaning within the scope of the meme, must like how the F word changed meaning for the south park episode. But on the other hand: its silly to expect everyone else (especially people who aren't into meme culture) to understand the joke. Knowing how the words are interpreted outside of the meme is also important. -------- With that being said: I don't think anyone meming "Virgin or Chad" actually wants their code to be used professionally. Its a joke: and the code itself is likely a joke. I'm interested in reading over the .h to see how it works later, but I imagine that its probably got a bunch of weird stuff going on.
- pseudalopex 5y agoWhy isn't the meme the other way around? Because male virginity is stigmatized. Even within the scope of the meme.
- 5y ago
- tomc1985 5y agoPeoples' obsession with toxicity is becoming a toxic meme in and of itself
- SLWW 5y agoJust say the guy who wrote it is "Chad" and don't worry about it (even though it's all in light hearted fun) Just because noxious gasses are released into the atmosphere doesn't mean you stop breathing on your own. ignore "toxicity" (if you are around people who think that way i recommend finding better people) embrace clean libraries
- klyrs 5y ago> (if you are around people who think that way i recommend finding better people) You recognize this recommendation as cancel culture, right? Because you're treating discussion of toxicity as toxic, and trying to avoid it by dissociating from people who dislike toxicity
- SLWW 5y agoI recommended finding people that don't think in terms of "this is toxic, and that is toxic" They throw the word around like it's a catch all to excuse their bad behavior when they should realize the only "toxic" person here is them Also it's not cancel culture; picking better friends is not cancelling someone. I'm not recommending trying to get them fired or saying awful things about them. Just find better friends who don't see the world in such a narrow view that they can only claim things they don't like as "toxic".
- warent 5y agoI always see the chad meme as making fun of toxic culture, rather than being a part of it
- pseudalopex 5y agoIt's both.
- re 5y agoParody communities have a habit of being taken over by people that aren't being ironic and honestly believe the exaggerated views. Poe's law in action. https://en.wikipedia.org/wiki/Poe%27s_law https://en.wikipedia.org/wiki/Poe%27s_law /r/GamersRiseUp went that way: https://old.reddit.com/r/OutOfTheLoop/comments/fefycf/whats_up_with_rgamersriseup_being_banned/fjnqov7/ https://old.reddit.com/r/OutOfTheLoop/comments/fefycf/whats_...
- josephg 5y agoThe opposite happens too - terms used seriously by one community are adopted by others to parody them. Eg, “woke” started as a term used seriously by the left, and was later adopted by the right as a way to make fun of the left.
- dragontamer 5y ago"Yankee" and "Macaroni" for an older example. This stuff has been going on for centuries. (Stuck a feather in his cap and called it Macaroni)"
- deleted 5y ago[deleted]
- crocodiletears 5y agoIf your workplace isn't safe for toxic memes, then what kind of workplace is it?
- throayobviousl 5y agoSJWs really have to ruin everything don't they? Can't even make a joke anymore...
- carimura 5y agosigh -chad
- comodore_ 5y ago> releases chad strings > just calls str() > refuses to elaborate further > leaves
- 37ef_ced3 5y agoChad here. I use Go
- deleted 5y ago[deleted]
- graton 5y agoThe real issue of course with this isn't the memes, it is that it is licensed GPL v3.0. I don't think many people are going to use it because of that.
- JoeyBananas 5y agoLGPL is a Chad license. MIT is for virgins.
- 74d-fe6-2c6 5y agono, the Chad way would be to not specify a license at all ... what's next? talking with str() about its feelings?
- 1_player 5y agoThe other way around. MIT is for the "I have better things to do with my life than caring about what you do with my code" chad, (L)GPL is for the apprehensive virgin.
- Joker_vD 5y agoThere is "free as in free beer", "free as in free speech", and then there is "free as in GPLv3". Because, you see, being prohibited from doing quite a number of things with a piece of software is the ultimate freedom™ (not actually freedom, just a 7-letter combination that looks like the word "freedom" but has its own specific meaning, further information available upon request).
- deleted 5y ago[deleted]
- ariedro 5y agoThe "do what you want with the software I wrote freely, even if you gain money with it and give nothing in return" approach sounds pretty virgin to me
- 5y ago
- matheusmoreira 5y ago> uses system calls Absolute chadman.
- junon 5y agoAs a serious response, if you're looking for a good string library, look up RapidString. I've used it to great effect for a few years now. The original owner disappeared so there are only a number of surviving forks, but the code is clear, fast and Just Works.
- quotemstr 5y agoOr just write C++. Or Rust. Please don't write new code in C.
- 4gotunameagain 5y agoOr just realize that your coding requirements and environment does not apply to everybody, and stop repeating obsolete and silly comments. C will be here for new code for a long time, whether you/we like it or not
- quotemstr 5y agoC will be here a long time, but it shouldn't be. There's still zero reason to write new code in C. None. If you need to integrate with a legacy codebase, fine. But for new code? C++ is better in every possible way.
- vardump 5y agoWhile I agree Rust might be the future, there are a ton of platforms where C is still the only real option. Like for example many microcontrollers. Or legacy computer systems. But I do give you that the number of use cases where C is required are decreasing rapidly.
- yesenadam 5y ago> There's still zero reason to write new code in C. How about "I like it"? (I used to program in C++ 20 years ago..but not in many years. I just prefer C.)
- me_me_me 5y ago
- SAI_Peregrinus 5y agoLots of reserved identifiers in that header. In C, identifiers starting with two underscores, or an underscore and a capital letter, are reserved. So the only safe place to use this is if you're developing a libc and/or a C compiler, or an OS including those.
- cbsmith 5y agoPretty easy to fix that...
- slmjkdbtl 5y agoIt's clarified [0] that those are actually reserved specific for CharSTR. [0] https://github.com/skullchap/chadstr/issues/4 https://github.com/skullchap/chadstr/issues/4
- SAI_Peregrinus 5y agoYes, as I mentioned it's fine if you're developing the C implementation. You can then choose what to do if any of them get used by a new revision of the C standard, your libc, or your compiler, since you'd be packaging your compiler, libc, and picking what C standard version you support. It's also trivial to change them, if you get a conflict, since it's a header-only library.
- Tsiklon 5y agoI also like how the only other contributor is also called Chad.
- yesenadam 5y agoIt's very funny: "figured you needed a commit from a chad" — A Chad and a gentleman. https://github.com/skullchap/chadstr/pull/5 https://github.com/skullchap/chadstr/pull/5