A list of puns related to "Procedural Programming Languages"
Need to grasp the OOP concepts as I intend to learn Javascript and PHP to enhance salary.
Skilled at C and Pascal, both procedural of course.
Thank you fellow coders, for helping out.
Only one is correct, According to him.
Also while we're at it, a * b * c is considered processing, Right?
It seems that nearly all modern languages which get developed spend a large amount work developing a robust object system and go to great lengths to advertise their OO bona fides. I've been interested in this minority view that the OO paradigm is actually a mistake, and that a reconceptualization of robust procedural programming is in order. Brain Will has a video expressing this minority view for instance (https://www.youtube.com/watch?v=QM1iUe6IofM). First off, let me be clear: I don't want to debate the merits of OO vs procedural programming. I'm genuinely agnostic here. If being anti-OO is heresy, then let's say I'm just anthropologically interested in the what the heretics are up to.
What I'm wondering is simply this. Are there languages which try to adopt cutting edge thinking on language design and powerful tooling which are explicitly procedural?
More concretely, they make little to no concession towards the creation of classes or objects or low level encapsulation, and instead try to push the boundaries of wrangling procedural functions and the organization of code hierarchy as a set of operations on separate globally or locally scoped data.
I know that there are functional languages which sort of do this, but are there languages which are explicitly designed to be agnostic or to encourage functional or imperative styles base on the use case?
As far as I know, these are the definitions of object-oriented and procedural programs:
Object-oriented-Where a programming task is broken down into objects, and the desired task is achieved by altering the objects' state.
Procedural: Where a programming task is solved by focusing on the order of operations in a program.
That being said, if you use an OOP language such as Java and create an application consisting of just variables/methods, and solve your problem by altering the order of operations, are you still doing OOP or is it just procedural at that point?
Sorry if this is off-topic...
Wikipedia article on Logic Programming for the uninformed
With the recent proliferation of doge programming languages, what's one more? I feel that logic programming would suit doge very well because it's simple and the amazing things people do with it make you go "wow!"
Programmer shibes, what do you think? What would this language look like and work like? What features would it have? Would it be entirely silly or somewhat serious?
It seems like the two most popular choices for pedagogy in schools today are functional programming (via Scheme) and object oriented programming (via C++ or Java). What do you think is the best paradigm in which to teach students and why?
en.wikipedia.org/wiki/Imperative_programming#Imperative.2C_procedural.2C_and_declarative_programming
All I know/understand is that c++ is a OOP language...
I can't program much yet but I have a dream/idea for a game I want to make one day that has A LOT of procedural generation, so I thought might aswell learn the best/fastest programing language for that now so I don't learn one that is slow or not good with godot or random generation and have to learn a new language, so what language, or maybe languages, should I learn?
Sup everyone? So recently I've been thinking a lot about learning procedural art, but I have literally zero experience with the topic, the closest that I've ever been to it was using perlin noise to generate random terrain in 2d in unity.
With that being said, which IDE and/or language would you recommend me to start out with?
With procedural programming, it seems like you're very focused on some sort of "domino effect." When one thing happens and completes, the next thing should begin. When that one is done, the next thing is suppose to happen. You think in terms of one thing happening after the other action just took place.
Object oriented programming seems to be on the basis of a lot of interaction with other entities in the program. Game development comes to mind like Call of Duty.
Now what is it about functional programming that seems to be the one thing it excels at. I get that concurrency and parallelism is great for functional programming. It also seems to work really well with Object Oriented in that it gives you some information regarding the object. Outside of that, I can't really seem to figure out when functional programming seems to shine.
Suppose I have a class called Wire. Each wire is identified by 2 ends.
The current class gives me lots of details about wires, but I need to connect the wires for some calculations.
I have connected the wires using procedural programming in my main function, but I don't think this is best. (just a guess, I don't know what is best)
Upon watching youtube videos I can use Abstraction(new class that uses the old class?), I can add a new method to the Wire class that takes an external input I generate after iterating through all instances of the Wire class, or I can leave everything in the main function.
This is somewhat a debate in my group with an ambiguous solution. Can anyone help me better understand which follows OOP practices or if a calculation is best done in procedural programming? I might use this method/class later, its too early to know.
In this post I will share to you, a preview of a βbigβ programming language project I have been working on. You can run all examples below at quantleaf.com
I have for a long time had the idea that it should be possible to create far βsimplerβ programming languages if we allow the programs to have uncertainties just like natural languages have. What this technically means is that for one sequence of characters there should be many possible programs that could arise with different probabilities, rather than one program with 100% probability.
The first consequence of this, is that it is possible to make a language that both could βabsorbβ Java and Python syntax for example. Here are a few, acceptable ways you can calculate fibonacci numbers.
(Compact)
fib(n) = if n <= 1 n else fib(n-1) + fib(n-2)
print fib(8)
(Python like)
fib(n)
if n <= 1
return n
fib(n-1) + fib(n-2)
print fib(8)
(Java like)
fib(n)
{
if (n <= 1)
{
return n
}
return fib(n-1) + fib(n-2)
}
print(fib(8))
(Swedish syntax + Python Like)
fib(n)
om n <= 1
returnera n
annars
fib(n-1) + fib(n-2)
skriv ut fib(8)
In the last example, you can see that we use Swedish syntax. The language can today be written in both English and Swedish, but can/will in the future support many more simultaneously.
Another consequence of the idea of an ambiguous programming language is that variable and function names can contain spaces (!) and special symbols. Strings does not have to have quotations symbols if the content of the string is "meaningless"
See this regression example.
"The data to fit our line to"
x = [1,2,3,4,5,6,7]
y = [3,5,10,5,9,14,18]
"Defining the line"
f(x,k,m) = x*k + m
"Define the distance between the line and data points as a function of k and m"
distance from data(k,m) = (f(x,k,m) - y)^2
"Find k and m that minimizes this distance"
result = minimize distance from data
"Show the result from the optimization"
print result
"Visualize data and the line"
estimated k = result.parameters.k
estimated m = result.parameters.m
scatter plot(x,y, label = Observations)
and plot(x,f(x,estimated k,estimated m), label = The line)
Some things to consider from the example above: The langauge have a built in optimizer (which also can h
... keep reading on reddit β‘I'm asking this question out of curiosity and will to widen my horizons.
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.