How To Make A Good Program

本文分享了制作优秀程序的十二个关键要素,包括创意构思、易用性、友好界面设计、可扩展性等,旨在帮助开发者提升软件品质。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  Many people may ask this question, 'How to make a good program', 'How can a program sell well', or something like that. In this article, I will tell you how to do it. But it is only what I think, if you don't agree, please just ignore this article.

  Well, to make a good program, firstly, you'll need a creative thought. Do not try to make something others already made. Once people get used to one program, they'll always using it. Few people like to change unless the new one is really better than their old one. If your program is new, and it can do the things that other programs can't do, it's good. People can't do the thing without your program, so they have to download and use the thing you made. Sometimes they even pay for your program. However, making something others already made can be a good exercise because you don't need to spend a lot of time to think about what to make. And, do not just edit an open source software. That program, even you changed it really much, isn't yours. The soul, the idea of the program isn't yours. And, what you make will always be yours, others will never get its authorization, including the case that they get your source code. So try to think carefully before you started to make one program.

  Then, your program needs to be easy to use. Nowadays, people are making computers do more work for them, and they don't want to think much. So if your program is too complicated, people will get annoyed, and they may delete your program and you'll never have another chance. Don't make the commands inside the program hard to remember, too. A short command is enough, not everybody would like to type a long, long line of command for a simple function. If your users can do the job with just a click on a button or something like that, they will get happier. Now people are busy, so make your program more convenient.

  Thirdly, your program needs to have a friendly UI. Make your UI clear, don't mess all the stuff up. I've seen many people put things anywhere, like on the left is a text field, and on the right is a combo box. People like neat UIs. Don't put too many words on your UI, you can put them in a file, like 'Readme.txt'. Also, don't create an app with too many windows. Moving those windows is really tiring. And as people don't like stuff all over the UI, they hate windows all over their screens, at least that's want most people think. And try to do more work with one button, instead of using many buttons which each does a tiny part of the work.

  The fourth idea is that make your program easily extendable. Make some APIs if you can. And not only you can extend it, your clients may want to extend it as well. An extendable program is also easier to fix when there are some bugs. If your program is good, many people may want to make extensions of their own. They can't beg you to make because if they do, you'll absolutely have no time to do other things. You'll have to make them develop extensions on their own. If you are not so kind, and you don't want them to learn programming and take the place you are currently staying, you can make them a Mod-Maker, or some thing like that.

  The fifth, don't use too many programming languages in one program. Especially script languages, few people would install those interpreters and virtual machines that they don't need often. Maybe there are some exceptions, like Java or Python on Linux, but mostly, don't use too many scirpt languages in one program, unless your program is really good, and it has enough advantages to attract users to install those things. Although the memories are becoming bigger, it is still precious.

  And sixth, make your program have the ability to run on different operating systems or platforms. For example, a Mac OS X user might want to use your program, which is built and compiled in Visual C++ (Windows), but he can't do it because the .exe files on Windows can't run on Mac OS. If you can't make your program run on different platforms, you should try to compile it on other operating systems, or you can make another version with another programming language for the OS.

  After that, I think we are going to talk about distributing your programs. On PC, you may place your program in some network disks. But, don't use the network disks that are blocked in some countries. Like, in China, people can't download resources from Mediafire, so you shouldn't place your program in it. However, if you don't have another place to put you program in, or you think that some people don't download it is okay, you can do that. Also, you'd better place them in some popular disks, as more people use them. You can also distribute your programs in forums. For android, you can out your program anywhere as people may freely download apps, but for iPhone, you should be one of the iPhone developers, although it costs 99 dollars per year, more people will see it, people don't need a jailbreak, and you can get a lot of functions that Apple provided. The purchasing is also more formal.

  Another important part is that your program needs support to all kinds of languages. This language means the language we speak, like English. This is a must if you want it to be popular around the world. For example, if you use languages like Japanese or Korean in your program, maybe people will not understand them. Try to use English, the language in your country, and some other languages with a lot of people using, like Chinese. You can give your program the ability to load language packs, so people can translate your applications.

  The ninth, you'll find open source useful. You can publish your source code on the Internet. This may help other programmers or developers. And they could possibly give you some new knowledge if you can get the code they modified. The only case for you to keep your source code, is when you want to sell it. When you wants to earn money with your program. But in this case, you can make a free edition, like 'Standard Edition' or 'Micro Edition' (Lite), and make another 'Enterprise Edition'. You can copy other's source code to your program, but not too much, as that will break the rule we said at the beginning.

  And, at last, I have to mention that, knowledge is power. Do more demos, researches and expriments. You'll find them useful, and you can find bugs with the results of your expriments. Trying is not only good for scientists, but also for programmers. Forums, search engines, and online documents are all good ways to learn. You can find more thing you need there.

  According to what I just said, you can see that making a good program isn't easy, but it is not a program if you really work hard.

  Oh, I forgot to say, you don't need to care about how fast your function is running, care about that only if you are still learning in the school. Your clients won't mind to wait a little bit for their favorite game. They will not think about how your game was done. You must think more about the result, not the way you do it. (That is important too, though.) 

  Good pictures and good background music are other two really important aspects of a good program.

  It seems no more points were left. Did you read carefully and remember the twelve points? If you do, and you think about them when you are making a program, I'm sure it's going to be a good one! Good luck when you go programming!

                                                                                                                                                                                           -------Jerry Yang from DYPro Program Studio

