C++ 如何开发小软件或应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6072936/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to develop small software or application?
提问by Mr.Anubis
Hya Gurus,
哈古鲁斯,
I've been learning c++ for 8 - 10 months and want to develop a software or small applications (i am self taught using some books) so just consider me as C++ entry level programmer.since i don't know win32 etc for GUI development i can use some library. I know most of c++ features , data structs , algos and have read some c++ book and scott meyer's effective c++.
我已经学习了 8 到 10 个月的 C++ 并且想要开发一个软件或小型应用程序(我是使用一些书籍自学的)所以就将我视为 C++ 入门级程序员。因为我不知道用于 GUI 开发的 win32 等我可以使用一些图书馆。我知道大多数 c++ 特性、数据结构、算法,并阅读了一些 c++ 书籍和 scott meyer 的有效 c++。
but problem is that i am unable integrate all my knowledge to build a software and i think i am a adhoc coder. when i see even small simulation or little application codes i understand the code sometimes (sometimes not since understanding them is hard by just seeing code) but i find even code of page 4 - 7 so large that i think i can't develop applications.
但问题是我无法整合我所有的知识来构建软件,我认为我是一个临时编码员。当我看到即使是很小的模拟或很少的应用程序代码时,我有时也能理解代码(有时不是因为仅通过查看代码就很难理解它们),但我发现即使是第 4-7 页的代码也很大,我认为我无法开发应用程序。
for e.g : if i want to develop my own chm reader or FTP or any appz or softw you consider serious coding, how do i develop it? then i find myself completely lost by just start typing code i know won't ever be able to develop it. (i feel 0% confident)
例如:如果我想开发自己的 chm 阅读器或 FTP 或任何您认为认真编码的 appz 或软件,我该如何开发?然后我发现自己完全迷失了,只是开始输入我知道永远无法开发它的代码。(我觉得 0% 有信心)
so what i want to know how programmers like you guyz learn to develop serious application when after drilling their teeths in c++ only, do i need some other books to learn how to develop software? or what is the process to become serious application developer ?
所以我想知道像你们这样的程序员在只用 C++ 磨练牙齿后如何学习开发严肃的应用程序,我还需要一些其他的书来学习如何开发软件吗?或者成为认真的应用程序开发人员的过程是什么?
Any help is very appreciated.
非常感谢任何帮助。
P.S (Impotant) : i'd love if you could tell me how you became serious developer after learning C++ , what you had done etc pleaseeeeeeeeee. and any personal advices to me .
PS(Impotant):如果你能告诉我你是如何在学习 C++ 后成为认真的开发人员的,你做了什么等等,我很乐意。以及对我的任何个人建议。
Edit:
编辑:
I don't know UML or Soft Engineering , do i need to learn them?
我不知道 UML 或软工程,我需要学习它们吗?
Thanks a lot again ))
再次非常感谢))
回答by ólafur Waage
Programming large applications is a long and arduous process. Even with medium sized software.
编写大型应用程序是一个漫长而艰巨的过程。即使使用中型软件。
Even the veterans need time to read new code. I remember just recently starting work on an existing software project that had around 150 classes. It took a while just to figure out how the basic input was handled, let alone the whole structure.
即使是老手也需要时间来阅读新代码。我记得最近刚开始在一个现有的软件项目上工作,这个项目有大约 150 个类。花了一段时间才弄清楚基本输入是如何处理的,更不用说整个结构了。
What you need to focus on is increase your confidence in building software.
您需要关注的是增强您对构建软件的信心。
Try creating something trivial, something you know you can program. Try to make it a bit bigger by adding some features, not much though, and keep doing that. Over time you will be a bit more confident in big code.
尝试创建一些琐碎的东西,一些你知道可以编程的东西。尝试通过添加一些功能使其更大一些,尽管不多,并继续这样做。随着时间的推移,你会对大代码更有信心。
Programming takes practice and you need to keep at it. It might sound like a daunting undertaking but real confidence in a language takes years of practicing.
编程需要练习,你需要坚持下去。这听起来像是一项艰巨的任务,但对语言的真正信心需要多年的练习。
Look at the questions here about good software books as well.
看看这里关于好的软件书籍的问题。
回答by Damian
I would suggest that you read up on the usenet groups on c and the books by Scott Meyers and Andrei Alexandrescu. Whey don't you try to find out what the Loki lib can do. Also a good place to start is looking at the boost libs.
我建议您阅读有关 c 的 usenet 组以及 Scott Meyers 和 Andrei Alexandrescu 的书籍。您不尝试找出 Loki 库可以做什么。另外一个很好的起点是查看 boost 库。
Find some small project that you like and see what you can learn, it is an iterative process. You can also join an open source project.
找一些自己喜欢的小项目,看看能学到什么,这是一个迭代的过程。您还可以加入开源项目。
Good luck, Lars you must have perform practicals every day and start with small application then watch project code i hope by performing practical you will easy to understand any code.
祝你好运,Lars,你必须每天进行实践,从小应用程序开始,然后观看项目代码,我希望通过实践,你会很容易理解任何代码。