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

Pages: 1-4041-8081-

Structure teh program

Name: Anonymous 2008-07-30 12:59

Dear /prog/, how do I learn to structure my shit properly?

Name: Anonymous 2008-07-30 13:00

Take a stick and refactor it into easily swallowed pieces.

Name: Anonymous 2008-07-30 13:00

Read a book.

Name: Anonymous 2008-07-30 13:44

Use [Tab]

Name: Anonymous 2008-07-30 14:03

>>4
You're in a lot of trouble.

Name: Anonymous 2008-07-30 18:04

>>4
Leah Culver?

Name: Anonymous 2008-07-30 18:07

>>4
FIOC?

Name: Anonymous 2008-07-30 18:09

>>6,7
same fag.

Name: Anonymous 2008-07-31 1:06

Use vim.

Name: Anonymous 2008-07-31 8:58

>>1
'########::'########::::'###::::'########::
 ##.... ##: ##.....::::'## ##::: ##.... ##:
 ##:::: ##: ##::::::::'##:. ##:: ##:::: ##:
 ########:: ######:::'##:::. ##: ##:::: ##:
 ##.. ##::: ##...:::: #########: ##:::: ##:
 ##::. ##:: ##::::::: ##.... ##: ##:::: ##:
 ##:::. ##: ########: ##:::: ##: ########::
..:::::..::........::..:::::..::........:::
:'######::'####::'######::'########::
'##... ##:. ##::'##... ##: ##.... ##:
 ##:::..::: ##:: ##:::..:: ##:::: ##:
. ######::: ##:: ##::::::: ########::
:..... ##:: ##:: ##::::::: ##.....:::
'##::: ##:: ##:: ##::: ##: ##::::::::
. ######::'####:. ######:: ##::::::::
:......:::....:::......:::..:::::::::

Name: Anonymous 2008-07-31 15:04

>>10
You're not helping.

Name: Anonymous 2008-07-31 15:06

>>11
He's right, though. I'm assuming >>1 has not read SICP already.

Name: Anonymous 2008-07-31 16:50

No seriously read SICP. In particular up to 2.2.3 which teaches breaking the problem into common discrete parts (i.e. patterns).

Name: Anonymous 2008-07-31 17:03

>>13
I think something like Code Complete may be more appropriate.

Name: Anonymous 2008-07-31 17:22

>>14
I think something like my anus may be more haxed

Name: Anonymous 2008-07-31 19:36

>>15
fuck, why do I laugh to these things. >.<

Name: Anonymous 2008-07-31 20:29

``Read SICP'' is actually the correct answer for OP's question.

Name: Anonymous 2008-07-31 20:38

>>17
Like it usually isn't.

Name: Anonymous 2008-08-01 1:06

>>13
k cool, reading this and hopefully it will help me improve my codingz

Name: Anonymous 2008-08-01 2:18

>>13
That's not what patterns is.

Name: Anonymous 2008-08-01 10:17

This book is for you who want to write the next killer app for
Internet, eCommerce, B2B, WAP, Bluetooth, and what-have-you.  Did you
know that most of those applications you use, be it Netscape, IE,
Word, Excel, VB, Shockwave, SQL Server, IIS, Servlet, etc., etc., are
all written using structured programming, the technology taught in
this book?  Almost no computer program nowadays don't use some form of
structured programming such as loops and subroutines.  So if you are
out to design the next killer application, this book is for you.
Written by CS celebrities, highly-acclaimed researchers and
innovators, and ACM Turing Award winners (widely regarded as the CS
equivalent of Nobel prize laureates) such as O. J. Dahl (inventor of
OOP, and more), C. A. R. Hoare (inventor of preconditions and
postconditions, and more) and E. W. Dijkstra (inventor of the Dijkstra
shortest-path algorithm, the dining philosopher problem, the mutex,
and more), this book is the crystallization of the experience and
wisdom of the programming pioneers and giants who wrote applications,
compilers, and OSes --- and proved them correct (bug-free) --- before
you were born, and is an indispensible investment of your money and
time.

Name: Anonymous 2008-08-01 20:13

E. W. Dijkstra
inventor of the dining philosopher problem
How posh.

Name: Anonymous 2008-08-02 6:11

>>20
He's talking about spotting recurring patterns and abstracting them away into separate algorithms.The PATTERNS you think of are band-aids for ENTERPRISE language deficiencies.

Name: Anonymous 2008-08-02 6:31

>>23
Every language has programming patterns; ask Norvig!

Name: Anonymous 2008-08-02 6:48

>>24
He isn't available at the moment but I've found this in his slide:
[url]http://norvig.com/lisp_talk_final_files/Slide0020.gif[/url]

