Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-

Design Patterns

Name: Anonymous 2008-06-29 10:47

/prog/,

I'm now reading ``Head First Design Patterns."[1]
When I'm finished, can I expect to be an EXPERT SOFTWARE DESIGNER???

Notes                                 
1. http://books.google.com/books?id=LjJcCnNf92kC

Name: Anonymous 2008-06-29 10:55

I'm reading PAIP now. Actually, I just began and it feels kinda fuzzy and warm inside when I'm reading the introduction to CL.

Name: Anonymous 2008-06-29 10:56

No.

Name: Anonymous 2008-06-29 13:48

>>1
I was a EXPERT PROGRAMMER before I purchased the book "Head First Design Patterns".  As such, I got only an couple good things out of it.  It has lots of pictures, so if you are a visual learner it will be for you!

Name: Anonymous 2008-06-29 13:56

You just bought it 'cause of the girl on the cover, didn't you?

Name: Anonymous 2008-06-29 14:07

>>5
I'd like to head my first into her design patterns, if you know what I mean.

Name: Anonymous 2008-06-29 14:19

I bought SICP because there's a wizard on the cover.

Name: Anonymous 2008-06-29 14:22

>>6
No

Name: Anonymous 2008-06-29 16:16

All the "Head First" books seem to have a MySpace angle pose on the cover...

Name: Anonymous 2008-06-29 18:14

>>4
I don't consider myself an EXPERT PROGRAMMER just yet, so hopefully i'll get more out of it than you did.

>>5
No, I bought it cuz it looks more interesting than the GoF book.
The chick on the front looks like an old chick that the marketing team felt could be made to look young (hence the pig tails & angle).
but i'd still >>6 her

Name: Anonymous 2008-06-29 18:42

>>9
HEAD FIRST

Get it?

Name: Anonymous 2008-06-30 3:18

Just read the damned Design Patterns book.  Fuck the bandwagon authors.  It's dirt fucking simple shit.

Name: Anonymous 2008-06-30 6:15

The girl on the cover looks like my 13yo cousin, I'd >>6 her thirty-seven times.

Name: Anonymous 2008-06-30 8:02

>>13
If I know what you mean?

Name: Anonymous 2008-06-30 8:25

>>13
13GET, if you know what I mean.

Name: Anonymous 2008-06-30 8:44

I have a happy feeling in my pants

Name: Anonymous 2008-06-30 8:50

>>15
back to /b/, please

Name: Anonymous 2008-06-30 9:32

I had a design pattern fanboi on my team for a project in university. We had to make a simple game. The design he came up with was so ridiculously overengineered, it was 20 pages or so of diagrams of observers, singletons, factories, visitors, etc.

He told us he could implement it easily. After a couple of weeks, the result was barely functional, and a functional equivalent with a normal design could have probably been made in two days. In the end, we barely passed the course.

Name: Anonymous 2008-06-30 9:44

>>18
He should have totally gone Agile.

Name: Anonymous 2008-06-30 10:23

>>18
What game?

Name: Anonymous 2008-06-30 11:22

>>18
Design patterns suck. They're too often overused and abused -- for every place a design pattern is applied correctly, it's mashed and mangled a hundred times where it doesn't belong.

If it was your team, the fault is partly yours. You should have had the balls to tell him to sit down and shut the fuck up, rather than be passive-aggressive about it. Sure, you step on people's toes, but that's the only way anything useful can ever get done.

Name: Anonymous 2008-06-30 11:30

>>20
The one you just lost.

Name: Anonymous 2008-06-30 11:46

>>20
It had to be an education game. We went with a top-down view game where you run around the map answering questions.

>>21
He really wanted to do all the programming, and unlike the rest of us he actually had a job as a programmer (C++), so we went along with it. Anyway, it was a learning experience.

Name: Anonymous 2008-06-30 11:46

s/education/educational/

Name: Anonymous 2008-06-30 11:55

>>23
The moral of the story: never trust a Sepples programmer.

Name: Anonymous 2008-06-30 17:27

>>25
I'm a sepples programmer and I don't use patterns. I'm a very good coder anyway. You can trust me to hax your anus.

Name: Anonymous 2008-06-30 17:36

Name: Anonymous 2008-06-30 17:42

>>26
lol, well played.

Name: Anonymous 2008-06-30 17:47

>>26,28
same person.

Name: Anonymous 2008-07-01 11:54

Reading just a sample of that book makes me want to throw up...IN REAL LIFE.

Name: Anonymous 2008-07-01 12:28

OK, I looked, out of curiosity. PIG DISGUSTING.

