Have you ever structured your source code based on your user interface parts? For example if your UI consists of:
GridView for showing some properties
3D rendering panel
panel for choosing active tools
, then you name and group your variables and functions more or less in the following way:
class Application
{
string Properties...
Hi,
I was thinking about how our society incentivizes behaviors by a collection of free individuals, so that the work of those individuals fulfils the requirements of the society as a whole. For example, people contribute by working, earn money, and use that money to gain a fair share of the contributions of others. It works for the mos...
This somewhat parallels a semi-frequent discussion on /.. What languages are recommended for someone to learn, based on their concepts, to become a programmer; for instance, many on /. note how object oriented programming seems to them to have 'corrupted' the minds of programmers, and that yes it's a great tool, but only if used appropri...
I'm an experienced C#, ASP.Net, and Flash ActionScript developer. I'd I really like to keep learning new and exciting things. The upside is right now it seems like there are a lot of very interesting things to learn. The downside is that as a new parent, my time is limited. So I'd like to stick to learning something that might help me m...
Hey. I remember reading somewhere about a programimng paradigm that has very tough restrictions about OO. It forbids nested ifs and elses entirely, avoid functions in the global namespace not associated with a class, and stuff like that. It's supposedly pretty famous. Does anyone know how it is called? Thanks.
I'll give an example. This...
hello,
I am studying two main paradigms of programming, declarative and imperative paradigm. I am having a hard time following the ambiguous statements made on my textbook and wikipedia, such as:
declarative:
- focuses on "what" the computer is to do.
- is free of "side effects"
- without control flow
imperative:
- focuses on "how" t...
My question pertains to windows forms
Let's say I have a combobox for customer and orders, and depending on the selection made on those comboboxes I populate a datagrid for all the Order details.
I am interested in a double click event within the datagrid row.
Upon the event 2 things can happen:
the record was deleted.
one or both ...
I'm interested in starting to properly design my software on paper before I ever start coding. What is the standard approach for this?
I'm thinking something along the lines of UML but I feel that it's a bit overkill for a one-man project.
What are some of the things professionals say is best to do when developing hobby projects?
Anti...
I was reading this article (note: click the magnifying glass to zoom to be able to read it), and this guy goes on talking about how everyone can greatly benefit from mixing in data oriented design with OOP. He doesn't show any code samples, however.
I googled this and couldn't find any real information as to what this is, let alone any ...
I know this question is not really important.. however I've been wondering:
Which of the following IF statements is the best and fastest to use?
<?php
$variable = true;
if($variable === true)
{
//Something
}
if($variable)
{
// Something
}
?>
I know === is to match exactly the boolean value. However is there really any im...
Hi everyone!
I recently began to read some F# related literature, speaking of "Real World Functional Programming" and "Expert F#" e. g.. At the beginning it's easy, because I have some background in Haskell, and know C#. But when it comes to "Language Oriented Programming" I just don't get it. - I read some explanations and it's like re...
When introducing basic programming concepts to kids for the first time, what paradigm is best to start with? What research has been done in this field?
...
I know of "imperative" and "functional" programming but there was little I could find on "datatype" programming. Is there such a thing and how is it related to the other paradigms?
...
What is GOP and does it relate to either the maths or data structure definitions of graphs?
How does it compare to aop, oop, functional, logic or other paradigms?
...
Is there any standard documentation (like UML for OO) for functional languages?
After downloading couch db which is written in erlang and looking at the source code I was shocked, there is hardly a line of documentation.
Is there no need to document how all these functions depend on each other?
Are there better documented medium size pro...
I know this question has been asked before, but this was one and a half years ago, though I thought it might be the time for a re-questioning. I also recognized it might be seen as subjective, but I guess there are objective reasons for/against AOP.
I would be interested in who is using AOP in software development and also why or why no...
Hi there ,
Why isn't openGL object-orientied? Everybody teaches Object Orientated Programming + Design Patterns, but OpenGL has many global functions. Isn't this bad style?
...
During your development experiences have you found any relation between philosophical concepts and development paradigms?
Although, there is no hard reciprocity, I think that learning about those relations gives clarity on methodologies/paradigms/process understanding. Or at least should be inspirational.
I've found some examples:
He...
Doing some restructuring on the my applications menu bar. When looking at other applications, there seems to be two different ways of structure.
Either the "old school" most common way, the verb/command followed by the subject. I.e. what do you want to do and what do you want to do that on. Like so:
File
New
Foo
Bar
Open
Foo
Bar
...
I know alot of Java people have started looking at Scala since it runs on the JVM, and alot of people in the Microsoft world are looking at F#, but what does Ruby have as a natural functional successor?
In a pure FP sense Ruby doesn't lack anything, instead it has too much some may say. A functional language forces the programmer to not...