Как пишется программа на языке программирования


Загрузить PDF


Загрузить PDF

Итак, у вас появилась идея для отличной программы, однако вы и понятия не имеете, как ее реализовать? Не беда, поможем. Правда, придется потратить немало времени на то, чтобы выучить язык программирования, но это нормально. Скажем даже более, многие успешные программисты — самоучки. Выучив основы, вы сможете создавать простые программы, тратя на это минимум времени. Создание более сложных программ, конечно, является более серьезной задачей, но, как говорится, терпение и труд все перетрут!

  1. Изображение с названием Apply for an Entrepreneurial Grant Step 2

    1

    Определитесь с тем, какой язык программирования вы выучите первым. Если раньше вы не программировали, то начинать надо с чего-то простого, рассчитанного на новичков — тем не менее позволяющего добиться поставленных целей. Есть десятки языков программирования, у каждого из них свои области применения, свои задачи и особенности. Вот несколько из них:[1]

    • C — один из самых старых языков программирования. Знакомство с С позволит упростить изучение C++ и Java.
    • C++ — один из самых популярных языков программирования в наши дни, особенно в плане разработки программного обеспечения. Правда, на то, чтобы выучить С++, уйдет время, а на то, чтобы еще и научиться им пользоваться, уйдет еще больше… Но это окупит себя!
    • Java — еще один очень популярный язык программирования, который может работать почти что в любой операционной системе.
    • Python — один из простейших языков программирования, чьи основы можно выучить за пару дней. Тем не менее это весьма мощный язык, задействованный для создания множества серверных и веб-приложений.
  2. Изображение с названием Program Software Step 2

    2

    Подготовьте среду разработки. Чтобы начать программировать, вам нужно не так уж и много — и это «среда разработки». Впрочем, что именно под этим понимается, зависит от выбранного языка программирования.

    • Редактор кода — почти что любому программисту будет удобнее работать в специальном текстовом редакторе — редакторе кода. Можно, конечно, и в «Блокноте» работать, но без подсветки синтаксиса и подстановок это будет весьма печальный опыт. Среди популярных редакторов кода можно назвать Notepad++, TextMate и JEdit.
    • Компилятор — при работе со многими языками программирования (С, Java и так далее) код программы сначала надо «собрать» — скомпилировать, только потом его можно будет запустить. Соответственно, придется установить компилятор, если в выбранном вами языке программирования без него не обойтись. К слову, большинство компиляторов поможет вам отлавливать «баги» — ошибки программы.
    • IDE (Integrated Development Environment, интегрированная среда разработки) — в некоторых языка программирования и редактор кода, и компилятор, и модуль отладки — все объединено в одну-единственную интегрированную среду разработки. Скачать IDE можно, как правило, с сайта языка программирования.
  3. Изображение с названием Program Software Step 3

    3

    Почитайте учебники. Если раньше вы не программировали вообще, то начинать надо с малого. Так, стоит найти учебники или курсы, хотя бы онлайн-курсы, в которых даны основы основ выбранного языка, рассказано про его синтаксис, переменные, функции и все остальное, а также про то, как это все между собой связано.

    • Заинтересовались? Зайдите на Udemy, Khan Academy, Codecademy, Code.org и другие аналогичные ресурсы.[2]
  4. Изображение с названием Program Software Step 4

    4

    Загрузите образцы и программы с открытым кодом. Вам будет куда проще учиться на примере, работая с образцами, благо что их в сети доступно предостаточно. Начните с простых программ, которые хоть как-то относятся к той программе, которую вы хотите сделать.

  5. Изображение с названием Program Software Step 5

    5

    Чтобы выучить основы, создавайте простые программы. Раз уж вы начали писать код сами, то начните с азов. Напишите несколько программ, скажем, на вывод строки или подсчет простенького уравнения. Отрабатывайте все это — пригодится позже, во время работы над более сложными программами. Экспериментируйте, старайтесь сломать даже собственные программы.

  6. Изображение с названием Program Software Step 6

    6

    Присоединитесь к сообществам программистов. Возможность задать вопросы состоявшемуся программисту — бесценна. На сайтах, где собираются программисты, вы найдете множество единомышленников, причем вне зависимости от того, на каком языке вы пишете. Не бойтесь спрашивать, но никогда не просите помощи, не испробовав перед этим все доступные вам средства.

  7. Изображение с названием Get Rich Step 16

    7

    Не забывайте, что на изучение языка программирования уходит много времени. Вы не сумеете написать программу (сложную), когда впервые сядете за компьютер с учебником программирования. Впрочем, чем больше вы будете учиться и практиковаться, тем лучше будете программировать.[3]

    Реклама

  1. Изображение с названием Apply for an Entrepreneurial Grant Step 8

    1

    Подготовьте «дизайн-документ». Дизайн-документ — это детальное описание разрабатываемой программы, и именно его необходимо сделать первым делом, чтобы потом, уже по ходу работы, вы могли сверяться с ним и заложенными в нем целями. Именно дизайн-документ позволит вам сделать то, что вы хотели, а не что-либо иное.

    • Все, что вы хотите реализовать в программе, должно быть перечислено на страницах дизайн-документа.
    • Кроме того, дизайн-документ должен учитывать и пользователя, точнее то, как он будет работать с программой.
  2. Изображение с названием Do Research Step 5

    2

    Сделайте блок-схему вашей программы. Это будет своего рода карта, показывающая, как пользователь будет переходить от одной части программы к другой. На этом этапе ничего сложнее простой блок-схемы вам не нужно.

  3. Изображение с названием Defend Against Appropriation of Name or Likeness Claims Step 15

    3

    Определитесь с архитектурой программы. Цели будут определять средство… то есть архитектуру. Если знать и понимать, каким задачам какая архитектура соответствует, то процесс разработки пойдет куда эффективнее.[4]

  4. Изображение с названием Program Software Step 11

    4

    Начните с программы по схеме «1-2-3». Это простейший тип программ, их задача — позволить вам адаптироваться к языку программирования. Если в общем, то программы «1-2-3» запускают, спрашивают у пользователя какие-нибудь данные, затем выводят результат, на чем и заканчиваются.

    • Следующим шагом в схеме «1-2-3» будет так называемый REPL (Read-Execute-Print Loop). Проще говоря, это возврат к первому шагу программы после вывода результата вычислений.
    • Подумайте о программах типа Pipeline. Они характеризуются тем, что трансформируют вводимые пользователем данные и работают последовательно. Данный тип подходит для программ, которые требуют минимум взаимодействия с пользователем — скажем, RSS-ридеры. Такая программа будет представлять собой несколько классов с общим циклом.

    Реклама

  1. Изображение с названием Apply for a Marriage Certificate in Dwarka Step 10

    1

    Сделайте акцент на какой-то одной функции программы. Точнее сказать, прототип — это всегда основная функция программы. Допустим, вы создаете программу-органайзер — тогда основной функцией будет календарь и возможность добавлять события.

  2. Изображение с названием Accept Mistakes and Learn from Them Step 18

    2

    Добейтесь того, чтобы прототип работал без сбоев. Прототип должен быть таким, чтобы им можно было пользоваться вместо разрабатываемой программы. Прототип станет основой, фундаментом всему, так что работать он должен соответственно. Иными словами, каждая функция прототипа должна работать безукоризненно.

    • В прототип можно вносить срочные изменения и тестировать их.
    • Разумеется, задача тестирования прототипа требует участия сразу многих людей.
    • Прототип может и будет меняться, это факт.
  3. Изображение с названием Write a Book Report Step 6

    3

    Не бойтесь перерабатывать прототип снова и снова. В этом его суть — сначала эксперименты, потом релиз. Именно на примере прототипа вы сможете увидеть, все ли работает так, как надо. Если же прототип оказывается неудачным — не беда, просто перепишите его с нуля, начните все заново. Лучше так, поверьте.

    Реклама

  1. Изображение с названием Program Software Step 15

    1

    Создайте базу псевдокода. Это станет своего рода скелетом вашего проекта и основой для будущей работы. Псевдокод отличается от обычного кода тем, что… не «компилится» (не обрабатывается в компиляторе), зато прекрасно читается программистами и помогает понять, что должно происходить на том или ином шаге работы программы.

    • Псевдокод, впрочем, использует тот же синтаксис, что и обычный код, поэтому писать псевдокод надо так же, как и программу.
  2. Изображение с названием Become a Software Engineer Step 2

    2

    Усовершенствуйте прототип. Можете взять сам прототип, можете взять псевдокод — в любом случае суть в том, чтобы сделать прототип лучше, совершеннее, быстрее!

  3. Изображение с названием Program Software Step 17

    3

    Начните работу над кодом программы. Вот, собственно, мы и добрались до сути. Именно работа над кодом программы и займет бо́льшую часть времени, не говоря уже про бесчисленные компиляции, не менее бесчисленные тесты и поиски багов… Если над вашей программой работает целая команда, то стоит начать с псевдокода, чтобы все шло равномерно.

  4. Изображение с названием Program Software Step 18

    4

    Не забывайте комментировать код. Описывайте функции и особенности, которые вы реализуете в коде. Это нужно не только для того, чтобы кто-то другой, открыв ваши исходники, сумел разобраться, что к чему, но и для того, чтобы вы сами не запутались в собственном коде, если вернетесь к нему, скажем, через год.

    Реклама

  1. Изображение с названием Become a Software Engineer Step 4

    1

    Тестируйте весь новый функционал. Все, что вы добавили в программу, должно быть протестировано, оттестировано и перетестировано. И чем больше людей приложат к этому руку, тем лучше, тем больше ошибок можно будет найти. Тестеры, разумеется, должны знать, что работают с далеко не финальной версией, а потому возможны ошибки.

    • Этот этап работы над программой часто называют «альфа-тестированием».
  2. Изображение с названием Become a Software Engineer Step 5

    2

    Протестируйте финальную версию программы. Итак, все функции, какие только должно были быть в программе, в нее добавлены. Что теперь? Теперь снова тесты. Долгие, придирчивые, тщательные тесты — и работа над ошибками, разумеется. Сейчас вашу программу должно тестировать даже большее количество человек, чем ранее.

    • Часто данный процесс называют бета-тестированием.
  3. Изображение с названием Be an Effective Supervisor Step 4

    3

    Протестируйте релиз-версию. Продолжая вносить в программу исправления и дополнительные материалы, не забывайте все тестировать.

    Реклама

  1. Изображение с названием Apply for an Entrepreneurial Grant Step 1

    1

    Подумайте, что вам нужно. Это будет зависеть от программы, так что подумайте, нужны ли вам, скажем, аудиозаписи? Графика? Контент? Задумайтесь об этом до релиза.

  2. Изображение с названием Succeed in Network Marketing Step 2

    2

    Подумайте, не стоит ли отдать все это на аутсорсинг. Если вам нужно много всего, но вы или никто в вашей команде не умеет рисовать или заниматься звукозаписью, то стоит вспомнить про аутсорсинге. Вы без проблем найдете фрилансеров, которые смогут подготовить для вас все необходимое.

  3. Изображение с названием Prepare for a Job Interview Step 10

    3

    Добавьте в программу все необходимые дополнительные материалы. Опять же, они не должны портить функционал программы. Добавление дополнительных материалов знаменует собой начало финального этапа работы над программой, если только, конечно, дополнительные материалы не являются неотъемлемой и внутренней частью самой программы (как, скажем, бывает при создании видеоигр).

    Реклама

  1. Изображение с названием Program Software Step 25

    1

    Подумайте, не стоит ли выпустить вашу программу под лицензией открытого кода. Тогда и другие люди смогут получить доступ к исходному коду программы, вносить в него изменения и улучшения. Правда, по такой лицензии вы вряд ли получите доход от программы — вы же не сможете ее продавать, код-то открытый. В чем же резон? В помощи сообщества, которое, если заинтересуется вашей программой, может превратить ее в истинный шедевр.

  2. Изображение с названием Market a Product Step 1

    2

    Подготовьтесь к продажам вашей программы. Для этого вам нужен интернет-магазин типа «витрина», чтобы покупатели могли, заплатив, скачать программу и начать ею пользоваться. Учтите, впрочем, что программы, за которые платят деньги, должны работать идеально!

    • В зависимости от того, что у вас за программа, вы можете продавать еще множество услуг.
  3. Изображение с названием Write a Grant Proposal Step 16

    3

    Продолжайте поддерживать выпущенную программу обновлениями. Скорее всего, после релиза вы увидите поток сообщений о всевозможных ошибках и багах. Это нормально. Вам нужно ранжировать эти сообщения по степени важности и начать решать соответствующие проблемы, а затем выпускать обновления для программы — так называемые «патчи».

    • Хотите не растерять покупателей и стяжать себе добрую славу? Выпускайте патчи почаще.
  4. Изображение с названием Enjoy Being Alone Step 14

    4

    Займитесь рекламой вашей программы. Если о ней никто не будет знать, то никто ей и пользоваться не будет. Отправляйте сообщения на тематические сайты, раздавайте бесплатную пробную версию, напишите пресс-релиз, делайте все необходимое, чтобы о вашей программе узнали!

    Реклама

