There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.ml

thefartographer , to programmerhumor in Our social interaction in a nutshell

I am the mayor of Bonetown — Population: you and me.

nieceandtows , to programmerhumor in Our social interaction in a nutshell

Should have used python. The answer is youme.

Zagorath ,
@Zagorath@aussie.zone avatar

Most languages support concatenation of strings using the + operator. The only mainstream languages I can think of that don’t are PHP (which uses “.”) and low-level languages like C & C++.

Eiim ,

R uses paste0() for some reason

meteorswarm ,

C++ does, but it’s not a very efficient operation. en.cppreference.com/w/cpp/string/…/operator%2B

vanZuider ,

Using the C++ standard library beyond the C backwards compatible parts? What devilry is this‽

LeFrog ,
@LeFrog@discuss.tchncs.de avatar

I think your link has a double encoded % at the end: %25

The correct link is https://en.cppreference.com/w/cpp/string/basic_string/operator2B

Zagorath ,
@Zagorath@aussie.zone avatar

I ran


<span style="font-weight:bold;color:#a71d5d;">#include 
</span><span style="font-weight:bold;color:#a71d5d;">#include 
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">int </span><span style="font-weight:bold;color:#795da3;">main</span><span style="color:#323232;">()
</span><span style="color:#323232;">{
</span><span style="color:#323232;">  std::string name;
</span><span style="color:#323232;">  std::cout </span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">lt;</span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">lt; </span><span style="color:#183691;">"you"</span><span style="font-weight:bold;color:#a71d5d;">+</span><span style="color:#183691;">"me"</span><span style="color:#323232;">;
</span><span style="color:#323232;">}
</span>

Using cpp.sh, and got the following error:


<span style="color:#323232;">main.cpp:7:21: error: invalid operands to binary expression ('const char[4]' and 'const char[3]')
</span><span style="color:#323232;">  std::cout &lt;&lt; "you"+"me";
</span><span style="color:#323232;">               ~~~~~^~~~~
</span><span style="color:#323232;">1 error generated.
</span>

edit: lemmy seems to be determined to convert my less than characters to their HTML entity codes, but the error is meant to point to the “+” sign.

meteorswarm ,

This is because your operands are const char[]. That’s not a std::string.

VanillaGorilla ,

JavaScript might even concatenate some integers instead of adding them just for shits and giggles.

azvasKvklenko ,

Lua uses

rikudou ,

C++ does as well, doesn’t it? Though I don’t often use std::string, so I’m not sure. But every other string type I worked with had + overloaded.

Zagorath ,
@Zagorath@aussie.zone avatar

I dunno, I’ve never actually worked in C++, but I tried it out online and it didn’t seem to work.

squaresinger ,

Only if you put “you” and “me” in quotation marks.

balance_sheet ,

It’s a variable created when the conversation started.

TonyTonyChopper ,
@TonyTonyChopper@mander.xyz avatar

The answer is false. youme !<3

LeftRedditOnJul1 ,

The answer is NameError: ‘you’ is not defined

hunt4peas , to aww in Cotton ball

Smol rounded floof!

philluminati , to programmerhumor in Pointers

Thought I saw this meme with an anime girl.

crystal ,
ApfelstrudelWAKASAGI , (edited ) to lemmyshitpost in Who watches these?

https://feddit.de/pictrs/image/a9e9da5c-50a4-4e68-839f-2a56cf279bac.jpegonly good thing to come from that whole situation

Audbol , to memes in Title

Imagine caring what app other people use.

chalupapocalypse ,

You’re not a real Linux user unless you bitch about other people’s software choices

snarf , to memes in Title
@snarf@kbin.social avatar

