



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















With strengths, weaknesses, capabilities, and limits. Not just a choice of language. A "programming paradigm" is a way of approaching a problem. Programming Paradigms Wednesday, November 14, 2012 1:23 PM Docsity.com
In theory, I am supposed to be teaching you "how to program correctly", and how to follow the "one true path to programming greatness." I find this attitude reprehensible. It is based upon a world view that is not simply archaic, but also capable of damaging your careers. Full disclosure Full disclosure Wednesday, November 14, 2012 1:24 PM Docsity.com
vi versus emacs .NET versus LAMP Google versus Amazon (for clouds). Functional versus imperative. Strong versus weak typing. Speed versus robustness. Memory models. High-level versus low-level. For languages: Proponents of one paradigm often engage in holy wars : We must be careful not to descend into this pit. Religious wars Religious wars Wednesday, November 14, 2012 1:29 PM Docsity.com
How many people use it? Has it been used successfully in similar cases? How many people know how to use it? (technological) Footprint : What has been used before? What lessons were learned? What should we do differently? Why should we do it differently? (software) Legacy: What pre-existing resources are there? What new resources are required? How much will they cost? Can we afford it? (technological) Infrastructure: The social context of each paradigm The proper paradigm is not an absolute; it depends upon The realities of modern programming Wednesday, November 14, 2012 1:31 PM Docsity.com
I have heard quite enough of " survival of the fittest. " In the real world, it is " survival of that which fits. " Programmers do not survive by "being the fittest"; they survive by "fitting in" and by getting the job done. Likewise, paradigms do not survive by "being the fittest". They survive by fitting into the larger context of software development. The most important job interview advice: "don't be a programming fascist." Darwin was wrong! Wednesday, November 14, 2012 1:39 PM Docsity.com
Examples and success stories. Advice about common (and not so common) quandaries. "Google is your friend." The social nature of programming The social nature of programming Wednesday, November 14, 2012 1:42 PM Docsity.com
Share your expertise and experience. View that sharing not as fact, but as social evidence. Become an i ntelligent consumer of evidence. How to fit: How to fit Wednesday, November 14, 2012 1:46 PM Docsity.com
So far, we've learned about patterns: well-documented solutions to common problems. The internet is populated with rituals : poorly documented solutions that worked once. A ritual becomes a pattern after many people have tested it and +1'd it. Patterns and rituals Every pattern started out as a ritual. Patterns and rituals Wednesday, November 14, 2012 1:48 PM Docsity.com
Myth #3: one should always choose the most recent paradigm; it will be the easiest to use. Reality: the choice is also based upon other factors, including frequency of adoption and social pressure. Beattie, Cowan, Wagle, Wright, and Shostack, Timing the Application of Security Patches for Optimal Uptime <https://www.usenix.org/conference/lisa-02/ timing-application-security-patches-optimal- uptime> Myth # Wednesday, November 14, 2012 1:58 PM Docsity.com
When you live on the bleeding edge, you tend to bleed. Inadequate accumulated knowledge: you're on your own in facing problems. Inadequate social pressure: few adopters means that you will discover most of the defects. Inadequate success stories: higher risk of project failure. Inadequate infrastructure: missing libraries, compilers, implementations, ... Causes of injury include social isolation of first adopters. Living on the bleeding edge Wednesday, November 14, 2012 1:55 PM Docsity.com
If you are doing something similar to what 10,000 people have already accomplished, then it is highly likely that you will succeed. If you are doing something that very few people have accomplished before, you are likely to be the one to find the defects. The law of the median use case: Paths that have been taken frequently by others are easier to follow. Reason: social pressure. Think of it as like a footpath in the forest: The law of the median Wednesday, November 14, 2012 2:12 PM Docsity.com
Myth #4: If I have a great idea, I can become the next Bill Gates/Steve Jobs/Larry Ellison/... Reality: It is about as likely as winning the lottery. We're all swimming in the same river. If you have a great idea, you can rest assured that at least 1000 other people had the same idea. The difference is whether you do something about it, and whether you're first to market with the innovation. From a friend who is a psychiatrist: "I won't go hungry if your students have that attitude." Myth # Wednesday, November 14, 2012 2:18 PM Docsity.com
Two service stacks to build. Relatively inexperienced but motivated programmers. Paradigms: .NET, LAMP Problem: SOA programming Case history: .NET versus LAMP Wednesday, November 14, 2012 2:43 PM Docsity.com
Windows-based. Homogeneous environment: only on Windows. Mono is problematic. One development environment: Visual Studio Attributes: High adoption rate: high state of knowledge. Business pressure to make development seamless. Pre-existing patterns for SOA programming. Patterns well documented and seamlessly deployable. Pluses: Single-vendor environment: cost of deployment is high. Relatively inflexible: if you're doing SOAP, you're fine; if you're doing REST, prepare to swim upstream. Minuses: Windows .NET Wednesday, November 14, 2012 2:49 PM Docsity.com