« GRITZ Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next

Re: America's Favorite Pastime 

By: Zimbler0 in GRITZ | Recommend this post (1)
Sun, 10 Aug 25 4:43 AM | 22 view(s)
Boardmark this board | Grits Breakfast of Champeens!
Msg. 11514 of 11928
(This msg. is a reply to 11509 by De_Composed)

Jump:
Jump to board:
Jump to msg. #

Hmmm.
I would have thought Pascal had followed COBOL into extinction. Apparently not.

I started with BASIC. The company guru said i should learn Pascal . . . and so I bought a pascal compiler for my Macintosh. For some reason I'm thinking I went from Pascal to something else but I can't remember for the life of me what it was. Then I went to C.

I saw C as being a sort of 'missing link' between higher level languages and assembler. (I actually started with 6802 hand assembly on a trainer.)

Then the 'PC world' took over. (I was assimilated . . . ) I dabbled with Microsloths 'Visual Studio' but i didn't really like it. Visual BASIC wasn't bad . . . But it was 'behind the scenes'. Most of the time I was actually in another program invoking Visual Basic. Using a Vizio document as a front end I could do all sorts of interesting things - like graphing polynomials or trigonometric functions.

And then I found Python. Python is an interpreted language. But it also does Object Oriented programming and many other interesting things. With Tkinter drawing things and graphing functions is not difficult.

I like Python.
Zmi.




Avatar

Mad Poet Strikes Again.


- - - - -
View Replies (1) »



» You can also:
- - - - -
The above is a reply to the following message:
America's Favorite Pastime
By: De_Composed
in GRITZ
Sun, 10 Aug 25 3:12 AM
Msg. 11509 of 11928

I just hit my '20 Grok Questions in 2 Hours' limit so I thought I'd take a break and share what I'm up to.

I've been writing a decent amount of pascal, sometimes pulling off things I never knew how to do (and often still don't) and always doing it a lot faster than I normally could. AI has some serious drawbacks, but for what I'm doing, it's wonderful.

The screen to the right is from "RotatingOctagon" - a program I started about 4 hours ago and which is about 300 lines long. That's misleading, though, since I didn't hand all the specs over to Grok and say "write this," but instead gave it a bit at a time and often caused the poor creature to rewrite the whole thing from ground up. The actual line count if you include all the throwaways is probably closer to 3,000.

I know nothing about Computer Graphics and thought this might therefore be an interesting way to kill an afternoon. To what extent can Grok augment my limited knowledge in this field of programming? With its help, I'm now able to draw an octagon that rotates either way at a speed I control via slidebar. A ball obeys the law of gravity and the force of friction, bouncing around within. A slidebar controls how strong the gravity is. A third slidebar controls the size of the ball. Radio buttons set the ball's color.

There are some bugs: The slidebars aren't labeled and I'm not sure why. The ball bounces based on contact with its CENTER, not its exterior. That's pretty goofy. And the gravity slidebar might not be working, or it could be working fine but my poor laptop is pushed to its limit and just can't go any faster.

Finally, there's a bug where the program continues to run in background when its window has been closed. Whoops! That's a pretty serious problem... one that could bring my computer to a halt if I don't kill the runaway processes by hand.

That's about it. If I can get my program debugged and working perfectly, I'll ask Grok to help me with just ONE more little thing.... Who hasn't wondered what Hillary's head would look like bouncing around in a giant octagon???









« GRITZ Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next