Giter VIP home page Giter VIP logo

Comments (6)

scottcgi avatar scottcgi commented on August 15, 2024

I think the fopen can add error code handling, but the malloc I feel not very necessary.
Because the malloc failure is very rare.

from mojoc.

elfring avatar elfring commented on August 15, 2024

I suggest to avoid ignorance of return values a bit more.
Would you like to detect every error situation as early as possible?

from mojoc.

scottcgi avatar scottcgi commented on August 15, 2024

Not now, unless there is a related bug.

from mojoc.

elfring avatar elfring commented on August 15, 2024

from mojoc.

scottcgi avatar scottcgi commented on August 15, 2024

I wrote 3 years j2ee that use java with Spring framework, and use AOP to handle exceptions and database transactions.

I felt the power and benefits of AOP, but I think it‘s not suitable for game and game engine, also small software.

Because AOP is too complicated and may have performance issues.

from mojoc.

elfring avatar elfring commented on August 15, 2024

I felt the power and benefits of AOP,

This is nice.

but I think it‘s not suitable for game and game engine,

I wonder about such a view.

also small software.

Will your development evolve in ways where source code sizes will be significant?

How many design patterns are you going to apply here?

Because AOP is too complicated

Aspect-oriented programming triggers specific development challenges.

and may have performance issues.

Can this concern be adjusted so that further progress could be achieved?

from mojoc.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.