Name: Anonymous 2008-08-02 6:53

>>25
[url]

Name: Anonymous 2008-08-02 7:00

>>25
Try looking at Design Patterns in Dynamic Programming Languages[1]

[1] - http://norvig.com/design-patterns/ppframe.htm

Name: Anonymous 2008-08-02 8:35

>>25
[url] is not part of R5RB.

Name: Anonymous 2008-08-02 8:37

>>27
Peter Norvig won't return my e-mails. ;__;

Name: Anonymous 2008-08-02 11:00

>>29
That is stealing! Call the police.

Name: Anonymous 2008-08-02 12:23

>>27
I read it and I think I see what you're getting at. But most patterns in that that presentation we're classified as invisible in dynamic languages. Look at his example of subroutines. You had to figure out how to implement them but now they're in every language. Now look at his comparison of the abstract factory in C++ and dynamic languages. The code shows no sign of a design pattern in the latter.

Name: Anonymous 2008-08-03 2:32

>>27
This will help me to write code that doesn't look like shit?

Name: Anonymous 2008-08-03 14:02

>>32
No, because you're writing enterprise Sepples.

Name: Anonymous 2008-08-03 16:10

>>33
oh right, I'd rather write pure C

Name: Anonymous 2008-08-04 13:04

PRACTICE MAKES PERFECT

Name: Anonymous 2008-08-05 15:09

>>35
Or does it?

Name: Anonymous 2008-08-06 2:09

>>34

Nice, I'd rather get shit done

Name: Anonymous 2008-08-11 23:18

>>37
same here brah

Name: Anonymous 2008-08-18 0:36

yeah, wow, nothing helps me

Name: Anonymous 2008-08-18 4:54

>>35

Not if you're retarded

Name: Anonymous 2008-08-18 22:41

>>40
I must be retarded

Name: Anonymous 2008-08-27 5:58

I lose at coding ;_;

Name: Anonymous 2008-08-27 7:53

I LOST MY CONFIG

Name: Anonymous 2008-08-27 9:57

>>23
Truth

>>1
Read SICP, or become an hero

Name: Anonymous 2008-08-31 19:07

please tell me why I suck and how to fix it asap

Name: Anonymous 2008-08-31 20:46

>>45
Read SICP.

Name: Anonymous 2008-09-10 15:53

>>46
As you wish.

Name: Anonymous 2008-09-11 7:55

what do you want out of SICP?

Name: Anonymous 2008-09-11 8:47

use python

Name: Anonymous 2008-09-14 8:41

>>48
The knowledge of how to write well-structured programs.

Name: Anonymous 2008-09-20 13:29

Ok, so, seriously, how the fuck do I learn how to write a program properly?

I've been coding for years and I can usually accomplish what I need to but shit, I know I'm just not doing things properly.

In fact, I'm not even sure if I'm asking the right questions here.  But eh...

>The knowledge of how to write well-structured programs.

Name: Anonymous 2008-09-20 13:32

>>51
code review, whether on the job or open source project.

Name: Anonymous 2008-09-21 1:11

HTdP and SICP - all you need

Name: Anonymous 2008-09-21 3:14

>>52
Ok, I can see how that would help after studying a lot of code.

How about some free material on the web that you can read?  I see tutorials that are meant to introduce people to programming and specific languages, but I never find anything on the subject (how to code shit properly, I guess) that I am looking for help on.

Name: Anonymous 2008-09-21 5:42

>>54
It's just fucking common sense:

-  Pick up code you haven't worked on for months and try to understand it.  Where you can't, you've just learned a lesson in what not to do.

- Learn to document.  If the documentation takes a shitload of explanation for a small bit of code, rewrite the damn code to make it easier to understand.

- Learn to abstract.  Write your code as if you're doing both a library and something that uses it.  The ease of use of your more general code will tell you if your abstraction is balls or not.

Name: Anonymous 2008-09-22 15:51

>>55
ok those are good tips.

still is there any free writing on this subject at least?  or could you at least give me a better name for it so I know what to ask about or search for?

Name: Anonymous 2008-09-22 16:17

>>56
FUCKING
READ
SICP
GOD DAMN

Name: Anonymous 2008-09-22 16:22

>>57
SICP's not free.

Name: Anonymous 2008-09-22 16:42

Name: Anonymous 2008-09-22 16:49

>>59
http://www.amazon.com/Structure-Interpretation-Computer-Programs-Second/dp/0070004846

You could just check the price instead of giving links to pirated texts.

Name: Anonymous 2008-09-22 17:19

>>60
what the hell purple cover

Name: Anonymous 2008-09-22 17:22

>>60
Pirated? Check the URI.

Name: Anonymous 2008-09-22 17:22

