Java Card applet development: OO or C-style?

Source: Internet
Author: User
Tags try catch

Recently, the 2.0 EDEP of the PBoC was reconstructed, and dozens of details were changed according to customer's needs.

The object-oriented understanding is somewhat deepened during the change process.

For example, to avoid two class interdependencies, you can use a interface center as a decoupling.

Due to the limited space in the card, resource shortage, in the design should be careful to avoid the inheritance hierarchy too deep.

Personal feelings, due to limited resources, are unlikely to be used in a large number of design patterns.

There are only two design patterns in the Javacard API: Singleton mode, builder mode.

The two models are also used to conserve resources and to block the underlying hardware details for applet developers.

Shanghai has a chip company, has tried to develop 100%java card chip, and finally because the cost is too high to give up.

Some friends still recommend the C style to develop Java card applets, but I think I can at least make full use of the try Catch finally this C does not have Java syntax, so that the code logic can become clearer.

There are also friends who recommend that you do not divide multiple package, otherwise, when applied to the TSM platform, will be bored to death.

Java Card applet development: OO or C-style?

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.