this post was submitted on 13 May 2024
13 points (74.1% liked)

Programming

17303 readers
75 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
13
submitted 5 months ago* (last edited 5 months ago) by hardkorebob to c/programming
 

Examples of an interesting computer programming paradigm.

all 5 comments
sorted by: hot top controversial new old
[–] hardkorebob 2 points 5 months ago* (last edited 5 months ago)
Meta [
	Title:   {Fizz Buzz math "game"}
	Author:  "Kaj de Vos"
	Rights:  "Copyright (c) 2021,2022 Kaj de Vos"
	License: {
		PD/CC0
		http://creativecommons.org/publicdomain/zero/1.0/
	}
	Notes: {
		https://en.wikipedia.org/wiki/Fizz_buzz
		https://wiki.c2.com/?FizzBuzzTest
		https://www.rosettacode.org/wiki/FizzBuzz
	}
]

For counter 100 [                                   ; Count to 100
    Third?: unless modulo counter 3 [write "Fizz"]  ; Display "Fizz" every third count; remember whether we did

    Any [
        unless modulo counter 5 [write "Buzz"]      ; Display "Buzz" every fifth count
        third?                                      ; Remember earlier result
        write counter                               ; Display the number if not third or fifth
    ]
    Write " "                                       ; Separate the displayed items
]
Write new-line
[–] ICastFist 0 points 5 months ago (1 children)

I don't accept Justine's political bias, nor associate myself with the human or its corporate/flesh associates, or any of its beliefs, views, comments & opinions. I simply use a language that uses a brilliant piece of technological artistry developed by an amazing soul.

That seems unnecessary to add in the Readme, I always thought people used other projects because they liked the project, not the person behind it.

Other than that, the thing that'd interest me the most, graphical programs, graphical user interfaces, is mentioned only once and talking about REBOL. I'd like to see an example of code in this Meta for a simple window with 2 or 3 different input fields for a user.

[–] hardkorebob 1 points 5 months ago (1 children)

Yes my point doesnt need to be made. I deleted that.

[–] Corbin 2 points 5 months ago

You're not the only one to notice her politics. Don't be ashamed of rejecting folks for hate.