r/CodingHelp • • May 01 '24

[Request Coders] Help me With NSFW Coding question NSFW

I have Question related to Coding But Of NSFW nature, I don't wanna Get Banned, SO if anyone can help me Pls DM me.

0 Upvotes

15 comments sorted by

View all comments

9

u/KervyN May 01 '24

Just ask the question. And no, computer viruses are no std ;-)

3

u/[deleted] May 01 '24

Do you know The Adult camming site Stripchat or Chaturbate, They Use tokens that users pay to model to perform activities, I wanna know How are these tokens created? What programming language are they built in? How are they stored? How do I implement these tokens if I were to build a site like that?

2

u/Nxdevil Friendly Neighborhood Coder May 01 '24

Its just like videogame money, probably a number in a Database and not like Cryptocurrency Tokens that you might be thinking of.

You can write the transaction logic in any language you want, as long as you dont do it on the client side. We dont want users to increase their tokens "Cheat-Engine"-style, critical stuff should run on your server.

Big issue might be race conditions, you generally want to check if your user has enough funds (Tokens) to send to someone else or to spend. See the example about bank tellers on the Wikipedia article about "Record Locking"

I advise against implementing something like this as a novice if you plan on using it on a productive website that is supposed to make you money or at least having someone experienced cross check your code. Better safe than sorry, when its about payments!

If you do it as a private hobby project just for learning, go for it! There is alot of important concepts to discover for you :)

2

u/[deleted] May 02 '24

I think these site ripping off both the models and users the Stripchat tokens cost the user 11 cents to 8 cents depending upon how much you buy while the model only gets 5 cets per token, so I kind wanted to build a site like that that pay the model more but also friendly to the users pocket, so that the numbers of users is more, it's just an Idea and this conversation is a feasibility study, I'm not looking to make too much money, I've been a user of Stripchat, And oh boy does it make hole in your pocket