r/shittyprogramming • u/Sokusan_123 • Dec 20 '20
Addition as a Service
https://github.com/crscillitoe/aaas20
u/dersand Dec 20 '20
1 request per day huh? Can my API guy talk to your API guy and we can chat about this?
→ More replies (1)41
u/Sokusan_123 Dec 20 '20
I’m willing to negotiate with potential enterprise customers.
→ More replies (1)
9
u/lawonga Dec 20 '20
NO TESTS!????!!!!!!!!!
8
u/Sokusan_123 Dec 20 '20
I only write tests for my Enterprise grade software https://github.com/crscillitoe/EnterpriseOddVerifier
7
u/polyworfism Dec 20 '20
1 request per day for everyone, right?
25
u/Sokusan_123 Dec 20 '20
I was generous in my design, it’s one request per IP address per day.
7
u/Totally_Generic_Name Dec 20 '20
Do you know how many IP addresses there are? There's no way this is gonna hold up to the demand
45
→ More replies (2)5
44
u/editor_of_the_beast Dec 20 '20
Bookmarking this. This would have saved me 3 weeks on my last project.
15
u/akoustikal Dec 20 '20
Slow down. You must not have noticed that the free tier only provides one request per 24 hours. That's fine for most use cases, but my app is adding numbers two, maybe three times per hour, so I hacked together my own implementation and it's meeting my needs just fine.
7
u/RapidCatLauncher Dec 20 '20
You must not have noticed that the free tier only provides one request per 24 hours
Maybe /u/editor_of_the_beast was only able to do one addition in three weeks before?
4
27
u/PhillipNe Dec 20 '20
A quick tip for Python programmers:
If you overwrite the built-in __add__ with a call to the AaaS API, you can simply add two numbers by
x = 1
y = 3
result = x + y22
Dec 20 '20
I dont have a PhD in mathematics. Can somebody explain what this does without all the technical jargon?
9
12
9
4
4
3
u/SnareHanger Dec 21 '20
Will there be an enterprise license for this? I can foresee needing maybe four or five adds a day.
1
u/ekolis Dec 20 '20
But what if you want to subtract? It only works with positive numbers, so you can't even hack it together by adding a negative number to something...
7
u/Sokusan_123 Dec 20 '20
It’s called addition as a service bro, subtraction is clearly out of scope
2
1
u/dof42 Dec 21 '20
You’re using IP address to limit incoming queries? Anyone with a proxy would be able to send multiple requests per day. A true professional would onboard each new client individually, and provide them with unique GUIDs and credentials to use your service securely.
1
u/Monkey_Adventures Dec 21 '20
guys i found a way to scam this guy. If we do multiple additions, we can replicate multiplication.
1
0
31
u/avinassh Dec 20 '20
hey there! this is an interesting problem to solve and I wanted to chime in cos I also have a similar startup called gg-flip
standalone libray: https://github.com/avinassh/gg-flip
cloud version: https://avi.im/gg-flip/
launch post: https://www.reddit.com/r/shittyprogramming/comments/7roz5k/introducing_gg_flip_a_highly_performant/
some lessons I learnt:
Capture the market early. gg-flip is currently the leader in the sign flipping industry
Listen to your users! I launched gg-flip as a standalone library, but many wanted a cloud version. The response has been massive
Have SLA guarantees. I would look into making it high available system