Name: Anonymous 2008-07-01 12:52

Fuckers with their examples with ducks made me think they were going to end the first chapter with duck typing, turns out it's about the Stategy Pattern a.k.a. the My Shitty Language Has Neither First-Class Functions Nor Function Pointers Pattern.

Name: Anonymous 2008-07-01 14:27

I never read any book about design patterns because I knew people who did and they would never shut up about them. Those people were so fucking annoying that I didn't want even risk turning into them. I get why design patterns are useful (a pre-assembled way of making up for the lack of some feature in your language), but I don't get what all the hype is about.

Why the fuck some people become so fanatic about design patterns that they end up overdesigning every shitty piece of code they have to turn out? Also, is UML really useful?

Name: Anonymous 2008-07-01 14:39

I read it but got lost in their explanation of the ``Anus Pattern''

Name: Anonymous 2008-07-01 14:41

>>32
QUACK, MOTHER FUCKER!

Name: Anonymous 2008-07-01 14:43

>>34
Did you mean: ``Hax my Anus Pattern''

Name: Anonymous 2008-07-01 14:46

>>33
Completely seriously, UML-like constructs and design patterns are both very useful for the same thing: inter-developer communication.  Forcing strict compliance to the latest UML standards of modeling is fail.  Copypasta of design patterns is doing it wrong.  Overuse of design patterns is ALSO doing it wrong.  A peppering of a few UML like diagrams to show connections between things and enumerate their parts can be very helpful, especially when working with multiple developers.  Being able to say "the thing you're doing with that OBSERVER" is much more clear and concise than saying "the thing you're doing with that function/object that sends data over a specified interface to other functions/objects when an event or change occurs relating to the first function/object that the others may want to know about".

Name: Anonymous 2008-07-01 16:32

>>37
Yes, but why do some people get addicted to desgin patterns, can't shut up about them and design their code so that it's made entirely out of patterns?

Name: Anonymous 2008-07-01 16:35

>>38
A certain percentage of the populace is mentally underdeveloped.

Name: Anonymous 2008-07-01 16:44

>>37
Completely seriously, UML-like constructs and design patterns are both very useful for the same thing: inter-developer communication.  Forcing strict compliance to the latest UML standards of modeling is fail.
So flow charts (an octogenarian concept) are useful. UML itself is just a fail-filled attempt to standardize something that really shouldn't be used extensively enough to need it.

Name: Anonymous 2008-07-01 16:53

Is UML still a fad? Shouldn't it be going away soon? I don't get all those people that are all "OMG, UML!" about it.

Name: Anonymous 2008-07-01 17:18

>>32
Yes most of the "design patterns" are bullshit.  I remember reading the GOF book (which is without a doubt the most boring book I have ever read).  A lot of it is useful in *some* cases but again should not be abused.

I think all C++ users should read the meyers books and GOF and realize C++ sucks ass and switch.  Seriously fuck C++.

Name: Anonymous 2008-07-01 17:39

>>42
What should they switch to? perl?

Name: Anonymous 2008-07-01 17:40

>>43
.NET

F#/C#

Name: Anonymous 2008-07-01 18:17

>>44
I'll pretend you just said F#

Name: Anonymous 2008-07-01 18:34

>>44
I'll pretend you just said Java.

Name: Anonymous 2008-07-01 19:23

>>46
Javaids is the worst (IHBT,etc)

Name: Anonymous 2008-07-01 20:49

>>42
Trolling aside, what's good besides C++ when you need something fast to do real-time volume rendering, image processing, or generally anything that can't be handled by slow as fuck languages?

FIOC with C++ for the most intensive parts?

Name: Anonymous 2008-07-01 22:48

>>48
Common Lisp, calling out to C if there's something that Lisp is somehow just too slow for (this will not happen a lot).

Duh.

Name: Anonymous 2008-07-01 22:52

C++ is horrible for performance. You get performance from it solely because everything is implemented pretty fast to begin with. But the second any modularity or layer of abstraction is added you immediately lose all those gains.

Other languages can handle this (MLton) gracefully, but C++ can't. The sad fact is that you often will write things in C or fortran and link to C++ to get better performance.

The better question is "If C++ is in this performance no man's land, not good enough when trying to be fast, and horribly slow when being idiomatic, why do people say it performs well at all?"

Name: Anonymous 2008-07-01 22:54

>>50
No, I think the better question is, "If C++, despite not actually being especially fast, is plenty fast for >>48's purposes, what's he fussing about?"

Name: Anonymous 2008-07-01 22:54

