Microsoft's LINQ, ado.net, Entity Framework, and Java ejbs are fooled.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.