Об этой статье

Эту страницу просматривали 118 791 раз.

Была ли эта статья полезной?


Download Article


Download Article

Computer programs are implemented everywhere these days, from our cars to our smartphones, and in almost every job. As the world becomes more and more digital, the need for new programs will always keep increasing. If you have the next big idea, why not make it yourself? See Step 1 below to find out how to get started learning a language, developing your idea into a testable product, and then iterating on it until it’s ready for release.

  1. Image titled Create a Program Step 1

    1

    Brainstorm ideas. A good program will perform a task that makes life easier for the user. Look at the software that is currently available for the task you want to perform, and see if there are ways that the process could be easier or smoother. A successful program is one that users will find a lot of utility in.

    • Examine your daily tasks on your computer. Is there some way that you could automate a portion of those tasks with a program?
    • Write down every idea. Even if it seems silly or outlandish at the time, it could change into something useful or even brilliant.
  2. Image titled Create a Program Step 2

    2

    Examine other programs. What do they do? How could they do it better? What are they missing? Answering these questions can help you come up with ideas for your own take on it.

    Advertisement

  3. Image titled Create a Program Step 3

    3

    Write a design document. This document will outline the features and what you intend to achieve with the project. Referring to the design document during the development process will help keep your project on track and focused. See this guide for details on writing the document. Writing the design document will also help you decide which programming language will work best for your project.

  4. Image titled Create a Program Step 4

    4

    Start simple. When you are just getting started with computer programming, it will behoove you to start small and grow over time. You will learn a lot more if you set tangible goals that you can reach with a basic program. For example,

  5. Advertisement

  1. Image titled Create a Program Step 5

    1

    Download a good text editor. Almost all programs are written in text editors and then compiled to run on computers. While you can use programs like Notepad or TextEdit, it is highly recommended that you download a syntax-highlighting editor such as Notepad++ JEdit, or Sublime Text. This will make your code much easier to visually parse.

    • Some languages such as Visual Basic include an editor and compiler in one package.
  2. Image titled Create a Program Step 6

    2

    Learn a programming language.[1]
    All programs are created through coding. If you want to create your own programs, you will need to be familiar with at least one programming language. The languages you will need to learn will vary depending on the type of program you want to create. Some of the more useful and important ones include:

    • C — C is a low-level language that interacts very closely with the computer’s hardware. It is one of the older programming languages that still sees widespread use.
    • C++ — The biggest drawback of C is that it is not object-oriented. This is where C++ comes in. C++ is currently the most popular programming language in the world. Programs such as Chrome, Firefox, Photoshop, and many others are all built with C++. It is also a very popular language for creating video games.
    • Java — Java is an evolution of the C++ language, and is extremely portable. Most computers, regardless of operating system, can run a Java Virtual Machine, allowing the program to be used nearly universally. It is widely used in video games and business software, and is often recommended as an essential language.
    • C# — C# is a Windows-based language and is one of the main languages used when creating Windows programs. It is closely related to Java and C++, and should be easy to learn if you’re already familiar with Java. If you want to make a Windows or Windows Phone program, you’ll want to take a look at this language.
    • Objective-C — This is another cousin of the C language that is specifically designed for Apple systems. If you want to make iPhone or iPad apps, this is the language for you.
  3. Image titled Create a Program Step 7

    3

    Download the compiler or interpreter. For any high-level language such as C++, Java, and many others, you will need a compiler to convert your code into a format that the computer can use. There are a variety of compilers to choose from depending on the language you are using.[2]

    • Some languages are interpreted languages, which means they don’t need a compiler. Instead, they only need the language interpreter installed on the computer, and the programs can run instantly. Some examples of interpreted languages include Perl and Python.
  4. Image titled Create a Program Step 8

    4

    Learn basic programming concepts. No matter which language you pick, you’ll likely need to understand some basic common concepts. Knowing how to handle the syntax of the language will allow you to create much more powerful programs. Common concepts include:

    • Declaring variables — Variables are the way your data is temporarily stored in your program. This data can then be stored, modified, manipulated, and called upon later in the program.
    • Using conditional statements (if, else, when, etc.) — These are one of the basic functions of programs, and dictate how the logic works. Conditional statements revolve around «true» and «false» statements.
    • Using loops (for, goto, do, etc.) — Loops allow you to repeat processes over and over until a command is given to stop.
    • Using escape sequences — These commands perform functions such as create new lines, indents, quotes, and more.
    • Commenting on code — Comments are essential for remembering what your code does, helping other programmers understand your code, and for temporarily disabling parts of code.
    • Understand regular expressions.
  5. Image titled Create a Program Step 9

    5

    Find some books on the language of your choice.[3]
    There are books for every language and for every level of expertise. You can find programming books at your local bookstore or any online retailer. A book can be an invaluable tool as you can keep it close at hand while you’re working.

    • Beyond books, the internet is an endless treasure-trove of guides and tutorials. Search for guides on the language of your choice on sites such as Codecademy, Code.org, Bento, Udacity, Udemy, Khan Academy, W3Schools, and many more.
  6. Image titled Create a Program Step 10

    6

    Take some classes. Anyone can teach themselves to make a program if they put their mind to it, but sometimes having a teacher and a classroom environment can be really beneficial. One-on-one time with an expert can greatly decrease the time it takes you to grasp programming fundamentals and concepts. Classes are also a good place to learn advanced math and logic that will be required for more complex programs.

    • Classes cost money, so make sure that you are signing up for classes that will help you learn what you want to know.
  7. Image titled Create a Program Step 11

    7

    Ask questions. The internet is a fantastic way to connect with other developers. If you find yourself stumped on one of your projects, ask for help on sites such as StackOverflow. Make sure that you ask in an intelligent manner and can prove that you have already tried several possible solutions.

  8. Advertisement

  1. Image titled Create a Program Step 12

    1

    Start writing a basic program with your core functionality. This will be the prototype that shows off the functionality that you’re aiming to achieve. A prototype is a quick program, and should be iterated on until you find a design that works. For example, if you are creating a calendar program, your prototype would be a basic calendar (with correct dates!) and a way to add events to it.

    • As you create your prototype, use a top-down approach. Leave out as much detail as you possibly can at first. Then, slowly add finer and finer details. This will speed up the prototyping process and will also keep your code from getting too complex and unmanageable. If your code gets too hard to follow, you could end up having to start all over from the beginning.
    • Your prototype will change often during the development cycle as you come up with new ways to tackle problems or think of an idea later that you want to incorporate.
    • If you’re making a game, your prototype should be fun! If the prototype isn’t fun, then chances are the full game won’t be fun either.
    • If your desired mechanics just aren’t working in the prototype, then it may be time to go back to the drawing board.
  2. Image titled Create a Program Step 13

    2

    Assemble a team. If you are developing your program on your own, you can use a prototype to help build a team. A team will help you track down bugs faster, iterate features, and design the visual aspects of the program.

    • A team is definitely not necessary for small projects, but will cut down development time significantly.
    • Running a team is a complex and difficult process, and requires good management skills along with a good structure for the team. See this guide for more details on leading a group.
  3. Image titled Create a Program Step 14

    3

    Start over from scratch if necessary. Once you’re familiar with your language, you may be able to get prototypes up and running in just a few days. Because of their quick nature, don’t be afraid to scrap your idea and start over from a different angle if you’re not happy with how it’s turning out. It’s much easier to make major changes at this stage than it is later on when the features start falling into place.

  4. Image titled Create a Program Step 15

    4

    Comment on everything. Use the comment syntax in your programming language to leave notes on all but the most basic lines of code. This will help you remember what you were doing if you have to put the project down for awhile, and will help other developers understand your code. This is especially essential if you are working as part of a programming team.

    • You can use comments to temporarily disable parts of your code during testing. Simply enclose the code you want to disable in comment syntax and it won’t be compiled. You can then delete the comment syntax and the code will be restored.
  5. Advertisement

  1. Image titled Create a Program Step 16

    1

    Gather a testing team. In the alpha stage, the testing team can and should be small. A small group will help you get focused feedback and gives you the ability to interface with testers one on one. Every time you make updates to the prototype, new builds are sent out to the alpha testers. The testers then try all of the included features and also try to break the program, documenting their results.

    • If you are developing a commercial product, you will want to make sure that all of your testers sign a Non-Disclosure Agreement (NDA). This will prevent them from telling others about your program, and prevent leaks to press and other users.
    • Take some time to come up with a solid testing plan. Make sure that your testers have a way to easily report bugs in the program, as well as easily access new versions of the alpha. GitHub and other code repositories are a great way to easily manage this aspect.
  2. Image titled Create a Program Step 17

    2

    Test your prototype over and over. Bugs are the bane of every developer. Errors in code and unexpected usage can cause all kinds of problems in a finished product. As you continue to work on your prototype, test it as much as possible. Do everything you can to break it, and then try to keep it from breaking in the future.

    • Try inputting odd dates if your program deals with dates. Really old dates or far future dates may cause odd reactions with the program.
    • Input the wrong kind of variables. For example, if you have a form that asks for the user’s age, enter in a word instead and see what happens to the program.
    • If your program has a graphical interface, click on everything. What happens when you go back to a previous screen, or click buttons in the wrong order?
  3. Image titled Create a Program Step 18

    3

    Address bugs in order of priority. When revising the program in the alpha, you will be spending a lot of time fixing features that do not work correctly. When organizing your bug reports from your alpha testers, they will need to be sorted based on two metrics: Severity and Priority.

    • The Severity of a bug is a measure of how much damage the bug causes. Bugs that crash the program, corrupt data, keep the program from running are referred to as Blockers. Features that don’t work or return incorrect results are labeled Critical, while difficult to use or bad-looking features are labeled Major. There are also Normal, Minor, and Trivial bugs that affect smaller sections or less-crucial features.
    • The Priority of a bug determines what order you tackle them when attempting to fix bugs. Fixing bugs in software is a time-consuming process, and takes away from the time you have to add features and polish. As such, you have to take the priority of a bug into account to make sure that you meet deadlines. All Blocker and Critical bugs take the highest priority, sometimes referred to as P1. P2 bugs are usually Major bugs that are scheduled to be fixed, but won’t hold a product back from being shipped. P3 and P4 bugs are usually not scheduled fixes, and fall into the «nice to have» category.
  4. Image titled Create a Program Step 19

    4

    Add more features. During the alpha phase, you will be adding more features to your program to bring it closer to the program outlined in your design document. The alpha stage is where the prototype evolves into the basic for of the full program. By the end of the alpha stage, your program should have all of its features implemented.

    • Don’t stray too far from your original design document. A common problem in software development is «feature-creep», where new ideas keep getting added, causing the original focus to be lost and spreading development time between too many different features. You want your program to be the best at what it does, not a jack of all trades.
  5. Image titled Create a Program Step 20

    5

    Test each feature as you add it. As you add features to your program during the alpha phase, send out the new build to your testers. The regularity of new builds will be entirely dependent on your team’s size and how much progress you’re making on the features.

  6. Image titled Create a Program Step 21

    6

    Lock your features when the alpha is finished. Once you’ve implemented all of the features and functionality in your program, you can move out of the alpha phase. At this point, no further features should be added, and the included features should essentially work. Now you can move onto wider testing and polish, known as the beta phase.

  7. Advertisement

  1. Image titled Create a Program Step 22

    1

    Increase your testing group size. In the beta phase, the program is made available to a much larger group of testers. Some developers make the beta phase public, which is referred to as an open beta. This allows anyone to sign up and participate in testing the product.

    • Depending on the needs of your product, you may or may not want to do an open beta.
  2. Image titled Create a Program Step 23

    2

    Test connectivity. As programs become more and more interconnected, there’s a good chance that your program will rely on connections to other products or connections to servers. Beta testing allows you to ensure that these connections work under a larger load, which will ensure that your program is usable by the public when it releases.

  3. Image titled Create a Program Step 24

    3

    Polish your software. In the beta phase, no more features are being added, so focus can be turned to improving the program’s aesthetics and usability. In this phase, UI design becomes a priority, ensuring that the users will have no difficulty navigating the program and taking advantage of the features.

    • UI design and functionality can be very difficult and complex. People make whole careers out of designing UIs. Just make sure that your personal project is easy to use and easy on the eyes. A professional UI may not be possible without a budget and a team.
    • If you have the budget, there are lots of freelance graphics designers who could potentially design a UI on contract for you. If you have a solid project that you’re hoping will become the next big thing, find a good UI designer and make them part of your team.
  4. Image titled Create a Program Step 25

    4

    Continue bug hunting. Throughout the beta phase, you should still be cataloging and prioritizing bug reports from your user base. Since more testers will have access to the product, chances are new bugs will be discovered. Eliminate bugs based on their priority, keeping your final deadlines in mind.[4]

  5. Advertisement

  1. Image titled Create a Program Step 26

    1

    Market your program. If you want to get users, you’ll want to make sure that they know your program exists. Just like any product, you’ll need to do a bit of advertising in order to make people aware. The extent and depth of your marketing campaign will be dictated by your program’s function as well as your available budget. Some easy ways to raise awareness of you program include:

    • Posting about your program on related message boards. Make sure that you follow the posting rules of whichever forum you choose so that your posts don’t get marked as spam.
    • Send out press releases to tech sites. Find some tech blogs and sites that fit your program’s genre. Send the editors a press release detailing your program and what it does. Include a few screenshots.
    • Make some YouTube videos. If your program is designed to complete a specific task, make some YouTube videos showing your program in action. Structure them as «How-To» videos.
    • Create social media pages. You can create free Facebook and Google+ pages for your program, and can use Twitter for both company and program-specific news.
  2. Image titled Create a Program Step 27

    2

    Host your program on your website. For small programs, you can most likely host the file on your own website. You may want to include a payment system if you are going to be charging for your software. If your program becomes very popular, you may need to host the file on a server that can handle more downloads.

  3. Image titled Create a Program Step 28

    3

    Set up a support service. Once your program is released in the wild, you will invariably have users with technical problems or who don’t understand how the program works. Your website should have thorough documentation available, as well as some sort of support service. This can include a technical support forum, a support email, live help, or any combination of those. What you can provide will be dependent on your available budget.

  4. Image titled Create a Program Step 29

    4

    Keep your product up to date. Almost all programs these days are patched and updated long after their initial release. These patches may fix critical or non-critical bugs, update security protocols, improve stability, or even add functionality or redo the aesthetics. Keeping your program updated will help keep in competitive.

  5. Advertisement

