Microsoft's LINQ, ado.net, Entity Framework, and Java ejbs are fooled.
And Microsoft's LINQ and ado.net.
Java strut, spring, hibernate, ibatis
Dedicated for DummiesProgramPersonnel.
For the experts, toy is generally not used, it is not necessary, and do not want to use these toy.
If the only use of these things is,
Accelerate development speed, ensure quality,
This allows green programmers to build a website within one hour.
These things encapsulate everything,
A fool will use it, even if not, learn it in 3 minutes.
Instead, I do not understand the basic concepts and principles.
For example, the session bean in EJB,
It is actually session management,
If you understand the principle of Session object, there is no need to use Session Bean.
Writing a few words by yourself is more suitable for your own needs than using session bean, and it is easier for maintain,
The session is actually the session ID.
Put it in the cookie and save it in the client browser,
The real information in the session, such as user name, user ID, and user info
Are saved in the server.
The session ID should be used to identify who the user is.
This is the biggest difference with Cookie,
Cookie stores the user ID and user info in the client browser,
Of course, both cookie and session ID can be encrypted,
In general, sessions are much safer than cookies, which increases the burden on the server.
If you understand this basic principle, you can say goodbye to the Session Bean.
EJB, these things are equivalent to using a cannon to fight mosquitoes,
You know how it works, and you can write a fly rate to beat mosquitoes.
Of course, you won't write a fly rate on your own. You can also beat a mosquito by using a cannon. It is unnecessary and complicated to maintain.
There are also those Java frameworks, Microsoft's, LINQ, and ado.net
Everything is encapsulated and used by fools. Convenience is convenient and quick,
But I did not learn anything.
If you want to learn something, don't get those frameworks,
Those things will only confuse you.
If you want to learn something,
Don't use the framework, just use JSP, Servlet, and JavaBean for writing. It's enough for you to use it.
Asp.net, you can use ASP to write anything.
PHP is also true.