lol'd at Norvig's and PG's reviews.

Name: not >>60 2008-09-22 17:44

>>62
yhbt

Name: Anonymous 2008-09-23 0:56

★★★★★ Have you read your SICP today?, July 7, 2008
By Xarn Cairnarvon "Xarn" - See all my reviews
This review is from: Structure and Interpretation of Computer Programs - 2nd Edition (MIT Electrical Engineering and Computer Science) (Hardcover)
I read this book because it was assigned for a course in school and I feel that working through the book greatly increased my ability. Now that school's out I find myself wanting to conjure the spirits of the computer with my spells and asking people to `read SICP' in all kinds of conversation.
Help other customers find the most helpful reviews  
Was this review helpful to you? [Yes] [No]

Report this | Permalink
▢ Comment

Name: Anonymous 2008-09-23 4:22

k, so, any serious help?

Name: Anonymous 2008-09-23 4:27

>>64,62
If it isn't pirated, then why at that site it's free when you can buy it somewhere for MONEY huh?

Name: Anonymous 2008-09-23 4:46

>>67
You're absolutely right. I shall contact Microsoft to have that site removed from the internet.

Name: Anonymous 2008-09-23 5:12

>>65
I know for a fact that Xarn was given his copy of SICP for his 22nd birthday.

Name: Anonymous 2008-09-23 6:24

>>69
You're fucking Xarn.

Name: Anonymous 2008-09-23 6:29

>>66
ah I guess not.

but I just realized I have absolutely no idea how to code anything now.  fuck, gg.

Name: Randall M. 2008-09-23 6:34

Look,

stop posting actual content on /prawg/.

Name: Anonymous 2008-09-23 8:52

>>70
There are two ways to intepret this sentence, and I'm not sure which is right,

Name: Anonymous 2008-09-23 10:45

>>73
There are four ways to interpret this sentence with respect to itself and it's reference, and I'm not sure which is right.

Name: Anonymous 2008-09-23 10:48

>>74
there are 2^x ways to interpret this sentence with respect to itself and it's reference's references, and i'm not sure which is right.

Name: Anonymous 2008-09-23 10:48

>>72
Look,

start posting actual humor on your wobsite.

Name: lol !8mQB/2odm6 2008-09-23 16:13

>>69
I got mine for Christmas.

Name: Anonymous 2008-10-19 7:28

dumbasses

Name: Matthew `Rimmis` Stallman 2008-10-19 11:23

>>72
Look, stop referring to posts as ``content''.

If you want to describe a feeling of comfort and satisfaction, by all means say you are ``content'', but using it as a noun to describe written and other works of authorship is worth avoiding. That usage adopts a specific attitude towards those works: that they are an interchangeable commodity whose purpose is to fill a box and make money. In effect, it treats the works themselves with disrespect.

Those who use this term are often the publishers that push for increased copyright power in the name of the authors (``creators'', as they say) of the works. The term ``content'' reveals what they really feel. (See Courtney Love's open letter to Steve Case (search for ``content provider'' in that page. Alas, Ms. Love is unaware that the term ``intellectual property'' is also misleading.)

However, as long as other people use the term ``content provider'', political dissidents can well call themselves ``malcontent providers''.

The term ``content management'' takes the prize for vacuity. Neither word has any specific meaning; ``content'' means ``some sort of information'', and ``management'' in this context means ``doing something with it''. So a ``content management system'' is a system for doing something to some sort of information. In most cases, that term really refers to a system for updating a website. For that, we recommend the term ``website revision system'' (WRS).

Name: Anonymous 2008-10-19 11:54

>>79
Back to your couch, RMS

Name: Anonymous 2008-10-19 12:19

>>80
He should, along with his free software.

Name: Anonymous 2013-09-24 21:03

cock piss

Name: Anonymous 2013-09-25 2:55

My name is Jenny. I am 16 years old and have dark blonde hair. NOW THAT YOU HAVE STARTED READING YOU MAY NOT STOP!! I was murdered July 14th with my fathers shotgun and butcher knife. If you do not post this on 20 other threads i will come to

your house in the middle of the night and kill you with my fathers shotgun and butcher knife. You have 5 hours to complete this task. Dont believe me, *maria marshall, Pelham, Texas 1998, was showering and went to bed right after, found dead the next morning. * keisha jones, Nashville, Tennesee 1995, fell asleep while watching television and mother heard gunshot and scream, found next morning lying on the floor. omar wilkionsin, milwaukee, wisconsin 2002, reading a book to go to bed and was shot and stabbed through the book after he fell asleep. Still dont believe me? google their names....Trust me i did not want to paste this. But its kinda scary so i did it just to be sure

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