C++ isn't even good at virtual dispatch. Java kicks its ass at virtual dispatch benchmarks.

Name: Anonymous 2008-07-01 22:56

>>51
But C++ isn't even fast for that. To do image processing you link to fortran implemented libraries.

Name: Anonymous 2008-07-01 22:59

>>53
I see your point. I wasn't actually paying attention to what his purposes were.

Name: Anonymous 2008-07-02 6:32

>>52
0/10

Name: Anonymous 2008-07-02 7:38

>>55
It's true. C++ can't inline virtual functions, because C++ can only optimize during compilation. The JVM can also apply optimizations during runtime. So if a method gets called a lot, it can inline the method and the only overhead is a check that the object has the correct type.

Name: Anonymous 2008-07-02 8:22

WANKING OFF

Name: Anonymous 2008-07-02 9:27

So if a method gets called a lot
I don't think this is implemented anywhere.
This is not really related to topic, this is just may way of saying "use common sense".

Name: Anonymous 2008-07-02 15:53

>>58
That's your problem. You don't think to even fucking google it.

Name: Anonymous 2008-07-02 17:14

>>48
If you want fast handling of fucktons of data, use Fortran.

Name: Anonymous 2008-07-02 17:20

>>60
You means PYTHON?

Name: Anonymous 2008-07-02 17:49

>>61
with NumPy.

Name: Anonymous 2008-07-02 22:46

>>60
Handling it in what regard?

Name: Anonymous 2008-07-02 23:06

>>63
In the sense of inappropriately touching its genitals.

Name: Anonymous 2008-07-02 23:20

>>64
Good old FORTRAN.

Name: Anonymous 2008-07-03 0:16

>>65
FORTRAN is the dirty old man of computing.

Name: Anonymous 2008-07-03 0:23

>>65
The R stands for REGISTERED SEX OFFENDER

Name: Anonymous 2008-07-03 0:32

>>66
And I suppose LISP is the old gay man of computing. FORTH and Smalltalk are the young guys who for some reason hang around him. Sepples is a successful bug chaser completely unrelated to the above. He's a disgrace to his father, C, who worked hard all his life.

Name: Anonymous 2008-07-03 0:35

>>68
And Objective-C is C's and Smalltalk's little secret?

Name: Anonymous 2008-07-03 0:40

Java is the overweight thirtysomething with the mind-numbing office job who can never seem to get the hang of "business casual".

Name: Anonymous 2008-07-03 0:56

>>69
I guess so. Smalltalk would have to be a woman then.

Name: Anonymous 2008-07-03 1:00

>>71
At least she allows complete introspection...

Name: Anonymous 2008-07-03 1:59

>>72
That's the kind of woman I want. Except I'm not really into her. What kind of person loves Smalltalk?

Name: Anonymous 2008-07-03 8:19

FIOC is the stuck-up guy who's alway nagging the others about their TPS reports and whines if you write in the margin or use a special font.

Name: Anonymous 2008-07-03 8:38

>>59
I googled it and found few texts about how it can be implemented. JVM may do this, JVM may do that.
Is it implemented somewhere already? Would storing how often every function is called not already be a great overhead?

Name: Anonymous 2008-07-03 8:44

>>74
I don't see how that's any different to any other programming language.
C is the stuck-up guy who's alway nagging the others about their TPS reports and whines if you write in the margin or use a special font.

Name: Anonymous 2008-07-03 8:50

>>76
There is more than one way to do it

Name: Guido van Rossum 2008-07-03 9:10

>>77
No, there is only my way.

Name: Anonymous 2008-07-03 9:10

>>77
That's not always a good thing. In my experience, I've seen way too many programmers abuse that philosophy to write code in their cryptic and non-standard (to the current project) manner. It is very rare that I see a hack that is truly worth breaking the guide of consistency. In a vast majority of cases, it is better to be consistant*.

* Yes, I do bracket my {
single_statement;
} code in C-style code in the name of consistency

Name: Anonymous 2008-07-03 10:47

>>79
Yes, I do bracket my { single_statement; } code in C-style code in the name of consistency
So do why, but I have issues.

Name: Anonymous 2008-07-03 10:54

>>79
That's not always a good thing. In my experience, I've seen way too many programmers abuse that philosophy to write code in their cryptic and non-standard (to the current project) manner. It is very rare that I see a hack that is truly worth breaking the guide of consistency. In a vast majority of cases, it is better to be consistant*.
Fuck these programmers.
A language must allow many styles. A project must pick one style. The programmers must follow the project guidelines.
You don't do so? FUCK YOU AND FUCK YOUR CODE.

