Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

karan Badhwar
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
karan Badhwar
Web Development Techdegree Graduate 18,135 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,755 Points

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

karan Badhwar
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
karan Badhwar
Web Development Techdegree Graduate 18,135 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,755 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,755 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.