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
0
votes
2 answers

Using Perlin noise to generate a 2d tile map

I looked all over the internet and researched Perlin noise, however, I am still confused. I am using java and libgdx. I have got a Perlin class to work and generate noise but I'm not sure if the values its giving are correct. How do I check it…
user2489897
  • 77
  • 1
  • 1
  • 9
0
votes
1 answer

Procedural texturing in SFML

I have a problem with trying to make procedural textures in SFML i have this code sf::Texture* CreateTexture(int w, int h){ sf::Image tempImage; sf::Texture* Tex = new sf::Texture(); Tex->create(w,h); sf::Uint8 *pixelData =…
Slymodi
  • 185
  • 3
  • 13
0
votes
1 answer

XNA 4.0 Disappearing Objects - Effects, light (?)

XNA 4.0 - Project link availible below. Problem: When I move away my camera, planets seem to slowly vanish. Looks as if the light fades away or something. I tried changing far plane and near plane to different values and it doesnt change…
Szlose
  • 43
  • 6
0
votes
1 answer

I can't get result from mysqli query with PHP (converted from mysql_result)

I have a PHP function that I am converting from using the mysql extension to the mysqli extension. Everything is going okay, until here. I previously used a mysql_result to get a single piece of data. There is no direct equivalent in mysqli, so I…
Dwev
  • 163
  • 1
  • 5
0
votes
1 answer

How to revert changes with procedural memory?

Is it possible to store all changes of a set by using some means of logical paths - of the changes as they occur - such that one may revert the changes by essentially "stepping back"? I assume that something would need to map the changes as they…
user784446
  • 489
  • 1
  • 9
  • 22
0
votes
1 answer

SQL Procedure - Using a parameter as an operator

I have a procedure which I am trying to get to select the results based on the value of a measure being above a stated parameter. However, I would like the greater than to be changable to equals or less than. I have tried substituting the > for a…
-1
votes
1 answer

How can I apply different normal map textures for different faces of a minecraft-like cubic terrain blocks in Unity?

I'm making a procedurally generated minecraft-like voxel terrain in Unity. Mesh generation and albedo channel texturing is flawless; however I need to apply different normal map textures for different cube faces regarding whether they're neighboring…
-1
votes
2 answers

Postgresql function for passing arguments dynamically

I created a function abcd_insert() which inserts data into table abcd, which has 8 columns. The code inside the function looks similar to below : BEGIN INSERT INTO abcd VALUES ( x , y , select…
Random Guy
  • 51
  • 3
  • 12
-1
votes
1 answer

How to make procedural world creation like Breakneck in unity

I want to make a game like breakneck with unity I am a intermediate developer with unity3d One thing that I stuck with is world creation like this game somebody explain and help me creating this . Thanks
Rahul Rajput
  • 298
  • 4
  • 11
-1
votes
1 answer

Procedural Road Generation, Unity

Im developing 2d isometric game. You driving car on city, thats all. The issue is generating random maps with connected roads. I would like to write script - i think i will be able to - but i cant find an idea for alghoritm itself. Lets say i have…
-1
votes
3 answers

Difference between procedural and functional languages?

I was asked this question in an interview recently. I could not get the right answer. When you repeatedly call a function in a procedural language(like C) and a functional language(like haskell) with same arguments in which language you might get a…
-1
votes
2 answers

Object Oriented Programming vs Procedural Programming

Can we use Procedural Programming to solve any problem that can be solved using Object Oriented Programming Concepts? My problem is are there some particular problems which can only be solved using OOP concepts. Please help me understand this.
Rajind Ruparathna
  • 2,215
  • 24
  • 55
-1
votes
1 answer

Unity3d C# -> generating a perlin noise texture with layers

I am trying to generate a noise texture with the LibNoise library using perlin and some fractal to create 6 layers that i can add together in one image. I have problems that i can't seem to fix: (3 problems that show in the debug log.) 1) The image…
Po0ka
  • 107
  • 3
  • 9
-2
votes
1 answer

For loop not starting from zero

I am trying to implement a biomes system into a procedural terrain generation system. I made it so that the height multiplier of each terrain chunk changes based on which biome it is, but that results in the player being able to go under the map…
-2
votes
1 answer

Do Procedural languages have functions that return values?

I used to code in VB.NET at College (UK College) where there were two ways to encapsulate code: via a method and a function. A method would just execute some code; a function on the other hand had the advantage of returning a value as well. Now I'm…
Rehaan
  • 119
  • 1
  • 10
1 2 3
12
13