(also, consisntency my ass. you moron)
>>80
So do I, you moron. Learn English.

Name: Anonymous 2008-07-03 11:07

>>81
A language must allow many styles.
Why?

Name: Anonymous 2008-07-03 11:09

>>81
Fuck those programmers.
"So do I", you moron.
Fixed.

Who's the moron now, moron?

Name: Anonymous 2008-07-03 11:22

>>79
I've seen way too many programmers
you know what you doing !

Name: Anonymous 2008-07-03 11:24

>>82
You will not receive a proper answer for this question.

Name: Anonymous 2008-07-03 11:26

>>85
I know that, but stupid excuses are sometimes a funny read.

Name: Anonymous 2008-07-03 12:18

>>83
wrong, these is also appropriate.
As for the quotes, FUCK THEM QUOTS.

Name: Anonymous 2008-07-03 12:18

>>82
So projects can adopt one.

Name: Anonymous 2008-07-03 14:06

>>87
HUUUURRRRRR
fix'd.

Name: Anonymous 2008-07-03 14:15

>>82
Because otherwise, you end up with FIOC one-true-way bullshit.

Why should Guido say how I indent my code? This is why Haskell's indentation model is superior.

Name: Anonymous 2008-07-03 16:32

>>90
Well, frankly, he's better at it than you are.
Maybe if you'd let him have a quick look over your Haskell ``code'', you'd end up with something comprehensible enough to be worth bothering reading.

Name: Anonymous 2008-07-03 18:17

>>88
You mean ``so there is something inane to argue about for people starting new projects''.

Name: Anonymous 2008-07-03 19:22

>>91
I don't think so. Haskell's abstraction is so awesome compared to imperative style that even badly indented Haskell (purely functional) code should be more readable than the Python equivalent.

Name: Anonymous 2008-07-03 20:39

>>93
We abstract the spirits of the computer with our nomads.

Name: Anonymous 2008-07-03 20:59

>>93
Easy on that kool-aid, boy.

I have used both. You make no sense whatsoever.

Name: Anonymous 2008-07-03 21:08

>>95
High level abstraction motherfucker. You can convey a lot more information in Haskell code than Python code.

Name: Anonymous 2008-07-03 21:10

>>96
That's exactly what >>93 said. How many times are you going to repeat it?

Name: 96 2008-07-03 21:12

You can convey a lot more information in Haskell code than Python code and still have a smaller code size and still remain logically readable
fixed

Name: Anonymous 2008-07-04 4:18

>>98
And SLOW AS FUCK.

Name: Anonymous 2008-07-04 4:31

Haskell and Python are both "One True Way" BDSM languages.
Both suck ass for that reason.

Name: Anonymous 2008-07-04 4:33

>>100
You are silly.

Name: Anonymous 2008-07-04 5:11

>>100
Yeah, because HASKELL makes you use indention and doesn't work if you want to use curly brackets and semicolons in some short expression. That you don't want to take up three lines. Oh wait no, that's PYTHON.

Name: Anonymous 2008-07-04 5:53

>>102
Yeah, PYTHON makes you use GONADS if you want to do anything useful. Oh wait no, that's HASKELL.

Name: Anonymous 2008-07-04 6:17

>>102
Also, WHAT THE FUCK WHY WOULD YOU NAME SOMETHING THIS?
http://homepages.inf.ed.ac.uk/wadler/realworld/natlangproc.html

Name: Anonymous 2008-07-04 6:41

>>104
Have you read your SUSHI'S LOGICS today?  No?

Name: Anonymous 2008-07-04 6:46

>>104
I think that's an awesome name.

Name: Anonymous 2008-07-04 6:58

>>105
I have, but I still can't comprehend it.
>>104
Why are you quoting >>102?

Name: Anonymous 2008-07-04 7:12

>>107
obviously because >>102 is a HASKELLFAG.

Name: Anonymous 2008-07-04 7:24

>>108
YhBtC

Name: Anonymous 2008-07-04 7:47

>>104
I lol'd.

Name: Anonymous 2008-07-04 11:54

>>104
Oh, gawd.
Demonstrations of the system can be arranged by contacting Rick Morgan
(*nudge*, *nudge*, *wink*, *wink*)

Name: Anonymous 2009-03-06 6:00

The kerebos suite And.

Name: Anonymous 2009-08-16 23:45

Lain.

Name: Anonymous 2010-12-26 15:58

Name: Anonymous 2011-02-04 17:52

Name: Sgt.Kabukimanᭃ扥 2012-05-24 9:48

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: bampu pantsu 2012-05-29 4:00

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List