declarative-programming

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...

How is Java an 'imperative' programming language and not a 'declarative' one?

Specially in comparison to C/C++ (which are declarative), how is Java imperative? ...

what is the difference between declarative and imperative programming

I have been searching the web looking for a definition for declarative and imperative programming that would shed some light for me. However the language used at some of the resources that I have found is daunting - for instance at wikipedia. Does any one have a real world example that they could show me that might bring some perspective...

What are the Open Source alternatives to WPF/XAML?

If we've learned anything from HTML/CSS it's that, declarative languages (like XML) do a good job of describing User Interfaces because: It's easy to build code preprocessors that can template the code effectively. The code is in a well defined well structured (ideally) format so it's easy to parse. The technology to effectively parse ...

What, if any, is wrong with this approach to declarative I/O

I'm not sure exactly how much this falls under 'programming' opposed to 'program language design'. But the issue is this: Say, for sake of simplicity we have two 'special' lists/arrays/vectors/whatever we just call 'ports' for simplicity, one called stdIn and another stdOut. These conceptually represent respectively All the user input...

ASP.NET is based on declarative programming?

Recently I have noticed about a subtle restriction in GridView's paging mechanism. Efficient paging, loading just requested page of data, is only possible with using DataSource controls like ObjectDataSource that means declarative data binding and is impossible when not using a data source and just from codebehind (MSDN describes it here...