Sample Programs

Add New Question

  • Question

    What should I do if my kid wants to make a website?

    Community Answer

    Go to any reliable coding site. It should take you through on how to make a website, and if your kid already knows how, then just skip the tutorial. If he wants to make one from scratch, use commands to create a blank website or buy a domain. Just be sure to monitor your kid’s website to make sure they aren’t putting up any personal information.

  • Question

    Where can I find a video tutorial?

    Community Answer

    Check YouTube. There are many informative video tutorials on this and other topics.

  • Question

    How do I create an app icon?

    Community Answer

    I suggest you find how-to videos on YouTube on how to paint/develop app icons. Or, if you don’t want to do that you can always hire an artist.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

References

  1. Stephen Cognetta, MBA. Tech Interviewing Coach. Expert Interview. 21 July 2020.
  2. http://www.computerhope.com/issues/ch000675.htm
  3. Stephen Cognetta, MBA. Tech Interviewing Coach. Expert Interview. 21 July 2020.
  4. http://www.centercode.com/blog/2011/01/alpha-vs-beta-testing/

About This Article

Article SummaryX

1. Come up with an idea.
2. Learn a programming language.
3. Build a prototype.
4. Assemble a team.
5. Comment on everything.
6. Test the Alpha prototype.
7. Create and test the Beta.
8. Polish and release.

