Questions tagged [procedural]

Procedural programming is a term used to denote the way in which a computer programmer writes a program. This method of developing software, which also is called an application, revolves around keeping code as concise as possible. It also focuses on a very specific end result to be achieved. When it is mandatory that a program complete certain steps to achieve specific results, the code is said to have been written according to procedural programming.

Procedural programming is not always the preferred method of coding applications. Software that is highly complex can require literally thousands of lines of code, making it somewhat more difficult for a team of people to work with it. Some programmers hold the opinion that extremely large applications can become difficult to maintain even by one developer.

Some people wrongly believe that it is impossible to write very large or complex software in a procedural programming language. Certain programs might be more easily written using Object Oriented Programming (OOP), but this does not mean that they cannot be developed procedurally. The Linux kernel, which is the core of an open-source operating system, is written using procedural programming. Other major applications such as the Apache server, the Drupal content management system and Samba, are all written in this manner. These applications are large and are considered to be complex by the overwhelming majority of programmers.

Among the procedural programming languages in existence are C, Fortran and Python. Many important applications and utilities have been coded in such languages. For example, Anaconda, the installer for Fedora Linux, is written in Python, as are various software managements tools.

Imperative programming is another term used to signify this type of development.

187 questions
1
vote
0 answers

How to plot a circular X Y graph using nested for loops

I'm trying to plot a circular X/Y graph using 2 for loops, but can't figure out the algorithm to make it circular instead of squared. I currently have 2 nested for loops but this makes a 5 by 5 square. Is there anything I can add that would make the…
1
vote
0 answers

How to set material properties with glMaterialfv() when drawing a shape with glDrawArrays() in OpenGL

I'm calling glMaterialfv() before glDrawArrays() and then I set everything back to default values but it doesn't seem to have any effect on my material. I know that glMaterial() should be called between glBegin() and glEnd() so how do I do it…
matzar
  • 287
  • 2
  • 19
1
vote
2 answers

How does typedef work in place of struct/class for Procedural c++?

I have to build a program(Procedural C++) that has two data types. One called Elem that is an element of a vector(single dimensional array). and One called Vector that contains an unsigned int for the size of the array and also the array of Elem's…
Tremors
  • 133
  • 1
  • 13
1
vote
1 answer

which procedural block executed first, in SystemVerilog?

If I have both alwas_comb and always_ff in a single module, which one executed first?. for example, I have seen this code in a book but I am confused about the functionality. for example, if WE=0 what will be the value of Qout? module SyncRAM…
user42037
  • 39
  • 7
1
vote
1 answer

what is no-oo mvc in php?

what is no-oo mvc in php? If it is possible, give an example. If not, why?
wiiman
  • 31
  • 2
1
vote
2 answers

Why is my perlin noise so.. noisy?

I'm having trouble with my perlin noise implementation. For some reason, it just seems too noisy. I don't see how I could use this for a game terrain. Here is a screenshot: Perlin Noise Problem Here is my generation code: double persistence =…
Dooskington
  • 499
  • 1
  • 4
  • 11
1
vote
1 answer

Procedural Planet Spherical Mesh Deformation C# Unity 5

I've been company many of question people post and all the answers you guys give, followed several tutorials and since all the links on my google search are marked as “already visited” I’ve decided to put my pride aside and post a question for…
1
vote
1 answer

Lambda Expressions vs Procedural-styled Functions

I just don't understand the power of the lambda expression. Python def sum(x, y): return x + y Scheme (lambda (x y) (+ x y)) Why is one so different from the other besides the lambda expression not being given a formal name? It seems like you…
duskamo
  • 73
  • 2
1
vote
2 answers

Is it possible to design and build a procedural (imperative) based application successfully?

Can you provide examples of applications today that are procedural and maintain a high level of integrity and efficiency? Are there any books, tutorials or links that provide examples of how to successfully build and maintain an imperative system?…
user4903
1
vote
1 answer

Error report: ORA-06550: line 7, column 134: PL/SQL: ORA-00913: too many values ORA-06550: line 7,

> set serveroutput on > set autoprint on; > declare > v_first_name employees.first_name%type; > v_street_address locations.street_address%type; > v_city locations.city%type; > v_postal_code…
1
vote
2 answers

Procedural terrain texture with lines and zones

I am currently making a program to procedurally generate 2d terrain maps, with different technics such as perlin noise, simplex, voronoi, fractal noise, etc. on a size-defined image to be able to use it in my games requiring a 2d terrain. I've come…
Po0ka
  • 107
  • 3
  • 9
1
vote
1 answer

directx procedural programming

Well I'm learning DX11 and I hope someday I can start a simple 3D engine. I'm following tutorial series and I realised that I have no need to create any class to mantain my code (the tutorials also uses this procedural approach but I don't…
German
  • 139
  • 6
1
vote
1 answer

Breaking procedural style from actionPerformed()

I have a little application that opens a fileChooser when clicking a button and, after choosing a file, works with the contents of it. So, let's say we have this pseudo-code: File file = new File(); JFileChooser fileChooser = new…
1
vote
1 answer

Procedural Hash Function

I am wondering what is the best hash function for procedural textures, especially perlin noise. I know about the PRNG posted on this page, but this claims that it is not a good PRNG Thanks
adk
  • 4,479
  • 9
  • 36
  • 38
0
votes
1 answer

How do you create 2D vines procedurally for a game?

For a game I am making I want to create 2D vines and vine like structures procedurally. Is there some paper or code snippet that someone can point me to? Googling results in procedural trees which have straight spiky branches, but I need to create…
Djokovic
  • 971
  • 2
  • 8
  • 13