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.
Hello
I learned object oriented programming in Python from a book. But it does not have any programming exercises. I do not learn very much unless I do some programming exercises. It helps to hone the skills. So, I am looking for some exercises if OOP Python is taught in universities. Usually...
Here is what I have planned to do-:
1) Do 1 course.
2) Buy a python textbook and solve it exercises and examples.
3) Solve 250 codewars problems
4) Do numerical methods in python.
5) Do cryptography algorithms in python.
Will this be enough for my learning to be good enough to be a web developer...
Here is what I have planned to do-:
1) Do 1 course.
2) Buy a python textbook and solve it exercises and examples.
3) Solve 250 codewars problems
4) Do numerical methods in python.
5) Do cryptography algorithms in python.
Will this be enough for my learning to be good enough to be a web developer...
I am learning absolute basic python from udemy course. Till now I see no improvements at all. Except some small small improvements. How should I approach to learn python? I have 0 basics of programming even though I had already studied C and C++ as well as data structures and algorithm. I...
Summary:: Hi, this is an exercise from an algorithm course. I have been trying for hours but I have no successful ideas on how to solve it. I can only understand that DP is the correct approach, since Greedy method does not work.
Suppose you have *n* friends that wants to give you an amount of...
@StatGuy2000 said in another topic this part quoted here:
The name of the topic was "From math PhD to space industry-possible?"
The listing of what was suggested for the PhD student to learn looks like a large amount. Four different programming languages, although he did not say to what level...
Hey everyone :).
after studying c++ and a bit of phyton in the university (not in a career related to programming), I was wondering what to study after the basics.
youtube tutorials are at about the same level as I was at (inheritance, class, pointer), not more advance...
what is the...
Hello, I am learning trying to set up a code that searches for a certain pattern in the text by implementing Rabin-Karp Algorithm.
When setting up the Rabin Karp hash function, I have been told that I should set a value q in order to lower the time complexity of the function, and that q should...
I'm a physics major (Junior) who would like to learn a programming language. Many suggest Python as a good starting language, so let's suppose that is the language I want to first learn. This isn't for employability or general usefulness; rather, I'm just curious.
How exactly does one go about...
Why is/was the LISP programming language thought to be good for writing programs that implement artificial intelligence?
As I imagine it, early AI programs were oriented toward verbal (i.e. text) inputs and outputs. So perhaps a list processing language is/was well suited for that?
In fact, the only programming language I know of that implements something like units is the programming language Frink.
In other programming languages, the implementation is left to the programmer, for example C++ can implement this as a class.
My dad gave me his old copy of "the c programming language" by Kernighan and Ritchie, but I was flicking through it and it comes across as quite old-fashioned and has a lot of random sh*t like pointer arithmetic, memory allocation etc.
Being an idiot, and one who's pretty out of practice with...
So here I am slaving over Perl documentation (For my own pleasure I'm sad to say. I regard programming as LEGO for grownups) and I'm finding weird and funny things like:
I mean what is that about?
And perhaps less obvious:
Well yes, it might :)
You have any even more crazy or funny...
Hi all, my question is as title. I am a fourth year PhD student in US and planning to graduate early to get in industry or community college.
I major in high energy theory, and I have no coding/simulation skills at all (not interested at all). Thus, my situation is that professionally I have...
Hello friends,
I'm looking to program the ARM7TDMI-S in assembly. Can anyone recommend any good development boards? Can anyone recommend an IDE? Can anyone recommend a textbook that would be good for leaning how to program this processor in Assembly? I know various other programming languages...
I have a set of data (representing the strength distribution of samples), and I would like to fit a normal-Weibull grafted distribution. To the left of a specified graft point, the distribution is Weibull, and to the right it's normal. At the graft point, the value and the first derivative are...
Hello,
I have 1 undergrad year left and was wondering what the most used programming languages in grad school are. I still don't know which grad school will accept me so I haven't bothered to ask them directly as my application will be in November when I get my GRE scores.
I am Interested in...
Summary:: Linearizing an equation for MILP
Hi All
I have Linear programming problem where I need to linearise the following function: Y = A * log2(1 + (Bx/Cx^2)). where A, B and C are constants.
Can you please help or advise?
I've tried formulating the LP model for the question above and would like to check if I'm doing anything incorrectly.
Below is my LP model.
Let X1 be the number of one-child family interviewed on weekdays morning
Let X2 be the number of one-child family interviewed on weekdays evening
Let X3...
Hi,
I'm new to programming in python [total beginner in programming] and I would like to ask you for your help.
Here is what I got so far:
import numpy as np
import random
from math import sqrt
p = np.array([(0, 0), (1, 0), (1, (1/sqrt(2)))], dtype=float)
t = np.array((0, 0)...
I want to share a good Youtube Channel that I recently found. "Ben Eater" https://www.youtube.com/channel/UCS0N5baNlQWJCUrhCEo8WlA
[I have no personal or financial interest in Ben Eater's stuff.]
Mr. Eater is a talented teacher. His choice of topics and his execution of the demos are all...
Hello, I am currently in my final year of middle school and I will be entering high school next year either public or private. Afr that I am of to college, where I would get more experience with game design. I would like to be a programmer when I graduate but, to get there I need to learn and I...
Let us suppose we have an equation such that
$$N = \sum_{i=1}^N ix_i = x_1 + 2x_2 + 3x_3 + ...+Nx_N$$
and we also know that the solutions (i.e ##x_i##) ranges from ##\{0, N\}##.
For example, if ##N=4## we would have
$$x_1 + 2x_2 + 3x_3 + 4x_4 = 4$$
and ##x_1,x_2,x_3,x_4## will range from...
I am finishing up the whole book of the brief version of Gaddis from cover to cover. I want to get suggestion what is the next logical step. So far I thought about the two option:
1) I have the Gaddis complete book on C++ which have 5 more chapters mostly on data structure...
OK, since you guys are just talking amount yourselves, I want to ask a question about learning C++. I really want to expose my grand daughter to programming. She's 14 only. I was going to learn Python and work with her as it's supposed to be easier. But I am thinking, what if I work with her to...
Personally I don't know exactly why I want to learn programming. I am doing it anyway but my views on life are very dull and bland, I don't have any real interests besides basic human survival instincts which I think are where all my motivations stems from.
I am a young adult now but as a kid...
I am comfortable solving these types of problems, however I am having trouble setting up this problem and am unsure if I am doing this correctly so would someone be able to assist me?
I first wrote an equation for the people: 10x +8y +11z.
Then I made an equation for the flour: 4x + 12y + 8z...
Hey! :unsure:
At the cash register of a store we want to give change of worth $V$ cents of euro. Create and analyze a greedy algorithm that gives the change using the minimum number of coins.
Assume that the available coins are the euro subdivisions, i.e. $\{1, 2, 5, 10, 20, 50\}$ and that we...
R enables processing arrays by single statements rather than via loops, by having almost all commands able to apply to arrays as well as to scalars. I seem to recall, when I first learned it (a long while ago now) feeling that the intro texts, and user comments online, encouraged the practice of...
Hi everyone hope you are well, I would like to express what I have done for this question:
Proving and employing caratheodory theorem we can say that any point in polyhedron can be expressed as a convex combination of at most n+1 points (where n is the space dimension) in same polyhedron that...
There are plenty of physics apps around already but most seem to just be words and pictures. I haven't found many that offer good simulators for proper textbook physics. So I made one.
Pure Physicist - Google Play
The underlying physics 'engine' uses the as yet incomplete University Physics...
Right now I am learning coding on Java using IntelliJ IDEA. I have coded before on C++ and then Python, so I understand a little on Java. I'm not really sure how exactly I would change code so that it would read input from the terminal? Would I have to use a Scanner for this? I can post the...
I know this isn't really asking for advice but maybe someone has a comment or two...
As a young(er) man, while many of my friends fooled around doing drugs and (other) mindless entertainment, I was enough of a nerd to want to learn programming. Of course, I didn't spend my entire youth in...
So far, I almost finish chapter 10 in C++ book by Gaddis, have 3 to 4 more chapters to go. I want to start thinking about what is my next step to learn. Should I learn another language or move onto other parts of programming?
I have been thinking what is my interest, I am not into gaming at...
Hello, I am looking for something to simulate/visualize simple particles and classical physics equations, preferably moving in real time
Requirements:
-Able to turn matrices/functions into geometric representations(visualize sphere, visualize a cylinder etc.)
-Can do the classic ball bouncing...
Hi
I just want to learn a language, but I don't know which one is best for me. I did programming back in the 70s and early 80s, mainly in assembly language. I learned Fortran, Basic and Pascal before, but they are so old. I since changed my career to analog and RF electronic designs and had not...
I attached a file with some explanations of the variables in the code and the plot that I should get. I don't know what is wrong. Any help will appreciated.
from scipy.integrate import quad
import numpy as np
from scipy.special import gamma as gamma_function
from scipy.constants import e...
Summary:: I want to iterate a mathematical model using a programming language. The equation of the mathematical model is simple. The following is a brief explanation.
I want to iterate a mathematical model using a programming language. The equation of the mathematical model is simple. The...
Could anybody already working in Mathematica guide me? I want to learn how to program for physics, to be able to simple models, make graphs for equations, and finally able to solve problems especially Quantum mechanics. Where should i begin? I have never used such 'software?/language?' before. I...
Hey friends, I have had some time on my hand due to the COVID-19 pandemic and I hope everyone at PF is doing well. Thus, I have been learning some introductory electronics. This may be more of an opioniated question but, I am curious to hear from some ~experts~.
From my understanding, bare...
[Mod note: post moved to its own thread]
I have a question about statistic type of employment if you care to answer it.
My question is in statistics type careers does programming matter more or does mathematical knowledge of statistics matter more?
What I mean is that a statistic person...
Hello Everyone, I want to know about various types of errors that can occur during the execution of a computer program? I am learning programming skills right now and Can anyone know about it? Or anyone knows which types of questions have put in a programming based profile as a beginner point?
I oriented a magnetic dipole perpendicular to the hole (parallel to the ŷ ŷ y^ŷ direction) with one end at it's origin and I get the following pattern
I was really looking for something like this
As you can see I'm getting almost the exact opposite of what I want since I'm going for...
Just for fun I am building a spider bott, but I am sure there is a problem in the down load page as there is no progamming screen, I can give anyone the url if they care to look, any help appreciated.
Thanks Wolram.
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...