deleted_by_author

  • Loading...
  • crystal ,

    You can support FOSS devs, too.

    OldWoodFrame , to memes in Title

    I’ve been happy with Liftoff.

    masterairmagic , to linux in 100% Hand Drawn

    sexy!

    SaddieTheMad , to memes in It's so nice to see them all growing, but this is just the truth, sorry.
    @SaddieTheMad@lemmy.world avatar

    I am disliking this sentiment. I am on the Fediverse because Sync’s developer and many others were betrayed by Reddit and I wanted to show solidarity and to ‘punish’ Reddit by leaving. The Fediverse’s values are admirable, but I do not share them all. I believe in supporting good projects, even some that are private if they don’t pose a risk of destroying something bigger, and Sync is a good project that can be easily abandoned without consequences if something goes wrong.

    lotanis ,

    I think we need to separate the system from the product. With Reddit they’re the same, with a single owner. With Lemmy/ActivityPub, just like with email, there’s an underlying system that nobody owns. It’s an ecosystem of pieces created by lots of different people.

    It is a good thing that people are building products on top of that. Some of them are FOSS and some of them not. As long as no-one gets too much control of the underlying system then that’s great! Users retain choice and can choose FOSS apps if they want, or they can choose something like Sync.

    I agree it would be sad if the only apps were paid, but I think a mix is a sign of a healthy ecosystem.

    BaconIsAVeg ,

    It amazes me the how far Reddit users will bend over backwards to suck this dude’s schlong. Must be a mobile-user thing.

    utopianrevolt ,

    that’s what you take away from the post you’re replying to? therapy is very much needed.

    RavenFellBlade ,

    It’s amazing how divorced from reality the FOSS obsessed can be whenever anyone mentions non-FOSS apps. Nobody is bending over backwards, and nobody is sucking anyone’s schlong. If Sync were to have been FOSS, you’d be first in line to sing its praises. This trollish behavior doesn’t win anyone over to the “All Software Must Be Foss” camp at all. Must be a PC Master Race thing.

    BaconIsAVeg ,

    I had a mobile app for Reddit on my phone, you know when I used it last? 9 months ago when I was sitting in a waiting room waiting for an oil change. Every other time when I’m away from the computer I’m doing non-fucking-computer things.

    This guy’s whole shtick was to make enough money to quit his day job, so he wrote a wrapper around someone else’s content using their free API. “Oh he did it all by himself, that’s amazing!” It’s really not, especially if you’d rather not share the subscription profits with other employees.

    The FOSS alternatives? Done by guys with day jobs. They’re passion projects. I can respect that.

    But you lot, who will drop to your knees the minute the guy wants to repeat his shtick now that Reddit kicked him to the curb? Zero respect at all.

    RavenFellBlade ,

    “Wrote a wrapper”. Oh, is that all? It’s just that easy, huh?

    Then why can none of these FOSS apps deliver the same experience, if Dawson is such an untalented hack?

    You either have no clue of what you’re talking about, or you’re a troll. From my perspective, there is no substantive difference. If it’s such an easy shtick, the do it yourself, and do a better job. Put up, or shut up. Nobody asked for your respect, and I’m certain you know precisely where you can shove it.

    jet , to programmerhumor in Pointers

    void *p;

    tostiman ,
    @tostiman@sh.itjust.works avatar

    wojak points at a black hole

    4am ,
    @4am@lemmy.world avatar

    These men are soyjacks, Donny

    Nechesh ,

    The best pointer

    EnderMB , to memes in It's so nice to see them all growing, but this is just the truth, sorry.

    I say this as someone that uses FOSS day to day for work, I don’t really give a shit if my Lemmy app is FOSS.

    For me, Sync was Reddit. It’s where 99% of my interaction with Reddit happened. I don’t really give a shit about Lemmy or the fediverse either. I’m here because Sync is a seamless product that gave me the best interface.

    Despite saying that I don’t care about Lemmy or other distributed servers, Sync is basically that sync (lol) for me. Once I map my old subreddits on Lemmy, the experience doesn’t change.

    thebestaquaman , to programmerhumor in Pointers

    Wait till I show you…

    int *ptr[]

    jdaxe ,

    That’s the same as int **ptr

    Sonotsugipaa ,
    @Sonotsugipaa@lemmy.dbzer0.com avatar

    Only if it’s a function parameter

    Titou , to linux in 100% Hand Drawn

    I would love a doas stickers

    dragnucs , to memes in I'm kind of a big deal

    Do you mind explaining please.

    thedarkfly ,

    In english, “I know you are, but what am I” is a childlish rebuttal to name-calling. It’s like saying “no, it’s not me, it’s you” or “it’s the one who says it who is”.

    It’s the degree zero of rebuttal becaude there’s no argument. In this joke, the rebuttal actually works in a court setting and seems to convince the judge.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines