My Scheme Blog (19, permasaged)

1 Name: SchemeNoob : 2009-07-17 22:05 ID:97UmOfTm

I know that you guys might sage the piss out of this but, this is my new scheme blog. I am doing this to get pointers from others who have read sicp. I like scheme so far. It is pretty much the first programming language that I like. I tried python and I can program stuff in it (pretty basic shit) but I like scheme because it makes more sense to me since it reads more like English does.

Here is one item from the end of SICP chapter 1L

(define (sumsq-big-two x y z)
(cond ((and (> x z) (> y z)) (sum-of-squares x y))

    ((and (> y x) (> z x)) (sum-of-squares y z))
((and (> z y) (> x y)) (sum-of-squares x z))
(else "fail")))

2 Name: #!/usr/bin/anonymous : 2009-07-17 23:06 ID:Heaven

> I know that you guys might sage the piss out of this but

How do you know? How is this your scheme blog?

1) You're not allowed to use this website in ways other than intended, and a "blog" is out of question.
2) The code posted is from a textbook. If we wanted that particular code bit, we'd be looking at the textbook (which is freely available too), instead of coming to this "blog".
3) There's zero original content in your post.
4) The code is incomplete.

> since it reads more like English does.

What bollocks. That's awful programming language criteria.

I'd bet my money that you're a troll. Try HtDP, Learn Scheme in fixnum days, and other textbooks listed here, http://schemers.org/Documents/#all-texts before you read SICP. (SICP is not supposed to teach scheme)

3 Name: #!/usr/bin/anonymous : 2009-07-18 03:03 ID:97UmOfTm

>>2

Oh no, I guess I was caught by the /prog/ police.

And yes, I like Scheme so far because it reads similar to English.

If you do not like what I posted or disagree with it then go to a different thread.

This remains the Scheme learning log thread. Get over it.

4 Name: #!/usr/bin/anonymous : 2009-07-18 10:13 ID:Heaven

>>3

> Oh no, I guess I was caught by the /prog/ police.

Proof this is a 4chan troll; he didn't even realize this is /code/, not 4chans /prog/.

5 Name: #!/usr/bin/anonymous : 2009-07-18 13:54 ID:Heaven

Python is surely more English-like than Scheme's ass-backwards prefix notation. Think "and is greater than y x is greater than z x" versus "y is greater than x and z is greater than x". Which of those is more normal sounding to you?

>>3
We're certainly allowed to disagree with a post. Suck it up.

6 Name: dmpk2k!hinhT6kz2E : 2009-07-18 15:27 ID:Heaven

Wait, someone wanted to post something potentially interesting on this board, and people are flaming him? Yet other people occasionally gripe that the board is too dead?

What the hell is wrong with some of you?

7 Name: SchemeNoob : 2009-07-18 20:41 ID:97UmOfTm

>>4

Whatever. I guess I am breaking the mores of this board. I called it /prog/ big deal.

Anyhow, I am working through HTDP after some recommendations from other people that are more experienced. One gripe I have with HTDP is the examples. They are retarded but the book teaches well. I skipped the theater ticket profit calculator because the way the author calculates the number of attendees for the theater based on ticket price is stupid. I would calculate the attendees in the following toy example:

(define (attendees nightly-revenue ticket-cost)
(/ nightly-revenue ticket-cost))

The author has a bunch of hard coded values and bases his calculation on the assumption that a price of $5.00 will always net 120 people and that a decrease of .10 will always increase that number by $15. My understanding of software development is that we should make things as general as possible so we can reuse our code. The author will have to edit his code when he finds that there is a change in the market trend (economy or otherwise). I will not, I will always be able to get the number of customers I had no matter how the market changes.

I also went and bought The Little Schemer so I can read it on the subway.

8 Name: SchemeNoob : 2009-07-18 20:43 ID:97UmOfTm

I know that this thread is pissing people off but I am here looking for feedback. Well, when I actually get passed these "hello world!" type of exercises. Unless I get banned I am not going to stop posting in this log so get over it.

