22 questions
0 votes
2 answers
83 views
Have a routine handle special cases or split the code in n routines, one for each case?
I wonder what the best practice is for handling optional calls, special cases etc. within procedural code (PL/SQL without OOP). We have a program with lots of configuration and things that will or ...
1 vote
1 answer
605 views
Structured Programming vs. Object Oriented Programming
In one class of my Structured programming course, the teacher told us that there are 3 way to decompose the problem to structured programming: Functional decomposition Algorithmic decomposition ...
1 vote
0 answers
23 views
Objects into functions
I have a question that my teacher asked me and I could not find the answer, I am still searching in pdf for public institutions how mit (which are public), utn or related, if anyone can answer me or ...
-1 votes
1 answer
913 views
What is the difference between structured and unstructured programming?
I think structured programming is such a programming which can be divided into some module to make a program easy. (If I am wrong then kindly inform me make the correction of the concept) But C ...
0 votes
0 answers
34 views
Cicles aspects that improves / decreases performance [duplicate]
I have been doing some performance checks on mutable and inmutable lists. I have created following test. The test is very simple and I would like to have a notion on what aspects should I take in ...
-2 votes
1 answer
203 views
Convert Readable Number to Integer in Java (Structured Programming)
Please help I got a task from my structured programming lecture to convert integer number to readable number and convert readable number to integer. for example : input 499 output four hundred ...
-1 votes
1 answer
131 views
Is it acceptable nowadays to use PHP without any framework or following MVC pattern? [closed]
Further elaborating on the question, I am a freelance developer, I have been adopting structured PHP for years, and now every time I work on a project I feel that I'm doing something wrong, or not ...
1 vote
1 answer
128 views
Is there any programming language which has a for-while loop?
This is what I mean by a for-while loop: for (<init>; <update>) <body> while (<test>); It roughly translates to: <init> <body> while (<test>) { <...
1 vote
3 answers
189 views
What are some good approaches to organizing CSS files so that they are easy to maintain?
I'm not a pro. I have my business web site that has grown from 5 files to 300 files. My css file is now about 800 lines long, and it's getting difficult to manage. I've got a certain amount of ...
-1 votes
1 answer
983 views
Unit Testing NON-Object oriented programming [closed]
We have code which was written using Non-Object oriented programming and we would like to do unit testings. I've seen easy Unit Testing over Object Oriented Code in Visual Studio but I've not found a ...
0 votes
1 answer
677 views
What is the difference between Structured Programming and Object Oriented programming?
What is the difference between structured programming and object oriented programming?
1 vote
1 answer
2k views
Fortran Modules - Variable declarations conflict in module with main program
I have a FORTRAN 95 code where, in the main program, these variables are declared: integer :: i real(8) :: dx real(8), allocatable :: X(:), Y(:), Z(:) The following ...
1 vote
1 answer
104 views
Calling Static Method of Class WITHOUT classname, PHP
Maybe it's foolish question, And I want to implement some utils functions using OOP in PHP, instead SP (Strudtured Programming), but with uses like SP. An example: class A { public static function ...
5 votes
0 answers
193 views
Why not "break break"? [closed]
Situation: You have a nested loop, and you need to break out of it. Let's take this classic example (classic because it came from Goto Considered Harmful Considered Harmful): Given a 2-dimensional ...
0 votes
1 answer
70 views
Useful to re-write the complete project? Get an idea of building an homepage
I have some problems and I hope you will understand me and what I want and I hope you can help me. So, I started to program a project for many moths ago. I want to start a little gaming community. I ...