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.
Links to pages for open source textbooks for 35 programming languages and for no-charge textbooks for 3 more: https://www.ossblog.org/opensourcebooks/.
Design dokument for ”Ringbuffer”
The basic design object is
Ringbuffer: Object {
private
char buf[];
int buf_size, put_on, take_off;
bool empty, full;
int init(int size);
int next(int ix);
public
int put(char ch);
int get(void);
}
Additional design info
The design goal...
OReilly published a new book, Programming Quantum Computers.
From my brief scan of it, the book looks pretty comprehensive. They use circle notation for the Qubit states and have a simulator (QCengine) to go along with the examples on github. The programming language for their algorithm...
Hello everybody,
I am a master student in Theoretical Chemistry and I am working in the DFT realm. Both TDDFT and DFT applied to extended systems (eg. using QUANTUM ESPRESSO). Of course I work with these softwares from a end-user point of view, not as a developer.
But anyway, even if some of...
https://www.amazon.com/dp/B00KM6ZA9I/?tag=pfamazon01-20
So I have the blue thing and the usb cord from a long time ago when I wanted to build a robot, but I don't have the bottom three (unless the bottom left hand corner one is the one attached to the blue thing). I still have the cd as well...
TL:DR;
I've started an open source C# physics library: University Physics
The Long Version
So it turns out there's relatively little in the way of full physics libraries written in C# (the best I can find is bepuphysics which seems to be focused only on classical mechanics). With this...
The following quote caught my eye.
I presume that buffer overflow, heap management, and pointer validation are the shortcomings of C that lead to insecurity. But the broader implications make me curious.
What other features of a programming language directly aid security of the products...
Hey folks, thought I'd ask the experts for some help here. I know that there are LOTS of online resources to learn Linux Terminal, Microsoft PowerShell, and Python, but I was hoping some of you had some favorites that might make the learning process more efficient (in your opinion, of course)...
Hello,
In grade 11 of high school, I encountered this linear programming problem on my textbook:
The "alternative solution" described in the textbook as follows:
Let:
- ##x## : amount of plant A
- ##y## : amount of plant S
- ##L## : garden area
- ##L_x## : area of garden for one plant A
-...
My name is Martin Scholtz and I am a postdoc researcher at the Institute of Theoretical Physics, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic.
I'm working mainly in the area of gravitational physics, but I am interested in different topics as well, see tags...
I recently encountered the Scratch programming language. I wonder what people think of it considering some notable (IMHO) shortfalls. I do not like the way it handles comments, the lack of returned values from "functions", and some other aspects that I think should be basic. But it does seem to...
Hi, I am an undergraduate Physics student and i have an exam on c++ programming next monday, what are the basic things I have to know in order to perform well in the exam? And how is c++ applied in physics?
Dear All,
Thank you for reading my post. I'm stuck with picking the correct 'generator' element in the attached example (Simplex method). As you can see, the solution keeps picking the yellow elements as 'generators', but I don’t understand why we can't choose the purple ones.
Can somebody...
I'm interested in quantum programming. So far I've managed to use Java and Python inside Datamelt computation project for physics simulations and for various statistical plots. Now I want to make a simple code that illustates quantum computing, and maybe even to visualize its principles (for...
I don't think I understood the problem clearly.
What I understood is this:
1. Each food item has a specific major color-component (and, hence, a fixed mode-value of that specific color component). First, I need to calculate all mode values, and use them as constants in my program.
2...
Hi,
Please have a look on the attachment. It says, "In a computer system, the overall processing speed is usually limited by the memory, not the processor. Programming determines how well a particular memory hierarchy is utilized. The goal is to process data at the fastest rate possible."
I...
This is my first post so don't be too harsh. I was just looking to get additional opinions in order to make a more informed decision.
Since I always had the idea of becoming an astrophysicist I enrolled in Bsc in physics engineering (5 years) here, and due to being the top student I was invited...
From what I've come to understand is that, in order to get a programming position, you have to be able to answer white board questions. Basically random things such as Fibonacci sequence methods etc...
My question is : is this really the best way to asses whether someone is a good programmer or...
All the white space among words in a text file was lost. Write a C++ program which using dynamic programming to get all of the possible original text files (i.e. with white spaces between words) and rank them in order of likelihood with the best possible runtime.
You have a text file of...
Dear Sirs,
I'm using Microchip PIC's as programmable laboratory timer among other things, but the 100ns instruction cycles are not adequate anymore. So I thought of beefing it up with a 5M40Z MAX-V CPLD which has 5ns end-to-end delay, bought the programmer and downloaded the Quartus Prime Lite...
Hi
I am learning kinematics. Topics include inertia tensors, cosine matrices, quaternions, Euler angles etc... To learn these topics well, I want to try working on something a bit more difficult than just the underlying math. That will probably keep me more motivated.
So, I am looking for...
Hello,
I am trying to get my head around the important difference between these two different styles (paradigms) of programming. I am familiar with traditional structural programming: data, variables, functions, structures. The functions are blocks of instructions that can process data, etc...
Greg Bernhardt submitted a new blog post
AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic Conclusion
Continue reading the Original Blog Post.
Greg Bernhardt submitted a new blog post
AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic
Continue reading the Original Blog Post.
Hi! I am a computer science student and I want to program an application to improve my programming skills.
I am interested in physics and have taken 3 physics courses at University, and would like to look deeper into a specific area during this project. It can be an extensive project, as I have...
This is not a question, but a note, which I thought could help students.
I thought I would share this here, as people may be looking for practice problems.
My professor in the Python course I just finished recommended https://projecteuler.net/ as a site to practice using programming skills...
It looks like Javascript is the way things are heading. But I've also seen C++ and Python recommended. I don't want to waste time and energy; I've done enough of that. Any job I get will probably be based on my having a 4 year degree (STEM preferred and no gpa requirement) and programming...
hi everyone!
i am not into physics, but need it now,i am a programmer workin on an IOT project...so kinda need help.
i want to use a capacitor to see what passed between two plates...knowing, it is the change in dielectric after certain intervals...how do i measure the change at the other...
Hi everyone, I am new programming in Fortran and Inhave done about three or four programs that solves different problems in trigonometry, one
is the basic one it gives you hypotenuse upon two sides, the other finds the theta angle by giving hypotenuse and opposite side, other find hypotenuse by...
I remember a while back someone told me that there exist programmers who don't believe in null. I thought that was a crazy idea. Until recently, as I've gotten better at OOP and have figure out that if my object has a property that is allowed to be set to null, it usually means that I am not...
Hey everyone,
I wasn't sure if this belonged in the general math forum or not, so I posted it here instead (mods - feel free to move if it belongs elsewhere).
What I want to know is how to properly write out a computer algorithm in proper math notation. Take this code for example:
Height...
Let's say I have a service that publishes events, like
eo ("Bought 100 shares of AAPL")
e1 ("Bought 100 shares of T")
e2 ("Sold 500 shares of TSLA")
and there exist stateful services subscribing to the events and whose state depends on the events being processed successfully and in the correct...
Hi,
My question is if there are any computer programming or front-end web development certifications that I can earn online for free or cheap. I already completed FreeCodeCamp and a few other coding bootcamps online.
I also signed up for my bachelor's degree equivalent on Open Source Society...
Been tracking down the most unusual bug I've seen in 40 years of programming (mostly in assemlber and C). It manifests in the test suite for an object oriented XBase language implementation that's been ported everywhere from Palm Pilot to OS/2 to the Blackberry tablet to Windows to, now, Qnx7...
I'm majoring in physics and I'm planning on pursuing computational astrophysics in graduate school. Will a second major in computer science/programming look good to graduate schools, and/or will it give me great advantages in the field of computational astrophysics or astronomy?
I have a project to make the solar system. I am trying to start from somwhere. On the notes it says that we need to start by creating a System of Particles
Two-body simulation (Circular motion)
Implement Gravitational acceleration
Each particle (planet) could have its own field.
I.e. Each...
Hi, I am an aspiring Theoretical Physicist. I've heard that you need to know many programming languages to become a Physicist, but I have never learned a single programming language in my life and I am 16-17 years old now. Is there any chance of me still becoming one? Is there anything I can do...
I’ve been a school teacher for 6 years, and I want to get into coding. I’ve been told by a CS professor I know that my background is very sought after in the tech industry, and I would be very competitive if I got into coding. Is this true? What’s the best route, bootcamp, nanodegree, etc.? What...
Hi,
I am facing issues with my program. Listed below. This is form my masters project. Also in what way can I connect the filleted surfaces shown in fig by a weld or just load or stress transfer connection.
fini
/clear
/title,C160T2B70-1L
/prep7
et,1,shell181
r,1,2
mp,ex,1,1.85e5...
I’m planning on attending graduate school for physics. My interest is currently in cosmology and astrophysics, but I’m keeping an open mind. I’d like to be prepared in case I choose another field, or go into private sector instead of academia.
I’ve decided I want to double major in my...
Homework Statement
I've tried hours and hours to model this problem but i didn't succeed. Can you help me ?
We want to realize n projects in the next T years. For each project, a
profitability index pi is known, which expresses the expected final
gain (in Euro) and a cost profile ai =...