What is Programming: Definition and 1000 Discussions

Computer programming is the process of designing and building an executable computer program to accomplish a specific computing result or to perform a specific task. Programming involves tasks such as: analysis, generating algorithms, profiling algorithms' accuracy and resource consumption, and the implementation of algorithms in a chosen programming language (commonly referred to as coding). The source code of a program is written in one or more languages that are intelligible to programmers, rather than machine code, which is directly executed by the central processing unit. The purpose of programming is to find a sequence of instructions that will automate the performance of a task (which can be as complex as an operating system) on a computer, often for solving a given problem. Proficient programming thus often requires expertise in several different subjects, including knowledge of the application domain, specialized algorithms, and formal logic.
Tasks accompanying and related to programming include: testing, debugging, source code maintenance, implementation of build systems, and management of derived artifacts, such as the machine code of computer programs. These might be considered part of the programming process, but often the term software development is used for this larger process with the term programming, implementation, or coding reserved for the actual writing of code. Software engineering combines engineering techniques with software development practices. Reverse engineering is a related process used by designers, analysts and programmers to understand and re-create/re-implement.

View More On Wikipedia.org
  1. Eli Puerto

    Necessary programming languages to learn/master in BS Math?

    Hi! Will be taking BS Math in 2019, and as early as now I would like to practice my necessary skills so that I would not end up left behind. I'm still currently in 12th grade under a specialized STEM program.
  2. J

    Python programming on Pythonanywhere

    Hi all; I've already posted to P_Anywhere's site but... I'm trying to run a script that needs a data file piped to it. Now P_ Anywhere gives you a resident directory and mine contains the program and the data file. Sooo... bonds.py ethane.xyz maybe? Nah. Doesn't like that. But! I did get it to...
  3. A

    I Open source software for integer programming

    I don't usually need help in locating software, but I'm having a heck of a time tracking down a good open-source bit of software which solves integer programming problems using arbitrary precision! If I don't find one soon, I'll need to write it myself. Which I don't mind, but it's silly to...
  4. T

    Python Portfolio/project ideas for computer programming?

    Hi, I need ideas for developing a portfolio project to land a computer programming/front end developer position. So far I've developed a simple tic-tac-toe web app game. Plus I have my portfolio website at the ready to be uploaded. Any ideas for portfolio projects? Thanks!
  5. U

    How to calculate triac angle to set desired RMS voltage

    Hi, I would like to implement voltage regulator based on microcontroller + triac. I am able to calculate source RMS voltage by sampling signal using ADC, but don't know how to calculate triac angle to set desired RMS voltage. For example i have 250v source RMS voltage and i need to calculate...
  6. binbagsss

    Other Operations research, stochastic dynamic programming, sources

    My lecture notes and recommended textbook Hillier and Liberman are not enough for me. My methodology and formulation of problems still seems like too much guess-work. Can anyone recommend any good resources, lecture notes or textbooks, for stochastic DP? Many thanks
  7. QuantumQuest

    Insights Intro to Algorithms for Programming - Comments

    Greg Bernhardt submitted a new PF Insights post Intro to Algorithms for Programming Continue reading the Original PF Insights Post.
  8. L

    Maximizing Localization in Adding Multiple Plane Waves

    To whom it may concern, I am having issues with a given assignment in my quantum mechanics class. The instructions listed below are all I have to go on since the prof. is not available for discussion and I have searched through at least 15 articles regarding plane waves and a dozen textbooks...
  9. JorgeM

    Ideas for a physics or math programming project?

    Hello! I am going to make a project for my programming class. So I am just looking for some ideas about what can I make my project about. I mean, I try to make something that would have an special significance for PHYSICS or even MATH (Modeling or solving) , and something that would be a...
  10. C

    I Linear Programming: how to identify conflicting equations

    I'm reading about the Simplex method to solve a Linear Program. If a program is rejected as being infeasible, is there a method to identify which equations are causing it to be infeasible and a technique for reducing the program in an optimal way? (I'm not sure what 'optimal' is exactly, but my...
  11. J

    Decrypting Binary Code to English Text

    00110100 00110011 00100000 00110100 00111001 00100000 00110100 00110011 00100000 00110100 00110001 00100000 00110100 00110100 00100000 00110100 00110001 00100000 00110010 00110000 00100000 00110011 00110011 00100000 00110011 00110011 00100000 00110011 00110000 00100000 00110011 00110001
  12. Telemachus

    Programming succesive trapezoidal integrator

    Hi, I was trying to write a code in fortran that takes an array 'fx' of length 'm', and integrates it between a and b using the successive trapezoidal rule. Off course, the length of the array, m, has to be a power of 2, and the underlying grid uniform. So, I'm not sure on how to call the vector...
  13. pairofstrings

    What should be the rules to write excellent code?

    Hi. I know few rules that let's me write great code: 1. "don't pollute the global namespace" when I sit down to write JavaScript code. 2. SOLID 3. KISS 4. Liskov's Open-Closed principle Can someone help me complete the list of such rules? Thanks! Have a great day!
  14. M

    What should I know before taking Parallel Programming?

    I'm organizing my electives for Fall 2019, and I want to take Parallel Programming. I will have finished my math minor this Summer Semester, and will have completed CS Foundations I/II as well as Data Strcutures and Algorithms all taught in C++. I didn't know any programming prior to starting my...
  15. mertcan

    Bland rule proof linear programming

    <Moderator's note: Continued from a technical forum and thus no template. Re-opening has been approved by moderator.> Hi, my question is related to simplex algorithm anticycling rule called Bland's rule. While I was working with the proof in the link...
  16. O

    What is the Best 2D Physics Engine for a Real-Time Simulation Program?

    Hello! I'm trying to write a 2D program that uses simple physics. I was wondering what would be the best 2D physics engine to use in my case, and if it even matter what engine I choose. I also want my simulation to run in real time, so at least 30 fps on a decent home computer. I prefer a fast...
  17. J

    Magnetostatics experiment flowchart - How can I improve this

    Homework Statement I'm attempting to write a FORTRAN program that calcuates the magnetic field, B, at any point outside of a bar magnet. I will be using a simple first order euler scheme for numerical surface integration. Homework Equations Here is the exact method I will be using...
  18. harborsparrow

    Good C programming introduction on Coursera, starts Feb 5

    If you're looking to get a serious but entertaining introduction to computer programming, I wholeheartedly recommend Anne, Andrew, and Genevieve's course, "Programming Fundamentals". https://www.coursera.org/learn/programming-fundamentals I know one of the instructors from my days at Penn, and...
  19. mertcan

    I Linear programming -- Bland rule degeneracy

    hi, my question is related to a proof involves bland rule for avoiding the degeneracy. Initially I emphasized some sentences which have importance in attachment/file with yellow color. At the beginning, it says xs is entering variable and when it enters objective value does not change( because...
  20. U

    Fortran How to buy Fortran Programming Software Commersial License

    Hello,, I want to know how to buy the Fortran software,? I use Fortran programming to simulate some my work for my study. Do you have any suggestion about that??
  21. KonaGorrila

    Learning Programming: MicroChip, MPLABS X IDE, etc.

    Aloha guys, I am a recently graduated physics major going on my next adventure in education. I am trying to teach my self programming through the Micro Chip platform, lucky I have a large learning curve working for my family business. I was wondering if anyone had insight or any suggestions on...
  22. JTC

    What is Artificial Intelligence?

    Please bear with me... In a curriculum in mechanical engineering, there is a set of standard topics: statics, dynamics, vibrations, fluid mechanics, thermondynamics, etc. What is Artificial Intelligence, and what does it entail? (at the moment, it seems like a buzz phrase that does not...
  23. D

    Best Tool for Basic PIC Programming

    Good day to you all, I'm starting to get interested in making a project which involves using PICs but since I am a newbie at this I want to start by making a PIC blink LEDs like in christmas lights. But upon looking it up on the net I was bombarded with multiple options for "basic PIC...
  24. B

    Where should I try for learning programming?

    Hello all, I am newbie here. I am interested to learn about programming like- HTML, CSS, Java, mySQL and many more. So looking for a reliable place to learn. Is there any reliable website where I can try for? Please let me know. Thanks!
  25. Hi Im Paul

    Python What's wrong with my bisection method code?

    Hello, I am assigned to write a code using bisection method (aka binary search method) The equation is 10sin(x) - x^3 - N where N = 1,2,3,4,5,6,7 My code is from math import sin def neg(a, b): return a*b> 0 def bisectx(funcx, lowx, highx,n): assert not neg(funcx(lowx,n), funcx(highx,n))...
  26. D

    Comp Sci Working with classes and vectors in C++

    Homework Statement Write a BinaryTree Class using these specifications: A Class Node represents a standard node of the tree with fields and a constructor like given below: int start, end; const Complex* value; //I will provide more information about Complex later because that was the...
  27. F

    Integer programming model (alternating constraints)

    Homework Statement Formulate as a mixed integer programming problem but do not solve. Maximize ##x_1 + x_2## subject to ##2x_1 + 3x_2 \le 12## or {##3x_1 + 4x_2 \le 24## and ##-x_1 + x_2 \ge 1##} ##x_1, x_2 \ge 0## Homework EquationsThe Attempt at a Solution if the first constraint is met, we...
  28. fluidistic

    Teach Your Youngster the Basics of Programming!

    Which programming language would you like being taught if you were a very young person (5 to 7 years old), as a first programming language? Worded differently, which programming language would you like to teach to your son/daughter if he/she was that age? I've heard about Scratch and Logo. Then...
  29. D

    Comp Sci Using a custom constructor in a C++ class

    Homework Statement I am quite new to C++. I have completed my C course and am now taking a C++ course at my college. The first problem i encountered is with classes and custom made constructors. In the first part of the problem I am supposed to create a class with a field which is a dynamic...
  30. Erenjaeger

    I Linear programming problem

    I was given the problem attached in the photo below and the first question is to define the decision variables and formulate the problem as a linear program. There are no solutions online, so it would be helpful if someone on the mighty PF could check them to see if they are correct, thanks...
  31. A

    PLC control programming for two heaters, TCK, s/s relays

    Hi, I would like to provide the PLC control for a scenario where the temperature in a machine, heated by the two electric heaters, is controlled with use of 1 TCK and 2 s/s relays. Please see draft “PLC4” sent attach. The TCK is fixed to the machine and is not in a physical contact with the...
  32. S

    I Linear Program:Multiple Optima for multivariable Obj. Func.?

    I know there can be an infinite number of solutions when the objective function with 2 variables has an equal slope as a constraint's slope (assuming the constraint is affecting the feasible region and not a redundant constraint). How can you know there are multiple optimal solutions for...
  33. berkeman

    Passive probing of JTAG programming of a uC

    I'm working on an old test fixture that uses JTAG to program a microcontroller (uC) and its Flash memory chip on production PC Board Assemblies. The programming works fine with an old version of the PCBAs, but for some reason it is failing with a new version of the PCBA that should have had no...
  34. C

    Comp Sci How to debug an infinite loop in a C++ program using fork gymnastics?

    This is what I did but I'm getting an infinite loop of the reversed string whenever I run the program. I don't know why #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> /* for fork() and getpid() */ #include <sys/types.h> #include <iostream> using namespace std...
  35. Aaron M

    Thinking about getting an MSc in CS

    Hello all, I have recently graduated with a BSc in physics and have been accepted into the MSc program for Applied Physics. However, due to the job outlook for the position I actually want to do I am deeply interested in pursuing my second interest, which is, AI. Question: My main question is...
  36. C

    How to Implement a Salami Memory Allocator in C?

    Salami Allocator In this warm-up submission you will write a totally trivial allocator: The function init allocator() reserves a given portion of memory for the allocator. Every call to my_malloc() cuts off the requested amount of memory from the remainder of the reserved memory. The call to...
  37. KonaGorrila

    What is the best language for programming microcontrollers?

    I am wondering what programming language, whether it is C, C++, or other, would be best for programming micro controllers. What are the benefits of either one. I understand C is easier to learn but does that actually make it better? I need to use these micro controllers for sensor applications...
  38. P

    I How common is automation in Astronomy?

    I am currently an undergraduate researching Supernovae. We are doing some luminosity calculations using CIAO and HEASOFT which take anywhere between 7 to 13 hours for each remnant. To make the process quicker, I wrote a script that reduces that time to about 40 minutes for each remnant. One of...
  39. ramzerimar

    Engineering Is a Career in Software an Option for Mechanical Engineers?

    I'm at the third year of my MechE course, and in those three years I've developed a keen interest in software/coding. I still like my degree, things like fluid dynamics/aerodynamics fascinate me, but more and more I see myself working with software and coding. One of the things that I like about...
  40. Telemachus

    A workstation for physicists, and programming in GPUs

    Probably everyone is aware of the new cpu's by intel and amd, which will have many cores. The threadripper will be launched on August 10, and it will have up to 16 cores. I am making plans to build a workstation, the idea is to code in parallel, so the more cores is obviously the better. Also, I...
  41. A

    Programmes to learn for Nuclear Engineering Masters

    I am about to begin an MSc in Nuclear Engineering. I am competent in MatLab language but wish to practice/learn another in the time before my course starts. Would I be well served in continuing to practice MatLab or to learn another from scratch (C/Java/Labview)? Are there any particular areas...
  42. M

    I Computer friendly list of bodies in the asteroid belt?

    Is there a computer friendly list with the known bodies in the Solar System astroid belt, that contains their physical properties, position and velocities?
  43. M

    I Solar system simulation errors

    Hi, as a side project I am making a solar system simulator in Python, but I am getting extreme inaccuracies. As the image shows - I am comparing the simulation to data obtained from NASA's Horizon. I have written a a basic Verlet integrator in the Python class posten below: import numpy as...
  44. A

    Help with Python modelling of a particle in a 2D box

    Hello guys, I programmed a physics simulation where a particle with some initial conditions bounces off the walls of a 2d container. The simulation also includes gravity in the y-coordinates. The aim of the project is to produce a visual animation and further on include more particles and...
  45. J

    PHP What programming language is used to store Bank Acct's/money?

    is it PHP-MySQL? In websites accounts of users tend to be stored in servers, and on these servers they store the data in some syntax and use PHP, RUBY or something else to add/change the information. Is it the same in bank accounts? In what format is banking information stored?
  46. GoldenBear

    Programming advice for a physics major?

    I will be starting my undergraduate career this coming fall and was wondering how I should prepare for the programming that I will need for my studies. My first computational physics course will be in my second year, therefor I have quite a bit of time to practice my coding. I have taken two...
  47. D

    Programs Programming courses useful for physics majors?

    I'm a physics undergrad and was wondering which programming classes are most useful/beneficial; python, linux, c++, java, etc...
  48. D

    Starting a C program with a command

    Homework Statement Analyze the code below and figure out what it outputs if it's started with this command: The correct solution is given so i can better understand the parts of the problem. Homework Equations 3. The Attempt at a Solution [/B] I had typed it out and tried to get the same...
  49. S

    Java Any beginning computer programming course (such as for JAVA.

    Not necessarily for JAVA, but in any beginning computer programming course at a college or university: What will the school, or department, or the teacher require of the students? Need the student use their own personal computer for this? Can student do the work using JAVA without having an IDE...
  50. P

    New user here, Need direction and help before my end....

    It has been over 15 years since I completed a Masters of Science in Electrical Engineering. However that alone does not really date me much. So far I have yet to find a source of employment that lasts long enough or is of enough compensation to pay off student loans before I can even begin to...
Back
Top