Author Topic: Issues With Some online references,  (Read 6655 times)

SarahW

  • Newcomer
  • Posts: 33
  • Karma: +0/-0
    • View Profile
    • Email
Issues With Some online references,
« on: November 27, 2018, 06:52:16 AM »
Have you ever noticed how just casually asking for certain solutions to programming problem, Stack.Overflow would be completely outright mislreading at times?

Ways to clear the terminal is one example: You don't need to leverage Ruby to do that task, you can just do a system call to clear the screen.

They also don't teach you: How do you make sure statistical values remain constant across different programs?

You do this by reading from a file that has that statistical value, then converting that file type into a direct integer. Then simply write that change you want to make to that stat to that file.

I've tried asking basic questions there, and my topic would be closed for almost no explanation.

For those just learning Ruby:

You can do type the simple command to clear the terminal.

Code: [Select]
system("clear')

I also use it for when I want to refer to an outside program. It doesn't all have to be require "ostatus.rb" (as an example) that I've tended to get more errors with.

You can also do procedural generation by cloning your game file, (Think small game chunks of 7 * 7 grid or 9 * 9 grid.) SImple call these rooms, and then create a gamestate program that shuffles a deck between these different rooms.

Then have one game chunk be your home.rb.

It seems like there is a lot of stuff Stack overflow just isn't going to teach you. Especially if they just close threads willy nilly.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Issues With Some online references,
« Reply #1 on: November 27, 2018, 07:05:03 AM »
would be completely outright mislreading at times?

Welcome to internet. And welcome to Earth, I guess. Are you from one of the close star systems or somewhere else?

SarahW

  • Newcomer
  • Posts: 33
  • Karma: +0/-0
    • View Profile
    • Email
Re: Issues With Some online references,
« Reply #2 on: November 28, 2018, 03:04:27 PM »
Nope, are you from the planet Robot?

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Issues With Some online references,
« Reply #3 on: November 29, 2018, 08:00:38 AM »
The internet is not a reliable source of information. Besides, what you think is the right answer might not be that simple. I am probably the best case in being "right" and in result spending over 20 years developing one game, trying to learn from my mistakes (of being right).