procedural-programming

What is the difference between procedural programming and functional programming?

I've read the Wikipedia articles for both procedural programming and functional programming, but I'm still slightly confused. Could someone boil it down to the core? ...

Do the concepts in Accelerated C++ Practical Programming by Example still hold up today?

I was recommeded a book called: Accelerated C++ Practical Programming by Example by Andrew Koenig and Barbara E. Moo Addison-Wesley, 2000 ISBN 0-201-70353-X The basis of this book is that Object Oriented Programming is highly wasteful memory-wise, and that most source-code should not be written this way, rather that you should use ...

Transferable skills (to SQL)

In your experience, how long does it take for a professional procedural coder to become a professional SQL coder? And what's the best way to make the transition? (Disregarding database design skills). What percent of programmers are professional-level at both? a. Self evaluation. b. Unbiased evaluation. (In my experience, one problem i...

Development Cost of Procedural Programming vs. OOP?

I come from a fairly strong OO background, the benefits of OOD & OOP are second nature to me, but recently I've found myself in a development shop tied to a procedural programming habits. The implementation language has some OOP features, they are not used in optimal ways. Update: everyone seems to have an opinion about this topic, as ...

Does procedural programming have any advantages over OOP?

[Edit:] Earlier I asked this as a perhaps poorly-framed question about when to use OOP versus when to use procedural programming - some responses implied I was asking for help understanding OOP. On the contrary, I have used OOP a lot but want to know when to use a procedural approach. Judging by the responses, I take it that there is a f...

What's the difference between a procedural program and an object oriented program?

I'm fairly new to programming but I've been reading some interesting discussions on StackOverflow about various programming approaches. I'm still not 100% clear on what the difference is between procedural programming and object oriented programming. It sounds like object oriented programming still uses procedures (methods) but everythin...

Struggling with C coming from Object Oriented land?

When I am presented with programming problems, I naturally start breaking them up into logical objects in my head. Who has what responsibility, who owns what, who derives from what, etc. I am struggling with C. I just don't get how to do things in a Procedural Language. Can an experienced C programmer help explain how I should thin...

Should I design my software according to a paradigm or according to the tools the language supplies?

I will explain the question by example: In zend framework, when you want to add a functionality to the view class, you can use what is called a Helper class. A helper class is a class that has one method (Same as name of class) that becomes available in each of the views (by reflection the helper method is wrapped by a view method) It is...

Looking for example program written in different languages

As a way to understand the differences between OOP and Procedural languages I was looking for a sample program written in C and C++ or C# or Java. I just want to see the different approaches to the same problem to help me get a sense of the real differences. Does anyone know where I can find a tutorial like this? ...

Are side effects a good thing?

I feel the term rather pejorative. Hence, I am flabbergasted by the two sentences in Wikipedia: Imperative programming is known for employing side effects to make programs function. Functional programming in turn is known for its minimization of side effects. [1] Since I am somewhat Math-biased, the latter sounds excellen...

Information on L-Systems

Hey Stack Overflow folks, I am about to start a project for university to build a procedural city for a pre existing project. I was wondering if any of you have had any experience coding L-Systems before and know a good place for me to start out. I have done a bit of work before using procedural methods and Perlin Noise and fBm so i get ...

Do high-level programming languages tend to be object-oriented while low-level languages are procedurally oriented?

I'm just getting a bit confused about all the language types out there. What's the difference - if there is one - between the high level / low level languages distinction compared to the object-oriented / procedural distinction? A lot of the analogies seem similar. ...

At what point does LINQ become too terse?

At what point does LINQ become too terse and procedural techniques resorted to? ...

How do I handle combinations of behaviours?

I am considering the problem of validating real numbers of various formats, because this is very similar to a problem I am facing in design. Real numbers may come in different combinations of formats, for example: 1. with/without sign at the front 2. with/without a decimal point (if no decimal point, then perhaps number of decimals can ...

Converting Procedural PHP to OOP PHP

Hi, is there any easy way to convert Procedural PHP to OOP PHP. I've a web application, and currently, only the login system is in OOP. Thanks :) ...

windows programming without a OOP language

Which language ( that is not oop ) should I consider using for writing gui windows apps ? I guess the obvious answers are visual basic and C , but am wondering if I should look into anything else am not saying OOP sucks or anything. I just don't.. not using it. The END ty Edit: I just want a language that has a non oop paradigm opti...

Class usage in Python

I write a lot of scripts in Python to analyze and plot experimental data as well as write simple simulations to test how theories fit the data. The scripts tend to be very procedural; calculate some property, calculate some other property, plot properties, analyze plot... Rather than just writing a procedure, would there be an benefits...

simple explanation PHP OOP vs Procedural?

Hi, I would like to learn PHP and want to get an Idea about OOP and Procedural. I read some other blogs and tutorials about OOP vs Procedural but I still can't understand the approach. OOP vs Procedural Which I should learn? Whats the difference in code? what are the effects? How can a PHP framework help in OOP aproach? (I would lik...

Difference between Declarative and Procedural Programming ?

Hi everyone, During one of my interviews, they asked me the difference between those two (Declarative Programming and Procedural Programming) programming type and the problem is I couldn't give right answer they wanted. So could you please tell me what the difference between them with examples. Thank you very much in advance. Your a...

Is it ever justified to write a fairly large, database-centric PHP app procedurally and without MVC?

Sorry for the rather subjective question, but I was hoping to get an opinion from someone more experienced than myself on this. I'm pretty far into an ajax-driven PHP application and, while I have pretty good separation between markup and behavior on the client side, my PHP is slowly becoming a bit of a mess. I'm doing alright so far b...