← Home ← Back to /g/

Thread 106396363

19 posts 6 images /g/
Anonymous No.106396363 >>106396392 >>106396804 >>106396891 >>106397007 >>106397088 >>106397126 >>106397769
I still dont' know what the fuck "Business logic" means when they post it on hackernews
Anonymous No.106396392
>>106396363 (OP)
Back end logic of your app, not the UI
Anonymous No.106396759
create_user_account()
send_welcome_email()
steal_credit_card_info()

That's business logic
Anonymous No.106396804 >>106397064
>>106396363 (OP)
It is the thing wagies are making when they pretend that they know how to program.
Anonymous No.106396891 >>106396955
>>106396363 (OP)
it is the code which does the things your business needs to do. if you run a website where people can order stuff to get delivered to their house, the code that processes orders and schedules deliveries is your business logic.
the library that you use to communicate to your database is not part of your business logic.
Anonymous No.106396955 >>106396979 >>106396986
>>106396891
so it's just the "subject matter expertise" code
Anonymous No.106396979
>>106396955
i have no idea what that means.
it is the code which you don't need to explain to a third-party who is helping you solve a problem.
>i can't connect to my database
>my business logic calls db_lib.load() and it doesn't work
Anonymous No.106396986
>>106396955
Yes. It’s most stuff that isn’t infrastructure or protocol. The http server isn’t business logic, choosing Postgres isn’t business logic, cloud isn’t business logic, your CI/CD isn’t business logic.

But your data model, your services, most things beyond infrastructure and boilerplate - those are business logics.
Anonymous No.106397007 >>106397044
>>106396363 (OP)
you make a web app to process sad pepe images into happy pepe images
the "business logic" would be:
1. validating the file is a supported image
2. analyzing it for a sad pepe
3. transforming it into a happy variant
4. serving the user with the new version
Anonymous No.106397044
>>106397007
thanks now i get it!
Anonymous No.106397064
>>106396804
this
Anonymous No.106397088
>>106396363 (OP)
The things that are always poorly defined and change all the time.
Anonymous No.106397126 >>106397224
>>106396363 (OP)
its the only part where you actually program things
everything else is boilerplate
Anonymous No.106397224 >>106397681
>>106397126
I'd rather write boilerplate than work on something some retard non-techie came up with.
Anonymous No.106397681
>>106397224
Too bad, you're working on this mangled pile of garbage anyway.
And no, you can't refactor it.
Anonymous No.106397769 >>106397855
>>106396363 (OP)
Guys explain it to me what's the business logic of 4chan?
Is it the CRUD stuff? the mod tools? the ad selling and ad serving? all that?
Anonymous No.106397855 >>106397895
>>106397769
its packaging up data for intelligence agencies
Anonymous No.106397895
>>106397855
so business logic is just the code related to the part that makes money but not the code for all the parts that make users stay here?
Anonymous No.106399189
Business stuff