基于数据挖掘的音乐推荐系统设计与实现 需要一个代码说明,不需要论文 采用python语言,django框架,mysql数据库开发 编程环境:pycharm,mysql8.0 系统分为前台+后台模式开发 网站前台: 用户注册, 登录 搜索音乐,音乐欣赏(可以在线进行播放) 用户登陆时选择相关感兴趣的音乐风格 音乐收藏 音乐推荐算法:(重点) 本课题需要大量用户行为(如播放记录、收藏列表)、音乐特征(如音频特征、歌曲元数据)等数据 (1)根据用户之间相似性或关联性,给一个用户推荐与其相似或有关联的其他用户所感兴趣的音乐; (2)根据音乐之间的相似性或关联性,给一个用户推荐与其感兴趣的音乐相似或有关联的其他音乐。 基于用户的推荐和基于物品的推荐 其中基于用户的推荐是基于用户的相似度找出相似相似用户,然后向目标用户推荐其相似用户喜欢的东西(和你类似的人也喜欢**东西); 而基于物品的推荐是基于物品的相似度找出相似的物品做推荐(喜欢该音乐的人还喜欢了**音乐); 管理员 管理员信息管理 注册用户管理,审核 音乐爬虫(爬虫方式爬取网站音乐数据) 音乐信息管理(上传歌曲MP3,以便前台播放) 音乐收藏管理 用户 用户资料修改 我的音乐收藏 完整前后端源码,部署后可正常运行! 环境说明 开发语言:python后端 python版本:3.7 数据库:mysql 5.7+ 数据库工具:Navicat11+ 开发软件:pycharm
MPU6050是一款广泛应用在无人机、机器人和运动设备中的六轴姿态传感器,它集成了三轴陀螺仪和三轴加速度计。这款传感器能够实时监测并提供设备的角速度和线性加速度数据,对于理解物体的动态运动状态至关重要。在Arduino平台上,通过特定的库文件可以方便地与MPU6050进行通信,获取并解析传感器数据。 `MPU6050.cpp`和`MPU6050.h`是Arduino库的关键组成部分。`MPU6050.h`是头文件,包含了定义传感器接口和函数声明。它定义了类`MPU6050`,该类包含了初始化传感器、读取数据等方法。例如,`begin()`函数用于设置传感器的工作模式和I2C地址,`getAcceleration()`和`getGyroscope()`则分别用于获取加速度和角速度数据。 在Arduino项目中,首先需要包含`MPU6050.h`头文件,然后创建`MPU6050`对象,并调用`begin()`函数初始化传感器。之后,可以通过循环调用`getAcceleration()`和`getGyroscope()`来不断更新传感器读数。为了处理这些原始数据,通常还需要进行校准和滤波,以消除噪声和漂移。 I2C通信协议是MPU6050与Arduino交互的基础,它是一种低引脚数的串行通信协议,允许多个设备共享一对数据线。Arduino板上的Wire库提供了I2C通信的底层支持,使得用户无需深入了解通信细节,就能方便地与MPU6050交互。 MPU6050传感器的数据包括加速度(X、Y、Z轴)和角速度(同样为X、Y、Z轴)。加速度数据可以用来计算物体的静态位置和动态运动,而角速度数据则能反映物体转动的速度。结合这两个数据,可以进一步计算出物体的姿态(如角度和角速度变化)。 在嵌入式开发领域,特别是使用STM32微控制器时,也可以找到类似的库来驱动MPU6050。STM32通常具有更强大的处理能力和更多的GPIO口,可以实现更复杂的控制算法。然而,基本的传感器操作流程和数据处理原理与Arduino平台相似。 在实际应用中,除了基本的传感器读取,还可能涉及到温度补偿、低功耗模式设置、DMP(数字运动处理器)功能的利用等高级特性。DMP可以帮助处理传感器数据,实现更高级的运动估计,减轻主控制器的计算负担。 MPU6050是一个强大的六轴传感器,广泛应用于各种需要实时运动追踪的项目中。通过 Arduino 或 STM32 的库文件,开发者可以轻松地与传感器交互,获取并处理数据,实现各种创新应用。博客和其他开源资源是学习和解决问题的重要途径,通过这些资源,开发者可以获得关于MPU6050的详细信息和实践指南
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值