9 Name: #!/usr/bin/anonymous : 2009-07-18 22:14 ID:Heaven

>>6

> sage the piss out of this
> blog
> /prog/ police

there is nothing potentially interesting here.

10 Name: #!/usr/bin/anonymous : 2009-07-19 00:27 ID:Heaven

>>7

> Anyhow, I am working through HTDP after some recommendations from other people that are more experienced.

>>2 recommended HtDP, but if these people are more experienced, why do you still hang around with us?

> My understanding of software development is that we should make things as general as possible so we can reuse our code.

The examples of HtDP are not supposed to meet such expectations. I've not read the book, if you provide chapter/page that you're saying this for, I will read it and let you know my opinion of it. The author didn't abstract likely because that was not the point of the example (which, then, we should assume that you missed). Your understanding of software development is incorrect. Abstraction is not used whenever possible, but whenever desirable. You should ask yourself, "what features does this abstraction provide and does my program need them?", before you abstract away something.

>>8

> I know that this thread is pissing people off but I am here looking for feedback.

How do you know figure out feelings just by reading posts? You got some feedback - your impression of 'software development' is faulty. >>2 also commented on what you said, telling you that "Reads like English" is poor language criteria. Anything else?

> Unless I get banned I am not going to stop posting in this log so get over it.

This can be arranged. Keep this attitude and you won't stay for long. Take a look at the rules, in case you haven't done so already, especially item #2. http://4-ch.net/view/rules
It is abuse if other members are disatisfied with your attitude and even worse if you ignore them.

11 Name: dmpk2k!hinhT6kz2E : 2009-07-19 16:09 ID:Heaven

I concur with >>10 regarding:

> My understanding of software development is that we should make things as general as possible so we can reuse our code.

The problem with making something as general as possible is that it becomes difficult to do anything with it. Your code should be as simple as is reasonable -- do not generalize until you have a real need for it.

The current codebase I'm working with was originally put together by a Java architectural astronaut, and it is quite flexible. The problem is that we don't need that flexibility. As we slowly chop out those parts the code is becoming both smaller and much easier to understand.

Also, reuse of code is a tad overrated. I've seen little reuse of code outside of libraries.

12 Name: SchemeNoob : 2009-07-20 01:02 ID:97UmOfTm

>>11

I see, thanks for the advice.

13 Name: heh man!fi.Jek4HW6!!gGKYHXFO : 2009-08-05 04:54 ID:peOjZoLS

>>9
Stop taking the piss out of things that people even have positive opinions of.

14 Name: #!/usr/bin/anonymous : 2009-08-05 20:53 ID:Heaven

>>13
back to bed, ham hen.

15 Name: heh man!fi.Jek4HW6!!gGKYHXFO : 2009-08-06 23:51 ID:peOjZoLS

>>14
LOL SO RANDUM XD

Fuck you and fuck your fucking asshole

16 Name: M.C.!Anus3nMVO2 : 2009-08-15 22:02 ID:YMC+HsKQ

STOP!

[spoiler]ANUS TIME![/spoiler]

17 Name: #!/usr/bin/anonymous : 2009-08-16 07:10 ID:Heaven

>>15
my asshole is incapable of fucking.

18 Name: #!/usr/bin/anonymous : 2009-10-19 03:50 ID:Heaven

>>2

> You're not allowed to use this website in ways other than intended, and a "blog" is out of question

WTF?

19 Name: SchemeNoob : 2010-09-18 00:31 ID:U4AA5FjK

Okay. Time for another blog post.

I have the following [spoiler][b]niggercock[/b][/spoiler]

;; Compiler procedures
(define-signature compiler^
(compile-extensions
compile-extensions-to-c
compile-c-extensions

compile-zos

compile-collection-zos
compile-directory-zos

current-compiler-dynamic-require-wrapper
compile-notify-handler))

;; Low-level extension compiler interface
(define-signature compiler:inner^
(compile-extension
compile-extension-to-c
compile-c-extension
eval-compile-prefix))

[spoiler]is it true that my anus has been haxed[/spoiler]

This thread has been closed. You cannot post in this thread any longer.