请向我推荐一些带有设计模式的基本C ++项目 [英] Please suggest me some basic C++ project with design patters

查看:78
本文介绍了请向我推荐一些带有设计模式的基本C ++项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



这是Mustafa。我是C ++编程语言的新手我有兴趣制作一个包含设计模式和一些基本功能的基础项目,比如登录和表格填写。





提前谢谢。

解决方案

请参阅我对该问题的评论。你的整个方法并不是很有效率。我建议你改掉它。



  • 首先,忘记了设计模式。专注于您的应用目标。首先,计划你想要实现的目标。描述你最小的目标和一些程序最大超级目标)。



    很难提出项目的想法,因为我对你的背景和技能一无所知,但我可以给你一些关于如何产生这些想法的想法。请查看我过去的答案和我的博客文章:

    Sergey Alexandrovich Kryukov - Professional配置文件 - CodeProject [ ^ ],

    帮助我选择更好的最后一年项目 [ ^ ],

    请为我提出一个好的概念。 NET项目? [ ^ ],

    JAVA最后一年的项目 [ ^ ],

    需要项目创意帮助我Plz [ ^ ],

    您能否提出一个主题我的高级项目?编程 [ ^ ],

    为什么难以成为程序员? [ ^ ],

    WPF编程中的一个挑战 [ ^ ]。
  • 尝试制定和组织您的要求,让他们失望。如果你尽可能严格地定义这个部分,你的工作会更容易;与此同时,请记住,你需要一次又一次地回到这个阶段。开发必须是迭代的。
  • 现在,是时候考虑开发所需的编程技术了。如果它提醒你有关设计模式,再次忘记它们。专注于您的应用程序的行为。尝试描述其行为的一些主要细节。在某些情况下,您需要设计一个基本状态机,在其他情况下,它将是一些工作流,依此类推。
  • 基于此,尝试设计代码的基本框架及其基本结构。请记住,可以轻松更改哪些文件或类应该更改的详细信息,因此请更加注意代码的功能属性。如果此时你还记得设计模式,再次忘记它们
  • 尝试解决主要技术问题,这些问题应该解决你的应用问题,主要算法。 尝试用自己的大脑思考。 再次忘记设计模式
  • 在深入了解设计,遇到困难并明确分析这些困难的本质后,您可以提出一个问题:其他开发人员做了什么来克服类似的问题设计困难?现在是时候记住现有的知名设计模式了。这一次,阅读这些模式应该更容易,因为您已经熟悉了这些困难,因此您可以更好地理解您所阅读的内容。
  • 如果您找到一些基于设计模式的解决方案,可以改善您的设计, 使用它们。 永远记住,使用这些设计模式不是你的义务。他们应该帮助你,而不是你应该对赏心悦目的模式作者负责。 :-)如果这样的修改使它们更好地符合您的应用目标,可以随意修改,改进或简化它们。
  • 创建一些原型,工作骨架等等。按照通常的软件开发阶段,实施,单元测试等等......根据需要返回上一阶段,迭代......




见也是我过去的回答:从零开始的社交网络 [ ^ ]。



- SA

Hello Every one,

This is Mustafa.I am New to C++ programming language i am interested in making an basic project which includes design patterns and some basic functionalities, Like login and form fillup.


Thank you in advance.

解决方案

Please see my comment to the question. Your whole approach is not really productive. I suggest you change it.

  • At first, forget design patterns. Focus on your application goals. First of all, plan what you want to achieve. Depict you minimal set of goals and some program-maximum (super-objective).

    It's really hard to suggest the idea of the project, because I know nothing of your background and skills, but I can give you some ideas on how to generate such ideas. Please see my past answers and one my blog post:
    Sergey Alexandrovich Kryukov — Professional Profile — CodeProject[^],
    Help Me to Choose A Better Final year Project[^],
    Please suggest a good concept for my .NET project ?[^],
    JAVA final year projects[^],
    Need Project Ideas Help me Plz[^],
    Can you suggest a topic for my Senior Project? Programming[^],
    Why the hell it is so hard to become programmer?[^],
    One Challenge in WPF Programing[^].
  • Try to formulate and organize your requirements, right them down. Your work will be easier if you well define this part, as strictly as possible; at the same time, remember that you will need to go back to this stage again and again. Development has to be iterative.
  • Now, it's time to think of the programming techniques you would need to develop. If it reminds you about design pattern, forget them again. Focus on the behavior of your application. Try to depict some major detail of its behavior. In some cases, you would need to design a basic state machine, in others it would be some workflows, and so on.
  • Based on that, try to design the basic skeleton of your code and its basic structure. Remember that such detail as what should go in which file or class can easily be changed, so pay more attention for functional properties of your code. If at this time you remember about design patterns, forget them again.
  • Try to solve major technical problems which should solve your application problems, major algorithms. Try to think with your own brain. Forget design patterns again.
  • After you get well into the design, faced first difficulties and clearly analyzed the nature of those difficulties, you can ask a question: what other developers did to overcome similar design difficulties? And here is the time to remember about existing well-known design patterns. This time, reading on that patterns should be easier, because you are already familiar with the difficulties, so you can better understand what you read.
  • If you find some solutions based on design patterns which should improve your design, use them. Always remember that using those design patterns is not your obligation. They are supposed to help you, not that you are supposed to be responsible for pleasing patterns' authors. :-) Feel free to modify, improve or simplify them, if such modification make them adhere better to your application goals.
  • Create some prototypes, "working skeleton", and so on. Follow the usual software development stages, implementation, unit testing, and so on… Return to previous stages as needed, iterate…


See also my past answer: Social Networking from scratch[^].

—SA


这篇关于请向我推荐一些带有设计模式的基本C ++项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