Did this summary help you?

Thanks to all authors for creating a page that has been read 439,750 times.

Reader Success Stories

  • Anonymous

    «This article really helped give me a solid idea on how to create my own program for the future. Thanks a lot!»

Is this article up to date?


Download Article


Download Article

Computer programs are implemented everywhere these days, from our cars to our smartphones, and in almost every job. As the world becomes more and more digital, the need for new programs will always keep increasing. If you have the next big idea, why not make it yourself? See Step 1 below to find out how to get started learning a language, developing your idea into a testable product, and then iterating on it until it’s ready for release.

  1. Image titled Create a Program Step 1

    1

    Brainstorm ideas. A good program will perform a task that makes life easier for the user. Look at the software that is currently available for the task you want to perform, and see if there are ways that the process could be easier or smoother. A successful program is one that users will find a lot of utility in.

    • Examine your daily tasks on your computer. Is there some way that you could automate a portion of those tasks with a program?
    • Write down every idea. Even if it seems silly or outlandish at the time, it could change into something useful or even brilliant.
  2. Image titled Create a Program Step 2

    2

    Examine other programs. What do they do? How could they do it better? What are they missing? Answering these questions can help you come up with ideas for your own take on it.

    Advertisement

  3. Image titled Create a Program Step 3

    3

    Write a design document. This document will outline the features and what you intend to achieve with the project. Referring to the design document during the development process will help keep your project on track and focused. See this guide for details on writing the document. Writing the design document will also help you decide which programming language will work best for your project.

  4. Image titled Create a Program Step 4

    4

    Start simple. When you are just getting started with computer programming, it will behoove you to start small and grow over time. You will learn a lot more if you set tangible goals that you can reach with a basic program. For example,

  5. Advertisement

  1. Image titled Create a Program Step 5

    1

    Download a good text editor. Almost all programs are written in text editors and then compiled to run on computers. While you can use programs like Notepad or TextEdit, it is highly recommended that you download a syntax-highlighting editor such as Notepad++ JEdit, or Sublime Text. This will make your code much easier to visually parse.

    • Some languages such as Visual Basic include an editor and compiler in one package.
  2. Image titled Create a Program Step 6

    2

    Learn a programming language.[1]
    All programs are created through coding. If you want to create your own programs, you will need to be familiar with at least one programming language. The languages you will need to learn will vary depending on the type of program you want to create. Some of the more useful and important ones include:

    • C — C is a low-level language that interacts very closely with the computer’s hardware. It is one of the older programming languages that still sees widespread use.
    • C++ — The biggest drawback of C is that it is not object-oriented. This is where C++ comes in. C++ is currently the most popular programming language in the world. Programs such as Chrome, Firefox, Photoshop, and many others are all built with C++. It is also a very popular language for creating video games.
    • Java — Java is an evolution of the C++ language, and is extremely portable. Most computers, regardless of operating system, can run a Java Virtual Machine, allowing the program to be used nearly universally. It is widely used in video games and business software, and is often recommended as an essential language.
    • C# — C# is a Windows-based language and is one of the main languages used when creating Windows programs. It is closely related to Java and C++, and should be easy to learn if you’re already familiar with Java. If you want to make a Windows or Windows Phone program, you’ll want to take a look at this language.
    • Objective-C — This is another cousin of the C language that is specifically designed for Apple systems. If you want to make iPhone or iPad apps, this is the language for you.
  3. Image titled Create a Program Step 7

    3

    Download the compiler or interpreter. For any high-level language such as C++, Java, and many others, you will need a compiler to convert your code into a format that the computer can use. There are a variety of compilers to choose from depending on the language you are using.[2]

    • Some languages are interpreted languages, which means they don’t need a compiler. Instead, they only need the language interpreter installed on the computer, and the programs can run instantly. Some examples of interpreted languages include Perl and Python.
  4. Image titled Create a Program Step 8

    4

    Learn basic programming concepts. No matter which language you pick, you’ll likely need to understand some basic common concepts. Knowing how to handle the syntax of the language will allow you to create much more powerful programs. Common concepts include:

    • Declaring variables — Variables are the way your data is temporarily stored in your program. This data can then be stored, modified, manipulated, and called upon later in the program.
    • Using conditional statements (if, else, when, etc.) — These are one of the basic functions of programs, and dictate how the logic works. Conditional statements revolve around «true» and «false» statements.
    • Using loops (for, goto, do, etc.) — Loops allow you to repeat processes over and over until a command is given to stop.
    • Using escape sequences — These commands perform functions such as create new lines, indents, quotes, and more.
    • Commenting on code — Comments are essential for remembering what your code does, helping other programmers understand your code, and for temporarily disabling parts of code.
    • Understand regular expressions.
  5. Image titled Create a Program Step 9

    5

    Find some books on the language of your choice.[3]
    There are books for every language and for every level of expertise. You can find programming books at your local bookstore or any online retailer. A book can be an invaluable tool as you can keep it close at hand while you’re working.

    • Beyond books, the internet is an endless treasure-trove of guides and tutorials. Search for guides on the language of your choice on sites such as Codecademy, Code.org, Bento, Udacity, Udemy, Khan Academy, W3Schools, and many more.
  6. Image titled Create a Program Step 10

    6

    Take some classes. Anyone can teach themselves to make a program if they put their mind to it, but sometimes having a teacher and a classroom environment can be really beneficial. One-on-one time with an expert can greatly decrease the time it takes you to grasp programming fundamentals and concepts. Classes are also a good place to learn advanced math and logic that will be required for more complex programs.

    • Classes cost money, so make sure that you are signing up for classes that will help you learn what you want to know.
  7. Image titled Create a Program Step 11

    7

    Ask questions. The internet is a fantastic way to connect with other developers. If you find yourself stumped on one of your projects, ask for help on sites such as StackOverflow. Make sure that you ask in an intelligent manner and can prove that you have already tried several possible solutions.

  8. Advertisement

  1. Image titled Create a Program Step 12

    1

    Start writing a basic program with your core functionality. This will be the prototype that shows off the functionality that you’re aiming to achieve. A prototype is a quick program, and should be iterated on until you find a design that works. For example, if you are creating a calendar program, your prototype would be a basic calendar (with correct dates!) and a way to add events to it.

    • As you create your prototype, use a top-down approach. Leave out as much detail as you possibly can at first. Then, slowly add finer and finer details. This will speed up the prototyping process and will also keep your code from getting too complex and unmanageable. If your code gets too hard to follow, you could end up having to start all over from the beginning.
    • Your prototype will change often during the development cycle as you come up with new ways to tackle problems or think of an idea later that you want to incorporate.
    • If you’re making a game, your prototype should be fun! If the prototype isn’t fun, then chances are the full game won’t be fun either.
    • If your desired mechanics just aren’t working in the prototype, then it may be time to go back to the drawing board.
  2. Image titled Create a Program Step 13

    2

    Assemble a team. If you are developing your program on your own, you can use a prototype to help build a team. A team will help you track down bugs faster, iterate features, and design the visual aspects of the program.

    • A team is definitely not necessary for small projects, but will cut down development time significantly.
    • Running a team is a complex and difficult process, and requires good management skills along with a good structure for the team. See this guide for more details on leading a group.
  3. Image titled Create a Program Step 14

    3

    Start over from scratch if necessary. Once you’re familiar with your language, you may be able to get prototypes up and running in just a few days. Because of their quick nature, don’t be afraid to scrap your idea and start over from a different angle if you’re not happy with how it’s turning out. It’s much easier to make major changes at this stage than it is later on when the features start falling into place.

  4. Image titled Create a Program Step 15

    4

    Comment on everything. Use the comment syntax in your programming language to leave notes on all but the most basic lines of code. This will help you remember what you were doing if you have to put the project down for awhile, and will help other developers understand your code. This is especially essential if you are working as part of a programming team.

    • You can use comments to temporarily disable parts of your code during testing. Simply enclose the code you want to disable in comment syntax and it won’t be compiled. You can then delete the comment syntax and the code will be restored.
  5. Advertisement

  1. Image titled Create a Program Step 16

    1

    Gather a testing team. In the alpha stage, the testing team can and should be small. A small group will help you get focused feedback and gives you the ability to interface with testers one on one. Every time you make updates to the prototype, new builds are sent out to the alpha testers. The testers then try all of the included features and also try to break the program, documenting their results.

    • If you are developing a commercial product, you will want to make sure that all of your testers sign a Non-Disclosure Agreement (NDA). This will prevent them from telling others about your program, and prevent leaks to press and other users.
    • Take some time to come up with a solid testing plan. Make sure that your testers have a way to easily report bugs in the program, as well as easily access new versions of the alpha. GitHub and other code repositories are a great way to easily manage this aspect.
  2. Image titled Create a Program Step 17

    2

    Test your prototype over and over. Bugs are the bane of every developer. Errors in code and unexpected usage can cause all kinds of problems in a finished product. As you continue to work on your prototype, test it as much as possible. Do everything you can to break it, and then try to keep it from breaking in the future.

    • Try inputting odd dates if your program deals with dates. Really old dates or far future dates may cause odd reactions with the program.
    • Input the wrong kind of variables. For example, if you have a form that asks for the user’s age, enter in a word instead and see what happens to the program.
    • If your program has a graphical interface, click on everything. What happens when you go back to a previous screen, or click buttons in the wrong order?
  3. Image titled Create a Program Step 18

    3

    Address bugs in order of priority. When revising the program in the alpha, you will be spending a lot of time fixing features that do not work correctly. When organizing your bug reports from your alpha testers, they will need to be sorted based on two metrics: Severity and Priority.

    • The Severity of a bug is a measure of how much damage the bug causes. Bugs that crash the program, corrupt data, keep the program from running are referred to as Blockers. Features that don’t work or return incorrect results are labeled Critical, while difficult to use or bad-looking features are labeled Major. There are also Normal, Minor, and Trivial bugs that affect smaller sections or less-crucial features.
    • The Priority of a bug determines what order you tackle them when attempting to fix bugs. Fixing bugs in software is a time-consuming process, and takes away from the time you have to add features and polish. As such, you have to take the priority of a bug into account to make sure that you meet deadlines. All Blocker and Critical bugs take the highest priority, sometimes referred to as P1. P2 bugs are usually Major bugs that are scheduled to be fixed, but won’t hold a product back from being shipped. P3 and P4 bugs are usually not scheduled fixes, and fall into the «nice to have» category.
  4. Image titled Create a Program Step 19

    4

    Add more features. During the alpha phase, you will be adding more features to your program to bring it closer to the program outlined in your design document. The alpha stage is where the prototype evolves into the basic for of the full program. By the end of the alpha stage, your program should have all of its features implemented.

    • Don’t stray too far from your original design document. A common problem in software development is «feature-creep», where new ideas keep getting added, causing the original focus to be lost and spreading development time between too many different features. You want your program to be the best at what it does, not a jack of all trades.
  5. Image titled Create a Program Step 20

    5

    Test each feature as you add it. As you add features to your program during the alpha phase, send out the new build to your testers. The regularity of new builds will be entirely dependent on your team’s size and how much progress you’re making on the features.

  6. Image titled Create a Program Step 21

    6

    Lock your features when the alpha is finished. Once you’ve implemented all of the features and functionality in your program, you can move out of the alpha phase. At this point, no further features should be added, and the included features should essentially work. Now you can move onto wider testing and polish, known as the beta phase.

  7. Advertisement

  1. Image titled Create a Program Step 22

    1

    Increase your testing group size. In the beta phase, the program is made available to a much larger group of testers. Some developers make the beta phase public, which is referred to as an open beta. This allows anyone to sign up and participate in testing the product.

    • Depending on the needs of your product, you may or may not want to do an open beta.
  2. Image titled Create a Program Step 23

    2

    Test connectivity. As programs become more and more interconnected, there’s a good chance that your program will rely on connections to other products or connections to servers. Beta testing allows you to ensure that these connections work under a larger load, which will ensure that your program is usable by the public when it releases.

  3. Image titled Create a Program Step 24

    3

    Polish your software. In the beta phase, no more features are being added, so focus can be turned to improving the program’s aesthetics and usability. In this phase, UI design becomes a priority, ensuring that the users will have no difficulty navigating the program and taking advantage of the features.

    • UI design and functionality can be very difficult and complex. People make whole careers out of designing UIs. Just make sure that your personal project is easy to use and easy on the eyes. A professional UI may not be possible without a budget and a team.
    • If you have the budget, there are lots of freelance graphics designers who could potentially design a UI on contract for you. If you have a solid project that you’re hoping will become the next big thing, find a good UI designer and make them part of your team.
  4. Image titled Create a Program Step 25

    4

    Continue bug hunting. Throughout the beta phase, you should still be cataloging and prioritizing bug reports from your user base. Since more testers will have access to the product, chances are new bugs will be discovered. Eliminate bugs based on their priority, keeping your final deadlines in mind.[4]

  5. Advertisement

  1. Image titled Create a Program Step 26

    1

    Market your program. If you want to get users, you’ll want to make sure that they know your program exists. Just like any product, you’ll need to do a bit of advertising in order to make people aware. The extent and depth of your marketing campaign will be dictated by your program’s function as well as your available budget. Some easy ways to raise awareness of you program include:

    • Posting about your program on related message boards. Make sure that you follow the posting rules of whichever forum you choose so that your posts don’t get marked as spam.
    • Send out press releases to tech sites. Find some tech blogs and sites that fit your program’s genre. Send the editors a press release detailing your program and what it does. Include a few screenshots.
    • Make some YouTube videos. If your program is designed to complete a specific task, make some YouTube videos showing your program in action. Structure them as «How-To» videos.
    • Create social media pages. You can create free Facebook and Google+ pages for your program, and can use Twitter for both company and program-specific news.
  2. Image titled Create a Program Step 27

    2

    Host your program on your website. For small programs, you can most likely host the file on your own website. You may want to include a payment system if you are going to be charging for your software. If your program becomes very popular, you may need to host the file on a server that can handle more downloads.

  3. Image titled Create a Program Step 28

    3

    Set up a support service. Once your program is released in the wild, you will invariably have users with technical problems or who don’t understand how the program works. Your website should have thorough documentation available, as well as some sort of support service. This can include a technical support forum, a support email, live help, or any combination of those. What you can provide will be dependent on your available budget.

  4. Image titled Create a Program Step 29

    4

    Keep your product up to date. Almost all programs these days are patched and updated long after their initial release. These patches may fix critical or non-critical bugs, update security protocols, improve stability, or even add functionality or redo the aesthetics. Keeping your program updated will help keep in competitive.

  5. Advertisement

