Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"5-line" engine
#19
We are dealing with a very interesting question.

I feel that there are 2 different topics, and because of that, the perception may be different.

Topic 1: James playfully announced a challenge, the goal of which is to create a game by adding as little code (or as few lines) as possible. He himself tried to make the sizes as small as possible. It prefers to use a SELECT CASE instruction instead of IF, because it is well known that we are forced to press ENERT after the end of the IF line. Perhaps he considered the aesthetics of compression important and wanted to suggest that the program consists of 5 lines. It's a challenge. If we accept his rules of the game and what he asked the community to do, then different meaningful works can be created. A playful and creative process begins.

(this is what happens instead Smile )

Topic 2: usefulness of coding compression
Do I need a ":" character? should we cram everything together, or should it be more transparent? I think that it partly depends on the individual (to whom what is more transparent), and on the other hand, the complexity of the task also determines what is more beneficial for us. In the case of James's program, if development and comprehensibility are the goal (rather than player challenge), then compression is unjustified. You are absolutely right! There is a limit to this. It is also important to consider how big the program will be. If I were to leave the code blank when writing a program, the pageup and pagedown buttons would quickly wear out. I'll try to compress it at the very beginning.

We agree that if the basic principle is that the programmer's code can be understood by himself and others, then it is appropriate to express the plot in the simplest possible way.

I think everyone who is here on the forum has enough experience to decide what is beneficial for themselves and what is beneficial in the event that we want to share a code with others.
Reply


Messages In This Thread
"5-line" engine - by James D Jarvis - 02-06-2024, 02:13 PM
RE: "5-line" engine - by SMcNeill - 02-06-2024, 02:40 PM
RE: "5-line" engine - by James D Jarvis - 02-06-2024, 05:43 PM
RE: "5-line" engine - by bplus - 02-06-2024, 06:27 PM
RE: "5-line" engine - by GareBear - 02-06-2024, 10:42 PM
RE: "5-line" engine - by JRace - 02-07-2024, 01:30 AM
RE: "5-line" engine - by MasterGy - 02-07-2024, 02:31 PM
RE: "5-line" engine - by TerryRitchie - 02-07-2024, 02:46 PM
RE: "5-line" engine - by JRace - 02-07-2024, 05:25 PM
RE: "5-line" engine - by MasterGy - 02-07-2024, 08:27 PM
RE: "5-line" engine - by GareBear - 02-08-2024, 12:00 AM
RE: "5-line" engine - by SMcNeill - 02-08-2024, 12:15 AM
RE: "5-line" engine - by JRace - 02-08-2024, 03:43 AM
RE: "5-line" engine - by GareBear - 02-08-2024, 01:27 PM
RE: "5-line" engine - by SMcNeill - 02-08-2024, 05:13 PM
RE: "5-line" engine - by MasterGy - 02-08-2024, 05:22 PM
RE: "5-line" engine - by SMcNeill - 02-08-2024, 06:03 PM
RE: "5-line" engine - by SMcNeill - 02-08-2024, 07:12 PM
RE: "5-line" engine - by MasterGy - 02-08-2024, 11:01 PM
RE: "5-line" engine - by GareBear - 02-09-2024, 02:35 PM
RE: "5-line" engine - by SMcNeill - 02-09-2024, 03:23 PM
RE: "5-line" engine - by madscijr - 02-10-2024, 12:25 AM
RE: "5-line" engine - by GareBear - 02-09-2024, 05:48 PM
RE: "5-line" engine - by bplus - 02-09-2024, 08:42 PM
RE: "5-line" engine - by MasterGy - 02-09-2024, 09:24 PM
RE: "5-line" engine - by MasterGy - 02-09-2024, 09:51 PM
RE: "5-line" engine - by SMcNeill - 02-09-2024, 10:36 PM
RE: "5-line" engine - by MasterGy - 02-09-2024, 11:55 PM
RE: "5-line" engine - by bplus - 02-10-2024, 12:04 AM
RE: "5-line" engine - by MasterGy - 02-11-2024, 01:28 AM
RE: "5-line" engine - by SMcNeill - 02-11-2024, 01:35 AM
RE: "5-line" engine - by MasterGy - 02-11-2024, 04:22 PM
RE: "5-line" engine - by johannhowitzer - 02-12-2024, 02:41 AM
RE: "5-line" engine - by James D Jarvis - 02-15-2024, 06:59 PM
RE: "5-line" engine - by Pete - 02-16-2024, 10:05 AM
RE: "5-line" engine - by Jack - 02-16-2024, 11:06 AM



Users browsing this thread: 14 Guest(s)