1,083 karma · joined Aug 24, 2009 (17y ago) · 431 submissions
comment 12y ago · link · parent
Design patterns exist within all programming methodologies including functional programming, structured programming, etc. In some cases, the pattern is incorporated within the methodology, some within a specific language, some are incorporated within the framework and others are used at the domain level.
Just because a design pattern has become so ubiquitous we don't even know we are using it doesn't mean the pattern does not exist. The iterator pattern has been weaved into languages for both functional and object oriented programming. Java has implemented it at the framework level. Maybe it should not have been done there.
In all cases, this really has nothing to do with shortcoming of OOP (or any programming methodology for that matter). It has to do with allowing us to recognize common patterns of design within software.
> Did you include a study of the Mythical Man Month?
Yes. But not in the above described BIS class. It was in another class in the CIS program.
comment 12y ago · link · parent
A) A student needs to be able to map real world systems to a computing device. This requires a lot of critical thinking and is basically the process of automating a real world problem.
B) A student needs to be able to code out the problems they have solved above.
Where it gets difficult is that students are usually taught how to code before they are taught how to do that mapping from the real world "thinking" to computer world "thinking". I feel their internal model of programming becomes tainted with concepts like scope, functions, methods, parameters, pointers, lists, arrays, data structures, inheritance, composition and so on. All useful tools, but hard to mentally picture without understanding why the exist.
I look at learning to code before learning to critically solve problems like learning all about a motorcycle without understanding it's purpose: to move you from one location to another. Sometimes, students have ah-ha moments and they would be like "Oh, now I see why we are learning about motorcycles. It is because we've learned about these roads things and we can use the motorcycles to move us from here to there using these road things we learned in a prior chapter".
Where it gets even more difficult is that students are often expected to learn how to think critically to do that mapping thing (A) and at the same time learn to code (B).
In my opinion, the optimal way to learn how to program would be to teach the critical thinking aspects and associated tools in A and then teach implementation (programming) in B (then alternate) with about a two week gap. One class on A, then two weeks later a class on B, then two weeks later a class on A.
This is an iterative approach to learning that allows students to master concepts in software development and then apply those new skill by programming (by coding or other means) solutions in a computing device.
comment 12y ago · link · parent
It was for the BIS program (http://www.rmit.edu.au/programs/bp138). You can get an idea of the program for graduates.
I look at coding as a way of programming but not all programming needs to be done by writing code. There are other ways to program a computing device: a.k.a alter the behavior of a program.
> What were students supposed to be able to accomplish that they couldn't do before?
I don't recall the ILO's (Intended Learning Outcomes) of the class but I do recall one was being able to apply Design Patterns in their analysis and design.
I'm not saying I agree with people designing software systems without also having an ability to code but I do think people can think critically about solving problems using tools like UML without having to code out the solution.
comment 12y ago · link · parent
This was also for a BIS degree (not a CS degree) which focused on the "business" side of information science: so most students weren't interested in coding (though I felt this was not to their advantage).
Really, it was a bit the fault of administration for placing the class in the first semester of the degree when students had not taken any programming classes yet.
comment 12y ago · link · parent
I was lecturing a class on UML and Design Patterns to students who had never coded before (basically UML).
The class textbook, lecture notes and lecture slides I was given had a lot of coding examples.
During the 12 week class, I wrote a book on Object Oriented Modeling (staying two chapters ahead for the students) that had almost no source code.
It was a challenge to explain OOM, UML and Design Patterns to students who had no prior coding experience.
I do feel it is totally possible to teach people how to "program" without knowing how to code.
186.
A Programming Language Based on Composition(blog.interfacevision.com ↗)
2 points · by ericHosick · 12y ago · discuss
comment 12y ago · link · parent
Here is an example (write out 1 2 4 8 16 32 on different lines):
Application (
using Library ( name "Vision.Console" )
action ForEach (
items 1 2 4 8 16 32
action WriteLine ( text CurrentItem () )
)
)
Parts are upper case and properties are lower case.
Each Part is a class 1 contained within a given framework.comment 12y ago · link · parent
I recommend you comment out all code, write the tests and then un-comment the code line by line.
This not only tests the code, but tests the tests and assures that you are covering the edge cases the code contains already.
comment 12y ago · link · parent
Then throw in classes with 600+ students requiring multiple teachers. Trying to align fairness (rubrics), plagiarism (tools like Turn-it-in) and the uniqueness of teaching style is difficult.
We'll, I think it is more about teachers being overloaded with the minutiae of data that causes them to lose focus of the bigger picture (education). Actually, in my opinion, education has lost focus on the bigger picture of education and may have never really had it.
comment 12y ago · link · parent
> api`s for systems that negotiate a communication protocol dynamically
I think the first step is to find a very easy way to describe communication between sub-routines/processes. Once people can hook things up and compose the interaction of software with foreign/unknown systems (all in real time while the software is running) then we can get systems to start doing it dynamically (run on sentence but ya).
comment 12y ago · link · parent
Sure, why not? sun.brightness = sun.brightness * 2.0f;
In fact, a lot of games play with physics to get cool behavior. I can adjust the "constant" G in my game to be something other than 9.8 m/s to make it interesting.
One moment the G vector may be down and then suddenly it flips up. Why not?
comment 12y ago · link · parent
Parameters are, for basically all languages, the means by which information is communicated between sub-systems.
The thing is, it is really hard to standardize the communication between sub-systems because sub-routines can vary widely in how they are defined (the possible combination of parameters and types is quite high). In fact, you can end up with thousands of different sub-routines: even in the same program. Each one unique and thus "non-standard".
This is the problem we need to crack. How do we create frameworks that don't lead to thousands of specialized interfaces: each one making the framework that much harder to use.
comment 12y ago · link · parent
I feel that Software Engineering/Science is lacking a body of knowledge: something which is basically required in other professional industries (architecture, medical, physics, electrical engineering), etc.
Software Engineering/Science is at a disadvantage because there is no limitation placed on us by nature: an EE can't simply change the brightness of the sun to meet a requirement. We can.
To create an industry standard plugin is really saying we need to create a common way to communicate information between systems and sub-systems in software. I feel we have not really figured out the best way to do this yet. Our industry is still young.
I've put a lot of thought (about 6 years now) into a way to standardization communication between software systems and even parts of software. It's a hard problem to crack.
> common protocol between user environment and code transformer
I feel that once we crack the problem of communication between software parts, this will come naturally.
comment 12y ago · link · parent
In my opinion, the procedure/sub-routine/method/function, and specifically these things with parameters, as an abstract concept is the reason why software engineering isn't maturing.
Procedures are difficult to use. You have to prepare to call them by obtaining all the information they require to be used (what you push into them via parameters), do something with the results and deal with any un-intended outcomes of using the procedure.
Procedures lead to specialization. In the world today, there are probably millions of procedures with unique signatures. Each time we create a new signature, we complicate the process by which our software framework(s) communicate. Specialization, in this case, is not good. It's makes using the frameworks more difficult.
Also, the procedural signature of any given behavior will be different based on the programmer who writes it and, even more so, the framework for which it is written. There is no way to easily assure, across the industry or even within a small group, that the signature of any given behavior will be the same.
comment 12y ago · link · parent
I agree with this. Software frameworks have improved but are still unnecessarily complex.
As we build out a solid body of knowledge in software engineering, we will end up with frameworks that are much easier to use than what we have today.
In my opinion, such frameworks would support the composition of software, hooking up behavior, as opposed to the "coding" of software (calling procedures).
Most likely this composition would take place in some kind of visual development environment though it could still be "coded".
comment 12y ago · link · parent
You don't need to pass parameters to your car to start it. You don't need to force yourself to only focus on the recipe (scope) when making dinner.
None of these things map very well with the real world and could also be considered additional mental overhead when learning. You don't need to know how to code to learn best known practices in building software.
comment 13y ago · link · parent
I don't want everyone to think like programmers. I want programmers to think like everyone else and hope some day that everyone can be programmers.
> It seems like you have a horse in this race.
Ya. We do. We've been working on a new development methodology and from that a visual object language and framework. Initially we coded against the framework but have found that you can visually represent usage of the framework equally well.
> really appropriate for programming beyond toys (or maybe data modeling, but not procedural programming)
Funny you say that. I also agree if you are using traditional approaches to software development (aka procedure programming). However, our framework does not use procedural programming per-se in that it has no paramaterized procedures/methods/functions/sub-routines.
comment 13y ago · link · parent
People used to say they would "program their VCR".
Also, I didn't in any way mean to imply that they were definitely different. I did say "I look at coding and programming as different things" as opposed to "Coding and programming are different things".
comment 13y ago · link · parent
I look at coding and programming as different things.
Programming is the critical thinking aspects of developing software and a skill that everyone should master: starting with children.
The act of writing code, and more specifically using frameworks designed with the intent of being coded against, is unnecessarily difficult.
I've always spent more time fighting with bad frameworks than I do implementing desired behavior.
Once I figure out the peculiarities of a compiler, I'm good to go. I can code fast. But, getting to that point takes a long time. It is especially difficult for people learning to program when they have to learn to code (edit: at the same time).
Software development is fundamentally broken and it frustrates me to no end.
comment 13y ago · link · parent
Having a system/body of knowledge to map requirements to implementation is really important.
Specific to software engineering, this process is best supported with BDD and TDD (in my opinion). BDD gets you 100% coverage of behavior: what the "customer" wants. TDD helps you cover edge cases which improves on robustness (which is the process you are describing above).
Coding before you have behavior (what customer wants) is, in my opinion, a bad idea (product market fit first).
Any type of development approach, ill-relevant of it being coding or visually oriented, is going to be iffy without using best known practices.
Now, if you are doing R&D then I would ignore the above process of BDD/TDD with the understanding that any code/program written would be "thrown out" (not put into production).
comment 13y ago · link · parent
AsyncRun ( part SomeObject )
multiple items can run in parallel like this:
AsyncRun ( part SomeObjectA SomeObjectB .. )
synchronization:
AsyncSync ( part AsyncRun ( part SomeObjectA SomeObjectB .. ))
locking a property:
AsyncRun ( part AsyncLock ( lockName = "someName", part = SaveUser ( ... ) ) )
On main thread (for UI/UX):
MainThreadRun ( part SomeObject )
comment 13y ago · link · parent
Kevin Spacey on this subject: http://www.youtube.com/watch?v=P0ukYf_xvgc.
comment 13y ago · link · parent
We are trying to solve this type of problem by providing a framework developers can use to create general purpose templates. Those templates, a long with help on how to configure them, can be used to "slap on a feature or two".
It is an interesting problem to solve.