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
1 answer

TSQL procedural issue and advice

I am looking for advice on the best way to accomplish the following I have a table in SQL Server that holds downloaded data from an external system. I need to use it to update another database. Some records will be inserts and others will be…
Gork
  • 35
  • 1
  • 6
0
votes
1 answer

Verilog Error unexpected '=', expecting identifier or type_identifier

I'm building a test bench night now, and I'm not sure how should I connect several modules I built earlier. Here's the modules I used, all of them were tested and works properly. counter11bit_abc ctr2(ctr_enable, ctr_clr, clk_out, counter); …
SYM2RR
  • 31
  • 2
  • 8
0
votes
0 answers

Smooth Lower Resolution Voxel Noise

After reading the blog post at n0tch.tumblr.com/post/4231184692/terrain-generation-part-1. I was interested in Notch's solution by sampling at lower resolutions. I implemented this solution in my engine, but instantly noticed he didn't go into…
0
votes
2 answers

Foreach print table doesn't work

echo ""; foreach($array as $key => $value){ echo ""; echo ""; echo "
"; } echo "
" . $value . "".$url1.$key."
"; Why…
user5600054
0
votes
1 answer

Icosphere versus Cubemapped Sphere

I'm doing research on generating planets for a game engine I'm planning to code, and I was wondering what would be the best approach to procedurally generate a planet. (In terms of performance.) So far I've seen the Icosphere and Cubemapped Sphere…
0
votes
1 answer

"Terrain" Implementation for procedural generation

So I'm looking to implement the diamond square with the ability to step through the generation and not having it all generated at once. Something like in this video: https://www.youtube.com/watch?v=9HJKrctqIJI What's the best method for…
0
votes
1 answer

Hard Faced Geodesic Sphere

This is an image of the type of geometry I'm looking to create. I'm wanting to create an algorithm for a geodesic sphere like this. My thing is I need the faces of the hexagons & pentagons to be flat not spherical in nature like most algorithms I…
Chase Lewis
  • 163
  • 6
0
votes
1 answer

Procedurally place objects at runtime in Unity (C#)

I want my game to have stones, laying around on the terrain. The player can then pick up these stones. My terrain is pretty huge (around 5000x5000 in unity terms) though. I don't think it will be optimal to place hundreds (maby even thousands) of…
Mingan Beyleveld
  • 281
  • 2
  • 5
  • 19
0
votes
1 answer

Java 2D Sphere Scrolling

So I have this randomly generated set of tiles that is wrapped in a circle and I'm not really sure how to scroll it around the circle. Basically it's a side-view planet that is in 2D and needs to be wrapped and moving at a controllable rate to give…
0
votes
2 answers

Scoring system and Arrays

My program keeps adding up the score for each player, rather than keeping it separate for example if first player gets 3/5 and the second gets 2/5 the score display for the second player will be 5. I know the answer is probably very simple however…
gekon07
  • 5
  • 1
  • 3
0
votes
1 answer

Random tile-based map generation like Terraria in unity?

I would like to generate a map from tiles like in the games Terraria and Starbound using Unity and C# What I have done so far isn't working and I have no idea why... Any help/ideas/suggestions? using UnityEngine; using System.Collections; public…
0
votes
3 answers

Procedurally created decorator functions

My goal is to create a function that will procedurally generate a series of other functions within a class from serialized data. This is easy enough using dict , but... i would like for each function to be initialized with the @property decorator…
Pax
  • 237
  • 3
  • 11
0
votes
1 answer

Is this MySQLi safe?

I wanted to do the follow thing with MySQLi statements or PDO but I experienced a lot of errors on my server. Please check if the follow example to learn code I did myself will be okay for safety and if it is okay to use it. And hopefully the follow…
0
votes
2 answers

Strange 3d Procedural generation output

So for the past several days, I have been working on making a procedural generation program written in java, however whenever I make the output, it comes out with a washed, paper like texture. I don't understand why it's doing this, and while it's…
0
votes
1 answer

SQLite Flow Constructs in SQL?

With MSSQL, I can mix in case, if...then, and while constructs in my SQL code. Is anything similar available for SQLite? I have not seen anything on "mixing procedurally" with SQLite, anywhere. Thanks.
Snowy
  • 5,942
  • 19
  • 65
  • 119