Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Express Basics Using Templates with Express Express’s Response.render Method

karan Badhwar
seal-mask
.a{fill-rule:evenodd;}techdegree
karan Badhwar
Web Development Techdegree Student 15,454 Points

what is business logic

What actually is business logic? I did not get it, I thought it might not be that imp to understand, then I encountered that term again somewhere. can somebody please explain me that

Caleb Kemp
Caleb Kemp
12,677 Points

Glad to hear it helped a little bit, you're very welcome :smile:

karan Badhwar
seal-mask
.a{fill-rule:evenodd;}techdegree
karan Badhwar
Web Development Techdegree Student 15,454 Points

It was indeed, Caleb Kemp, I have one general question, so when we want to use some library, how do we know what to code to put and how should we use, what to edit and what not too, is that everything is written inside the docs?

Caleb Kemp
Caleb Kemp
12,677 Points

Yea, most libraries will contain examples; or some sort of documentation about how they should be used.

1 Answer

Caleb Kemp
Caleb Kemp
12,677 Points

I heard an instructor on Treehouse (a while back) refer to business logic as all of the code in your program that is unique and gives it value. That made a lot of sense to me, and I liked that definition. However, that is not the usual way it is defined. Here and here and here are some of the ways you will find that people choose to define business logic. I'm not saying any of those, in particular, are bad, but I think you can see, they don't completely agree with each other at the same time. It really is one of those fuzzy terms that kind of changes meaning depending on who you ask. For the most part, if you hear it in a course here, it will be the code that goes into the model. Sorry I couldn't be more helpful.