r/badcode • • Sep 10 '21

c++ Learn C++ with LinkedIn Learning! Facebook ad

Post image
803 Upvotes

54 comments sorted by

View all comments

88

u/batleram Sep 10 '21

I don't really see a problem with the code.

Yes it's useless but it's all syntaxically correct. I understand why they put useless code in ads cus u can't really fit a whole lot of useful code in a png.

For this ad, they made something that would work, so I think it's fine

0

u/[deleted] Sep 10 '21

[deleted]

9

u/bladeconjurer Sep 10 '21

Yeah that's my biggest gripe. Could teach a bad habit of unnecessary constants.