Sample Programs

Add New Question

  • Question

    What should I do if my kid wants to make a website?

    Community Answer

    Go to any reliable coding site. It should take you through on how to make a website, and if your kid already knows how, then just skip the tutorial. If he wants to make one from scratch, use commands to create a blank website or buy a domain. Just be sure to monitor your kid’s website to make sure they aren’t putting up any personal information.

  • Question

    Where can I find a video tutorial?

    Community Answer

    Check YouTube. There are many informative video tutorials on this and other topics.

  • Question

    How do I create an app icon?

    Community Answer

    I suggest you find how-to videos on YouTube on how to paint/develop app icons. Or, if you don’t want to do that you can always hire an artist.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

References

  1. Stephen Cognetta, MBA. Tech Interviewing Coach. Expert Interview. 21 July 2020.
  2. http://www.computerhope.com/issues/ch000675.htm
  3. Stephen Cognetta, MBA. Tech Interviewing Coach. Expert Interview. 21 July 2020.
  4. http://www.centercode.com/blog/2011/01/alpha-vs-beta-testing/

About This Article

Article SummaryX

1. Come up with an idea.
2. Learn a programming language.
3. Build a prototype.
4. Assemble a team.
5. Comment on everything.
6. Test the Alpha prototype.
7. Create and test the Beta.
8. Polish and release.

Did this summary help you?

Thanks to all authors for creating a page that has been read 439,750 times.

Reader Success Stories

  • Anonymous

    «This article really helped give me a solid idea on how to create my own program for the future. Thanks a lot!»

Is this article up to date?

Понравилась статья? Поделить с друзьями:
  • Как пишется программа майкрософт
  • Как пишется программа для компьютера ворд
  • Как пишется программа для ардуино
  • Как пишется программа для 3д принтера
  • Как пишется программа ворлд