Giter Site home page Giter Site logo

Comments (4)

NicolBolas avatar NicolBolas commented on August 21, 2024 2

The main concern will be to keep the good readable for someone with no c++ background and the op << does make thing harder to grasp for new developers.

The thing is, using C++ ought to mean using C++. I can understand not wanting to go into the deep magic of template metaprogramming and so forth. But even "Hello, World!" for C++ uses <<. I don't think it's unreasonable to expect people to know what << does. And failing that, a simple comment that says, //reads the whole file would be sufficient.

Personally, I've always been partial to the "seek to the back, get the size, seek to the front, and read the thing" method of reading an entire file. Despite the flaws, it has the virtue of common usage and ease of readability (don't forget to open it in binary reading mode).

from ogl.

opengl-tutorial avatar opengl-tutorial commented on August 21, 2024

from ogl.

Calvin1602 avatar Calvin1602 commented on August 21, 2024

from ogl.

Calvin1602 avatar Calvin1602 commented on August 21, 2024

Done in 040cf83 and b153c22

from ogl.

Related Issues (20)

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.