i'm looking for a SQL Framework for PHP, with the following aspect that it has a Fluent Interface like described here.
Have you any piece of advice for me? Or some equivalent solution?
Thanks in forward
i'm looking for a SQL Framework for PHP, with the following aspect that it has a Fluent Interface like described here.
Have you any piece of advice for me? Or some equivalent solution?
Thanks in forward
I have to get the desired output as follows:
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
But I can't seem to figure out how to do it. All I get is:
1
2 6
3 7 6
4 8 7 6
5 9 8 7 6
Here is my code:
#include<stdio.h>
int main()
{
int n,i,j;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=0;j<i;j++)
{
if((j+1)==1)
printf("%d ",i);
else
printf("%d ",i+n-j);
}
printf("\n");
}
return 0;
}
Now this is the first time I am really thinking about design patterns and doing things properly and the most modern way. I have come across a pattern named domain driven design. From my understanding it is simply designing the business logic layer in a more ‘domain-oriented’ way. Although I have worked on massive projects but unfortunately most of them were designed poorly and the separation of logic was not done properly. We have 3 layered applications here but they are very leaky. I am trying to change things here but with no one to guide, I am really confused!
The project is developing an MVC app along with an API that will be serving live data to lot of interested parties around the World. MVC app will be simple and will allow users to register for usage of Web API. Web API is the real thing, it would be an interface for the rest of the World for massive amounts of valuable data that we have. Some examples of the methods I am going to expose are:
There are several designs I am thinking of for web api:
DAL: Normal data access methods, caching, Repository methods implementation
BLL: Repository interface, Business methods (logic & validation), Business objects/entities
Presentation: MVC app
DAL: Normal data access methods, caching
Domain Layer: Repository methods implementation, Repository interface, Business (domain) objects/entities
BLL: Business methods (logic & validation)
Presentation: MVC app
Which approach do you guys think is better? Would you make any changes to above?
Thank you very much!
I have to get the desired output as follows:
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
But I can't seem to figure out how to do it. All I get is:
1
2 6
3 7 6
4 8 7 6
5 9 8 7 6
Here is my code:
#include<stdio.h>
int main()
{
int n,i,j;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=0;j<i;j++)
{
if((j+1)==1)
printf("%d ",i);
else
printf("%d ",i+n-j);
}
printf("\n");
}
return 0;
}
Now this is the first time I am really thinking about design patterns and doing things properly and the most modern way. I have come across a pattern named domain driven design. From my understanding it is simply designing the business logic layer in a more ‘domain-oriented’ way. Although I have worked on massive projects but unfortunately most of them were designed poorly and the separation of logic was not done properly. We have 3 layered applications here but they are very leaky. I am trying to change things here but with no one to guide, I am really confused!
The project is developing an MVC app along with an API that will be serving live data to lot of interested parties around the World. MVC app will be simple and will allow users to register for usage of Web API. Web API is the real thing, it would be an interface for the rest of the World for massive amounts of valuable data that we have. Some examples of the methods I am going to expose are:
There are several designs I am thinking of for web api:
DAL: Normal data access methods, caching, Repository methods implementation
BLL: Repository interface, Business methods (logic & validation), Business objects/entities
Presentation: MVC app
DAL: Normal data access methods, caching
Domain Layer: Repository methods implementation, Repository interface, Business (domain) objects/entities
BLL: Business methods (logic & validation)
Presentation: MVC app
Which approach do you guys think is better? Would you make any changes to above?
Thank you very much!
I'm studying the Object Oriented Design & Analysis course, our teacher told us to have a brief look on design patterns. So here I am asking a quick reference for good books on design pattern. Suggestion will be appreciated.
I'm studying the Object Oriented Design & Analysis course, our teacher told us to have a brief look on design patterns. So here I am asking a quick reference for good books on design pattern. Suggestion will be appreciated.