|
Answer» Hi. As i mentioned already, I'm STUDYING C programming language, and am in chapter 3, which is written by Mr deniss M. ritchie amd Mr brian W. kernighan. I'm not yet strong ENOUGH to write the programs I wish one day/night to create.
tonight my question is that; if i want to create a Video player, Or a Music player, Or Photo viewer, Or any reader, Do I have to Write the Video-Photo-Music-other-FORMAT(s) separately along with the algorithm of Ui and any other optional things?
There is nothing "Wrong" OR "Wondered" in my head. I just want to know if there are ways for importing the Formats of anything. _______________________________________ ________________________________ Apart from that Question; you think it is better for a Programmer to know about the Laws Of Physics? To illustrate, the softwares like 3d Max, like Photochap, like Game engines. Will a programming book teach me about physics? Or I better open a separate book?
Thank you so much.Theoretically yes, you would need to write the code to handle all the different file formats that you would wish to use. However, in practice stuff like this has already been done by other people who have released their code, you should make a habit of looking for and using this instead of writing your own code to do absolutely everything. Places like GitHub are a good place to look for stuff like this, just make sure you check the licence for the code you are using and deal with it accordingly.
Unless you are writing a program that relies on physics, e.g. a game engine or a physics simulation, there is no need to understand any physics in order to write software, they are completely different areas. A programming book will not teach physics, you will need to learn that separately if you feel you need to know physics for what you are trying to develop.Quote from: m_ilad__ on December 24, 2013, 09:03:25 AM tonight my question is that; if i want to create a Video player, Or a Music player, Or Photo viewer, Or any reader, Do I have to Write the Video-Photo-Music-other-FORMAT(s) separately along with the algorithm of Ui and any other optional things?
yes. If you are inventing your own algorithm or format. But like cameron SAYS, most popular formats are already done by people. So if you are not doing your own invention, then going for ready available libaries/format would be advisable
Quote from: m_ilad__ on December 24, 2013, 09:03:25 AMApart from that Question; you think it is better for a Programmer to know about the Laws Of Physics?
depends on what you are trying to do. There is no wrong or right. Are you making some physics software for educational purposes? or are you into Science field ? At this techonologically advanced world we live in now, almost every other stuff we do everyday need some sort of computerization. Even Physics. Take Biology for example. Software libraries have been created to bioinformatics. I am sure in the area of Physics, there are some as well.
Quote from: m_ilad__ on December 24, 2013, 09:03:25 AMWill a programming book teach me about physics?
yes. It depends on the book right? and how its written.? Programming ties in very closely to how humans think. I suck at Physics but lets take example E=mc(squared). Very FAMOUS equation. that book might just have introduced this equation and show you step by step how to write this function, with the main objective of showing how to pass parameters to this function etc. Probably under Chapter 5. Functions. lol
|