r/ProgrammerHumor • • Mar 25 '20

Meme Its a win-win situation

Post image
55.1k Upvotes

529 comments sorted by

3.9k

u/IronMan-Mk3 Mar 25 '20

Turn the weaknesses and bugs into features and everybody will like it.

2.0k

u/[deleted] Mar 25 '20

My new Android app "Compilation Errors" is going to take off.

272

u/twisted_hysterical Mar 26 '20

Oh you!

46

u/gravv Mar 26 '20

Wait I had that idea :((((

39

u/A_Zealous_Retort Mar 26 '20

Train an algorithm on random snippets of code found on github and stack overflow (bonus points if multiple languages) and have it start producing scripts with user seeds and parameters like number of lines. Assign point values to different errors and warnings based on rarity/severity, then add a leaderboard and submit as a game.

10

u/[deleted] Mar 26 '20

You are a spicy one, my man.

32

u/sinkwiththeship Mar 26 '20

NullPointerException about to take off.

3

u/Jazzinarium Mar 26 '20

You can't top my IllegalArgumentException app

0

u/[deleted] Mar 26 '20

[deleted]

6

u/Tooniis Mar 26 '20

Segfault core dumper is even better

5

u/[deleted] Mar 26 '20

Mine called ‘AppConfigDagger not found’ is doing quite well.

183

u/[deleted] Mar 26 '20

[removed] — view removed comment

209

u/[deleted] Mar 26 '20

It’s gonna try, but fail in the process.

95

u/SuperGuruKami Mar 26 '20

At least you're honest

118

u/[deleted] Mar 26 '20

It won’t sell your data, but it will trade it for money!

→ More replies (7)

6

u/Graylily Mar 26 '20

Yeah I download your app.. Tik Tok Boom right?

30

u/VeganTruck Mar 26 '20

... while sending all personal info to USA is the default configuration as feature.

3

u/raft15 Mar 26 '20

Of course not! This time it's the US government, they alternate.

85

u/BiR3Lson Mar 25 '20

bethesda's new slogan

30

u/[deleted] Mar 26 '20

If they don't build it, the community will.

19

u/eddmario Mar 26 '20

I was expecting one of the Unofficial Patches

10

u/[deleted] Mar 26 '20

Those are awesome. In the context of not learning SQL, I thought a mod that extended the scripting engine with ways to store and retrieve data was more apt.

→ More replies (1)

6

u/Dragonsandman Mar 26 '20

New? They've been doing that since Morrowind.

5

u/martin-s Mar 26 '20

They literally recognized plagiarism because they saw the same bug happening in a different game.

2

u/g0uveia Mar 26 '20

Bethesda 101

1

u/WooooshVictim Mar 26 '20

Oh yes my computer-crashing code is gonna be perfect

1

u/[deleted] Mar 26 '20

"Working as implemented"

0

u/[deleted] Mar 25 '20

[deleted]

65

u/[deleted] Mar 26 '20

Huh. I always assumed it was a rather close analog idea taken from the limitations of the data payload capacity of a SIP NOTIFY message (commonly used in digital phone networks for MMS/text messaging). Basically, tweet what you could fit in a text message.

70

u/ectocooling Mar 26 '20

It was - Twitter was originally sms based. I’ve never heard the above story (not that, that makes it true/false)

→ More replies (11)

23

u/migvelio Mar 26 '20

This doesn't quite makes sense. If you know enough html/css to build something, no matter how shitty it is, you know enough to change the size of a text box. It's like designing something in Photoshop but not knowing how to pick a color. Kinda impossible.

→ More replies (5)
→ More replies (1)

483

u/forfudgecake Mar 25 '20

"Hey baby, wanna see my primary key"

189

u/GluteusCaesar Mar 25 '20

Something something INSERT

0

u/[deleted] Mar 26 '20

[deleted]

92

u/forfudgecake Mar 26 '20

Awh shit drop table, DROP TABLE!

8

u/anton____ Mar 26 '20

DROP DATABASE

43

u/[deleted] Mar 26 '20

Never cringed before while reading SQL until now... nvm I take that back.

4

u/Caninomancy Mar 26 '20

Something something TRUNCATE dick.

4

u/uvero Mar 26 '20

You ever hated an SQL query so much, you wanted to SQL-inject poison into your own eyes?

→ More replies (1)

147

u/[deleted] Mar 26 '20

Snapchat has changed a lot since it was released, but I remember a quote from the early days:

“Facebook was created by a man who never had a girlfriend. Snapchat was created by a man who had multiple girlfriends at the same time.”

67

u/GreedyGringo Mar 26 '20

Except for when it was released how it told every fucking person the top 3 people you communicate with.

3

u/[deleted] Mar 26 '20

Oh yeah, that feature did fuck me over a few times as an asshole college student.

2

u/Fallenangel152 Mar 26 '20

Honestly I had always assumed snapchat was invented for cheaters.

598

u/MCStreetguy Mar 25 '20 edited Mar 25 '20

QA: "This still seems to be buggy. The messages disappear quickly."

Dev: "Oh, it's not a bug, it's a feature!"

86

u/theofficialnar Mar 26 '20

I told this to our QA back then. Sufficient to say, I'm glad I still have a job.

24

u/812many Mar 26 '20

It’s the become the QA equivalent of saying to a cashier, “if it doesn’t have a price it must be free!”

→ More replies (2)

18

u/Maydietoday Mar 26 '20

Classic Quabity Assuance

4

u/WildInSix Mar 26 '20

That’s not it, but I’m getting close

1

u/leftysarepeople2 Mar 26 '20

That's supposedly Dust app that Cuban totes

366

u/[deleted] Mar 25 '20

Is SQL the best way to store chat messages in an app?

317

u/Saragon4005 Mar 25 '20

If you are small then yes. If you have thousands of users probably not.

164

u/moekakiryu Mar 25 '20

if not SQL, what would you use?

551

u/Mancobbler Mar 26 '20

Git.

Put the chat in the commit message, use an empty commit. Want chat rooms? Just branch.

337

u/RainFurrest Mar 26 '20

Yo this girl I met the other night just accepted my pull request

→ More replies (9)

41

u/VanillaFlavoredCoke Mar 26 '20

Yo what the fuck

6

u/McDerface Mar 26 '20

part of me died reading this

→ More replies (6)

204

u/[deleted] Mar 25 '20

FileWriter and FileReader

115

u/Piyh Mar 26 '20

I'm too inexperienced to know if this is a joke or not

73

u/clubby789 Mar 26 '20

File IO wastes too much time, store it in a list. If the server crashes and you lose all your data, well maybe you should have programmed better lol

48

u/[deleted] Mar 26 '20

Just make big json

→ More replies (5)

7

u/childintime9 Mar 26 '20

Lol. Time to use nio.

→ More replies (1)

105

u/timawesomeness Mar 26 '20

A csv file

37

u/deadlychambers Mar 26 '20

This developer is going somewhere

27

u/[deleted] Mar 26 '20

Upper management written all over.

→ More replies (3)

88

u/fabrikated Mar 25 '20

noSQL

109

u/nishinoran Mar 26 '20 edited Mar 26 '20

Mongo DB is web scale, it has sharding.

I hear piping data to /dev/null might scale even better though

64

u/mecataylor Mar 26 '20

I’ve never used Mongo, but I have sharded before. Does Mongo have a function to change its pants?

35

u/[deleted] Mar 26 '20

People like to joke about MongoDB, but this is actually a good use case for a sharded noSQL database like MongoDB. Due to the consistency model of most SQL databases it can be hard to get enough write throughput to satisfy the requirements for a website with lots of users.

→ More replies (29)
→ More replies (2)
→ More replies (1)

67

u/kirabii Mar 25 '20

Nosql is best for big data.

At least that's what I concluded while Googling for my boss before.

24

u/[deleted] Mar 26 '20

I never understood this. It feels, intuitively, like it should be much, much worse for big Data. To say nothing about keeping track of development, don't you need to scan each record to find the key when you look for things?

21

u/ratonbox Mar 26 '20

Big data/NOSQL doesn’t have correlations between documents, you don’t save the tables, you create the tables on query. When searching you use inverse indices (like what you can see at the end of Encyclopedias and other books). It’s pretty damn smart and Lucene is amazing like that. Also works great at distributing the data across multiple nodes which is way harder/nigh impossible on SQL type DBs. Yelp’s blog is pretty detailed on how it works and helps them: https://engineeringblog.yelp.com/2017/06/moving-yelps-core-business-search-to-elasticsearch.html

Scalability is key, you can’t scale SQL to Petabytes of data.

→ More replies (4)
→ More replies (13)

9

u/ahhlenn Mar 26 '20

Doing your due diligence I see.

9

u/ELFAHBEHT_SOOP Mar 26 '20

Other people have been saying noSQL, which is true. However, you really want that distributed architecture as it helps your service scale. If you just had a normal SQL server, you would have thousands or millions of users slamming one database/server repeatedly.

You could have the servers replicate themselves, but that would just be a headache in its own right. noSQL databases like Cassandra are built entirely around the idea of being distributed and highly scalable.

11

u/[deleted] Mar 26 '20

A folder for each chat and then files named after the current UTC time with chat messages as content.

3

u/fiqar Mar 26 '20

SQL is a query language, not a storage layer. You'd definitely still use a database in any case.

→ More replies (9)

50

u/thesoundofbutthurt Mar 25 '20

Why wouldn’t something like postgres scale well for something as simple as storing messages? A relational database seems well here

91

u/TheMcDucky Mar 25 '20

No, you need at least 5 frameworks stacked on top of a system released no more than 3 years ago, using a revolutionary unfinished programming language based on some obscure paper from the 80s

44

u/TheGreatWheel Mar 25 '20

Why do you have to hurt me? Aren’t we all going through enough as it is already?

→ More replies (2)

47

u/[deleted] Mar 26 '20

You're only getting joke answers so far. Relational databases provide certain guarantees (ACID). Achieving these guarantees requires a degree of synchronization and locking. When thousands of independent clients are trying to make independent write updates, the locking for the transaction processing becomes quite a problem.

Additionally, the database is intended to function as a single entity, typically. Other, distributed architectures, such as mongodb, can "shard" the data, and distribute the update load. There are some complex topics involved that go beyond the scope of a quick reddit comment, but databases generally only scale through faster hardware, which has its limits. Other architectures can scale with more hardware, which is easier to achieve.

15

u/Mancobbler Mar 26 '20

WITH (NOLOCK) and all of your problems go away! /s

→ More replies (3)
→ More replies (3)
→ More replies (1)

68

u/fromage_doge Mar 25 '20

to store huge amounts of data, i recommend using JSON: fast, lightweight and secure.

98

u/oiimn Mar 25 '20

And just keep bouncing it between servers so it never has to be stored anywhere

0

u/[deleted] Mar 25 '20

[deleted]

75

u/[deleted] Mar 26 '20

Data rivers! No need to secure it because the data is always in motion using our patented Schrodinger's storage where your data is both on our servers and not.

→ More replies (3)
→ More replies (3)

27

u/GluteusCaesar Mar 25 '20

How the crap can a plaintext format be more secure than any other?

7

u/martin-s Mar 26 '20

No one would expect you to use JSON so they won't bother looking for sensitive data there. It's a slightly risky strategy.

→ More replies (9)

6

u/CountyMcCounterson Mar 26 '20

Ah yes that explains the python flair, just a meme developer

→ More replies (4)

26

u/Asiansensationz Mar 25 '20

It sure is better than GoogleSheet API with JSON.

8

u/[deleted] Mar 26 '20

Ooo I've built that before to placate some suit's need for easy editing

was lame

6

u/goblin_goblin Mar 26 '20

It really depends on your implementation. SQL can get bogged down with giant databases. But it can definitely work. Some giant companies have proven that SQL can scale.

2

u/karmahorse1 Mar 26 '20

It’s dependent on the amount of I/O your application does, not just the database size. Either way, no giant companies these days have just a single data storage solution. Even if their primary DB is SQL it’ll still have layers of caching in front of it.

8

u/odraencoded Mar 26 '20

SQL is a language. It doesn't store anything.

You're thinking of relational databases and RDBMS (relational database management systems).

2

u/iAmTho Mar 26 '20

This should be higher up.

3

u/pieandpadthai Mar 26 '20

Depends on the way you retrieve and set up your table, but that’s what databases were built for.

7

u/[deleted] Mar 26 '20

SQL is a language, not a database.

→ More replies (1)
→ More replies (4)

49

u/[deleted] Mar 26 '20

Am I the only one that remembers it being advertised as the way to send nudes people can't save without you knowing it?

2

u/Sexy_Squidward Mar 26 '20

Meh, just get a screen recorder

15

u/FredditTheFrog Mar 26 '20 edited Mar 26 '20

It detects them

Edit: downvoted for stating a fact? Here’s proof for yall ;) https://imgur.com/a/yhDIiCk

3

u/maibrl Mar 26 '20

It didn’t in the early days, at least not on iOS

→ More replies (3)

246

u/BaconShrimpEyes Mar 25 '20

Fun fact: to comply with US data and investigation laws, Snapchat saves all chats and stories permanently on its servers. Your history is encrypted, and Snapchat will only decrypt for anybody under warrant from the FBI or other similar organizations internationally.

60

u/umhoops Mar 25 '20

76

u/BaconShrimpEyes Mar 25 '20 edited Mar 26 '20

This is a press release regarding Snapchat’s settlement in 2014. At the time, their encryption practices were (obviously) abysmal. They were ordered to pay over $250 million by the end of 2015 regarding a few of these cases (This case settled for 157 million). It’s unreasonable to look at what they had been doing at the time this was written in May of 2014 and extrapolate that this must still be their practice now. Snapchat has grown, their budget has grown, so if they say the data is encrypted, at this point, it almost certainly is, especially after such huge payouts.

Edit: extrapolate not interpolate

17

u/ppiiiee Mar 25 '20

buh buh but i want to complain about being in a orwellian societyyyyy

16

u/[deleted] Mar 26 '20

The government having full access to messages you pass to a friend over a privately owned messaging app that explicitly touts privacy as a feature is pretty Orwellian.

→ More replies (14)

13

u/BaconShrimpEyes Mar 25 '20

Do you not think Big Brother encrypted all the data? You can’t have just any random civilian with access to that kind of sensitive information. The government still has full access to your snaps if they need it

5

u/[deleted] Mar 26 '20

Congress is trying to pass a law that requires all web traffic be decrypted so they can see it. They’re really pissed about end-to-end encryption and are trying to make it criminally illegal. A byproduct being that there’s even more data available to be mined by corporations.

Every day that passes, Stallman looks more and more sane.

→ More replies (1)

6

u/MattieShoes Mar 26 '20

Extrapolate, not interpolate

→ More replies (2)

6

u/oldDotredditisbetter Mar 26 '20

yeah hopefully no one actually thinks they don't store any data

2

u/Marcyff2 Mar 26 '20

Due to this and the popularity of it among teens. Snapchat has the biggest child porm database in the world

1

u/Cm0002 Mar 26 '20

The first part isn't true, there is no requirement for company to keep a copy by US law, however, companies also don't have a requirement to not keep a record as they see fit. So the second part might be true.

0

u/[deleted] Mar 25 '20

[deleted]

88

u/deadlychambers Mar 26 '20

"encrypted"

35

u/ButItMightJustWork Mar 26 '20

Base64 encrypted ;)

If FBI is not asking nicely, they hace to decrypt themselves.

→ More replies (1)

0

u/[deleted] Mar 26 '20

[deleted]

→ More replies (1)

56

u/ServerZero Mar 25 '20

Can someone link me to a good SQL tutorial I would greatly appreciate it .

55

u/Diavarus Mar 25 '20 edited Mar 26 '20

SQLZOO is pretty good. It's mostly basic stuff that should work with every major database

39

u/lamerlink Mar 25 '20

The biggest thing with SQL in my opinion is to dive in to it; try to find a tutorial with a test db you can download, or if you’re feeling really eager create your own.

just please don’t use oracle

10

u/foxlive7 Mar 26 '20

Last semester I started learning SQL in my college and they used oracle to teach everything... Let's say I can't recommend it

→ More replies (1)
→ More replies (12)

1

u/[deleted] Mar 26 '20

https://learnsql.com/ have got all their courses for free until 20th April.

1

u/500ls Mar 26 '20

Derek Banas on YouTube has some good tutorials. If you chain his php and sql videos you'll be all set to teach yourself everything else as you go with just the manual and stack exchange.

→ More replies (1)

19

u/queenkid1 Mar 26 '20

It's not that he didn't learn SQL. He just learned NoSQL.

2

u/mjarkk Mar 26 '20

Shit I feel soo bad I can relate to this, maybe I should start learning sql

8

u/nematode_fetish Mar 26 '20

Then you have the company and police liking it because the messages are saved, you just can't see them

12

u/[deleted] Mar 26 '20

Except everything is saved. Fun fact. If you take a picture on Snapchat, even if you don’t send it to anyone, it’s saved on a database. Even funner fact, by making a snapchat account u agree to let them use any pictures u take in an advert.

6

u/SpiderAlpha33 Mar 25 '20

He's just being relational with the handshake.

6

u/anthro28 Mar 25 '20 edited May 07 '20

...

11

u/lazyeng1neer Mar 25 '20

Improvise. Adapt. Overcome

5

u/Electroverted Mar 26 '20

Snapchat is dead. It was too complicated to add celebrities and influencers (oh boy, a special code!), and most of them have moved on to IG stories

→ More replies (1)

3

u/Newnustart Mar 26 '20

Who said it doesn't save your messages lol

3

u/[deleted] Mar 26 '20

The first meme on this subreddit that made me actually laugh out loud.

3

u/JJakk10 Mar 26 '20

I was thinking of this exact meme format when I learned how Snapchat works

3

u/MustardIsFood Mar 26 '20

I thought Snapchat does save everything on a database, though, not for users, but for the corporation to use how they want.

1

u/keimarr Mar 26 '20

I've been onto this subreddit for almost a year now, or more than a year now, I was just a casual lurker that I don't know why I've even onto this subreddit in the first place, now I just started learning how to code at my school and also in my free time, that this memes are starting to make sense to me.

1

u/[deleted] Mar 26 '20

I have also started learning to code just now, but not in school, just in free time

2

u/AntiAntifaTerrorists Mar 27 '20

2/3 programmers are self-taught

4

u/Strovex Mar 26 '20

Why does someone like it?

2

u/[deleted] Mar 26 '20

Ahhhh, this is big brain meme

2

u/[deleted] Mar 26 '20

Because nothing is saved at all...

2

u/aazav Mar 26 '20

It's it's, son.

2

u/[deleted] Mar 26 '20

let's just forget that snapchat does in fact save messages and they've been under fire for misleading marketing for it and that snapchat is a privacy nightmare who just got end-to-end encryption in late 2018 and that the founder of snapchat, Evan Spiegel, has repeatedly dodged questions on the secruity of the app

Seriously though, don't send confidential stuff over Snapchat, it's not a secure platform. Same with Telegram and Discord.

2

u/lirannl Mar 27 '20

Me and a friend are doing the SQL in our group which no one (including us) wants to do.

It is what it is...

3

u/AttackOfTheThumbs Mar 26 '20

Snapchat stores a shit ton of data. A shit ton.

That's why other apps are able to keep messages visible forever.

2

u/Easterland Mar 26 '20

i thought this was a good thing until me and my ex broke up and i wanted to read back on our good snapchat conversations but they don’t exist anymore. like how people used to read the letters of their lost love and stuff

1

u/Skizm Mar 26 '20

It doesn’t let you see their saved messages lol.

1

u/[deleted] Mar 26 '20

But now I never remember what we were talking about when I need to reply

1

u/Cueadan Mar 26 '20

Not good enough, we want win-win-win.

2

u/bishtheish Mar 26 '20

When win-win-win, we all win.

1

u/[deleted] Mar 26 '20

What is SQL

→ More replies (1)

1

u/-Listening Mar 26 '20

“That’s still basically a win-win

1

u/doublethumbdude Mar 26 '20

Snapchat saves everything, even the child porn that keeps getting sent. One of their main admins is probably jerking himself right now to some of them messages.

They're probably selling all that juicy face data they keep getting too.

1

u/TheRealMarkTwain Mar 26 '20

needs night mode so bad

1

u/mantrap2 Mar 26 '20

The funny-sad part: it could be true.

1

u/rightbeforeimpact Mar 26 '20

Win-win-win. We all win, even me.

1

u/[deleted] Mar 26 '20

Until the government comes around and ask them to hand over all the data

1

u/UnspeakablePudding Mar 26 '20

There is no such developer

1

u/LiquidityTrapper Mar 26 '20

Does snap chat use sql?

1

u/jakethedumbmistake Mar 26 '20

Its a beautiful day in the USA

1

u/Assasin2gamer Mar 26 '20

Pleaseeeee elaborate I’m in the same situation.

1

u/[deleted] Mar 26 '20

Doesn’t Snapchat use React Native or Swift? Literally nobody cares about SQL

1

u/TrueStory_Dude Mar 26 '20

I honestly can’t expect such a rush!

1

u/Solidarity365 Mar 26 '20

Oh, Snapchat saves messages. You just can't view them in the app.

1

u/kabrandon Mar 26 '20

This hits home. I've just never had a reason to use SQL yet since I've mostly made do in NoSQL-land.

I'm assuming one of these days I'll have to work on a RDB for work, I'll learn it then.

1

u/RubbelDieKatz94 Mar 26 '20

SQL

IMO any modern backend should use a framework to interact with a database. C# should use Entity Framework Core, for example. No need for SQL.

1

u/i_hate-u Mar 26 '20

Snapchat Engineers: We may have to delay the launch. The app has a bug - it can't save messages

Managers: Dude, that's no longer a bug, it's now a feature

1

u/dirtyviking1337 Mar 26 '20

I love Jim Carrey. It's a win-win.

1

u/ethvlad Mar 26 '20

They don't have space on their server

1

u/Maverickthekid Mar 26 '20

Yikes, except it does save your messages on their cloud, but right comedy. Haha!

1

u/jakethedumbmistake Mar 26 '20

ChiComs: *It’s literal heaven in a tub.

1

u/[deleted] Mar 26 '20

In fact they have a database and they store almost everything from the user ...

1

u/Yologamer1084 Mar 26 '20

Unless you use the "delete messages after 24hrs" option

1

u/Slyvan25 Mar 26 '20

But what if the message are still available and you just don't see them.... thats what we call a soft delete

1

u/Promethrowu Mar 26 '20

Then why can I view year old snaps that i havent opened yet? You're retarded just like your """"""joke"""""

1

u/[deleted] Mar 26 '20

If u think snap chat isnt saving ur vids then lmao

1

u/indorock Mar 26 '20

Ah so that's why I can never log in and always need to sign up for a new account everytime I use snapchat.

1

u/hansjc Mar 26 '20

Everyone missing the entire point that the people you send them to can’t see them again 🤔

1

u/NosaAlex94 Mar 26 '20

I save messages on Snapchat though.

1

u/teressapanic Mar 26 '20

Good luck saving all that data in a SQL database.

1

u/[deleted] Jan 24 '22

Plot twist: Snapchat actually stores the messages and images.

1

u/MomStudentSister Mar 29 '22

OH MY GOD WHY ARE YOU GUYS SO FUNNY 😂

1

u/joseph-louthan Mar 26 '20

Legit question here: who still uses Snapchat?

3

u/Gant0 Mar 26 '20

Children and cam whores. Hopefully there's no overlap in that Venn diagram.

1

u/demppsi Mar 27 '20

almost every singe high schooler

1

u/raptearer Mar 26 '20

Funnily enough, Snapchat was created by members of another chapter of a frat I was in in college. The reasoning they gave for why it didn't save messages was because it was originally just meant for guys to send dick pics to girls without leaving any evidence later on that could be used in harassment charges or to mock them if they showed it around to their friends.

Why I never use the app

1

u/anu2097 Mar 26 '20

This is factually incorrect but funny. That developer probably saved them millions in storage costs.

But probably they still store that data somewhere

→ More replies (1)

1

u/destiny24 Mar 26 '20

Snapchat definitely saves messages.

You need to scroll up on your conversations lol. Though it doesn't same snap pictures.

1

u/Does_Not-Matter Mar 26 '20

I giggled and peed a little

1

u/MoJo--BroJo Mar 26 '20

Win-win-win*

1

u/[deleted] Mar 26 '20

What do you mean it can't save images? It's a feature, not a bug!

1

u/DrPigy Mar 26 '20

Please don't tell me you store images in a SQL database

1

u/jackknife32 Mar 26 '20

This makes no sense

1

u/DaPlayerz Jun 10 '20

What do you mean