Skip to main content

Questions tagged [procedural]

Procedural programming is a design methodology in which large programs are broken down into procedures or subroutines.

Filter by
Sorted by
Tagged with
4 votes
5 answers
507 views

I'm working on an application and have encountered two different approaches for organizing business logic. There's a general consensus that application rules should be handled in higher layers, so I ...
Azuos's user avatar
  • 49
2 votes
2 answers
148 views

Lets say we have an Webserver-Framework and a Database-Framework, and now i want to configure that Webserver and the Database, then it could look like the following class Start { public static ...
Robin Kreuzer 2's user avatar
-1 votes
2 answers
190 views

So now i have a really concrete example; its highly related to that question here: Tell one, but ask the others? the important statements there are: In the comment section https://softwareengineering....
Robin Kreuzer's user avatar
0 votes
3 answers
528 views

Consider we have three classes which want to collaborate, then, where is the behaviour? I guess it can only be in one of the three classes or in a fourth one acting than as a procuedural connector-...
Robin Kreuzer's user avatar
2 votes
2 answers
212 views

a short question: class ItemActionObject { private final Object moreParameters; private final Object otherDependencies; private final Item item; public ItemActionObject(Item item, ...
Robin Kreuzer's user avatar
2 votes
2 answers
174 views

A while ago, I saw a Stack Overflow answer (I can't seem to find it now) that says functions and methods have different goals. A method is to change something within the instance, while a function is ...
Alex's user avatar
  • 147
0 votes
1 answer
184 views

TL;DR Why is the UNIX / functional style of composing and injecting smaller functions so much rarer than the Beck/Fowler/Bob refactor-to-objects style when it comes to writing maintainable, "...
user avatar
4 votes
0 answers
485 views

Background The high level overview of my situation is described here. I am breaking it apart into smaller, specific questions, such as this one, regarding extensive use of global variables in a ...
ximiki's user avatar
  • 405
1 vote
2 answers
479 views

Suppose you have a client-server architecture structured with a Client class that asynchronously implements the Send() and Receive() functions. You also have a base Message class and several other ...
m.iurato's user avatar
4 votes
3 answers
838 views

In Robert Martin's seminal 1996 article "The Open-Closed Principle" he presents an example in C which does not follow the principle (the DrawAllShapes() method is not closed for modification): enum ...
Ken's user avatar
  • 277
-3 votes
3 answers
1k views

I'm a newbie. Please give me a detailed (very detailed one) about these two types of programming that even I, a beginner, could understand. Their core differences, relevant things that I must remember,...
nvim_'s user avatar
  • 11
3 votes
2 answers
711 views

I'm currently developing a controller for an industrial application which takes data inputs from various sensors and interfaces (ethernet, serial, etc.), does some minimal processing, and adjusts ...
Dragonsheep's user avatar
-2 votes
2 answers
441 views

C had Procedural Paradigm, then C++ came with OOPS and success of JAVA make it best suitable Programming Paradigm. Now, Look at recent trends, Kotlin, Swift these languages are not like JAVA these ...
rks's user avatar
  • 105
-7 votes
1 answer
439 views

I want to know that whether storage is an issue with respect to current hardware and software market when we talk about the large size of C++ programs?? Because in certain conditions we have to choose ...
Tom 's user avatar
  • 1
1 vote
3 answers
3k views

It seems the general consensus for unit testing classes is to test your object through its public interface only. So if you wanted to test the removeElement method on a LinkedList class you'd need to ...
user avatar
3 votes
5 answers
997 views

I wish to write a chess AI which simulates the way I think over the board, using C++. My focus is on writing the algorithms for choosing moves (decision making), not defining the board and pieces. To ...
Seeking_Truth's user avatar
4 votes
1 answer
243 views

My department is about to make some new hires. They are likely to be a) junior or b) more experienced that myself. This year I have helped some C engineers transition to C# and observed some ...
Gusdor's user avatar
  • 748
0 votes
1 answer
278 views

My job and my personal interests often have me writing parsing code, that is, code that converts from an input string written in a given formal language to a tree of model objects. I come from a C ...
eepp's user avatar
  • 117
1 vote
4 answers
554 views

I am working as SAP developer, where in many cases you have traditional requirements to applications (reports): Read in some data from the database or a file Do some magic with that data, e.g. do ...
Matthias's user avatar
  • 121
1 vote
1 answer
202 views

I am writing a program using a procedural style. At most I have some modules where the logic is present (one to retrieve data from, one to display the info, one with the saving logic, etc.), but my ...
Vito De Tullio's user avatar
10 votes
2 answers
514 views

There is a portion of our codebase written in the following style: // IScheduledTask.cs public interface IScheduledTask { string TaskName { get; set; } int TaskPriority { get; set; } List&...
walpen's user avatar
  • 3,241
6 votes
1 answer
763 views

TL;DR. Writing procedural code within a DB transaction. How can I improve design of the code so it's better testable? In my application I have a service object that perform multiple things within the ...
oldhomemovie's user avatar
14 votes
4 answers
8k views

I'm an electrical engineer and I don't know what the hell I'm doing. Please save the future maintainers of my code. Recently I've been working on a number of smaller programs (in C#) whose ...
Lombard's user avatar
  • 251
12 votes
8 answers
6k views

I have spent the vast majority of my programming career using Java and very OO based C++. I am really interested in learning to think more procedurally, so I have been starting to do some practice ...
JParrilla's user avatar
  • 691
3 votes
1 answer
9k views

I have a PHP application (a web service). It consists of files grouped in directories by theme like :      /customer         /search.php with this example content : Auth::authenticate($options); $db =...
Lorenz Meyer's user avatar
2 votes
3 answers
1k views

One of the things I like about the new Apple language Swift is that it combines procedural programming with algebraic data types. What other languages do this?
John DeHope's user avatar
8 votes
2 answers
19k views

Now I'm only a novice programmer, but what my friends that are studying programming tell me is that recursive code is a good thing, it leads to less code duplication and it looks more elegant. Now ...
Overly Excessive's user avatar
0 votes
1 answer
583 views

I have designed and implemented, for my final year in college, an autonomous robot with Arduino board microcontroller. The robot wanders around an area, avoids obstacles and tries to detect intruders. ...
alexca's user avatar
  • 3
4 votes
2 answers
3k views

Procedural programming means coding the application is a series of tasks. Do A, then do B, then Do C. And often wrap these tasks in procedures or functions that can be easily called and run several ...
Aviv Cohn's user avatar
  • 21.6k
33 votes
4 answers
14k views

I am programming in Java in a very object-oriented (OO) style. OOP comes very intuitively to me, but I have very little knowledge about other kinds of programming. What exactly is procedural ...
Aviv Cohn's user avatar
  • 21.6k
3 votes
3 answers
10k views

Assuming I have an API to consume that uses JSON as a data transmission method, what is an ideal way to decode the JSON returned by each API resource? For example, in Java I'd create a class for each ...
Abdulaziz's user avatar
  • 131
25 votes
7 answers
7k views

Similar: How was programming done 20 years ago? OOP is quite fashionable nowadays, having its roots in Simula 67 in the 1960s, and later made popular by Smalltalk and C++. We have DRY, SOLID, many ...
Vorac's user avatar
  • 7,189
2 votes
4 answers
343 views

Most of my programming experience is in OOP where I have fully embraced the concepts thereof including encapsulation. Now I'm back to structured programming where I have a tendency to logicaly ...
Chad Harrison's user avatar
9 votes
6 answers
9k views

I have this personal rule to start all function/method names with a verb. My verb of choice for functions or methods that get a value based on some data structure or object is get. I'm wondering if ...
futlib's user avatar
  • 2,205
4 votes
3 answers
2k views

I learned to code in OO languages. I've always been interested in design patterns, clean code, etc., etc. - you know the type. Now at work I'm using a BASIC dialect. Given modern programming values, ...
Tom Tom's user avatar
  • 419
5 votes
4 answers
2k views

First off, I do not have anything against OO programming (I'd be mad if i believed so). But I was thinking on some sort of procedural MVC pattern with PHP; let me explain better. As we all know, ...
john smith's user avatar
98 votes
16 answers
33k views

One feature I miss in from functional languages is the idea that operators are just functions, so adding a custom operator is often as simple as adding a function. Many procedural languages allow ...
5 votes
5 answers
3k views

Today, I got into an argument about the term "procedural generation". My point was that its different from "classic" random generation in that procedural generation is based on a more mathematical, ...
U-No-Poo's user avatar
  • 153
13 votes
5 answers
8k views

On a current project, the powers that be want to have unit testing incorporated into our development cycle to avoid the constant amount of bugs that seem to seep into our code. The problem is that the ...
canadiancreed's user avatar
4 votes
1 answer
950 views

We have an app that's currently only got about 120 users. The userbase will probably grow by 50% over the next 12 months - but we're going to have to separate storage etc. because we're looking at ...
Meezaan-ud-Din's user avatar
6 votes
6 answers
3k views

I've seen a number of question asking whether someone should learn procedural or OO first. But is this even possible? Can you learn OO programming without first having an understanding of procedural ...
Winston Ewert's user avatar
6 votes
2 answers
8k views

I'm a C# developer, but I also know Java, JavaScript, XSLT, a little of C and Perl, and some other that I may have forgotten. Still, the paradigm I'm most familiar with is OOP. I have always thought ...
Raphael's user avatar
  • 2,027
82 votes
12 answers
53k views

I'm trying to understand the difference between procedural languages like C and object-oriented languages like C++. I've never used C++, but I've been discussing with my friends on how to ...
niko's user avatar
  • 2,119
116 votes
4 answers
80k views

By researching around (books, Wikipedia, similar questions on SE, etc) I came to understand that Imperative programming is one of the major programming paradigms, where you describe a series of ...
Daniel Scocco's user avatar
115 votes
13 answers
66k views

It seems that C has its own quasi-objects such as 'structs' that can be considered as objects (in the high-level way that we would normally think). And also, C files themselves are basically separate ...
Dark Templar's user avatar
  • 6,323