QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: FellippeHeitor on April 14, 2021, 08:47:00 pm

Title: [video tutorial] Creating console apps with QB64
Post by: FellippeHeitor on April 14, 2021, 08:47:00 pm
Title: Re: [video tutorial] Creating console apps with QB64
Post by: SpriggsySpriggs on April 14, 2021, 09:45:50 pm
Cool, Fellippe!
Title: Re: [video tutorial] Creating console apps with QB64
Post by: bplus on April 15, 2021, 12:21:06 am
Yeah, I know I will be using console for tracking down bugs, like when I need to follow some variables in a loop by printing values. It will be nice not having the graphics scroll off screen.

Does anyone know many lines the console will scroll?
Title: Re: [video tutorial] Creating console apps with QB64
Post by: SMcNeill on April 15, 2021, 01:09:49 am
Yeah, I know I will be using console for tracking down bugs, like when I need to follow some variables in a loop by printing values. It will be nice not having the graphics scroll off screen.

Does anyone know many lines the console will scroll?

With Windows, use WIDTH to custom set what you need.

WIDTH x, y, maxX, maxY
Title: Re: [video tutorial] Creating console apps with QB64
Post by: Dimster on April 15, 2021, 08:58:24 am
Does the Console run faster than using the QB64 graphical screen? For example render text or graphics, calculate formulas etc?
Title: Re: [video tutorial] Creating console apps with QB64
Post by: bplus on April 15, 2021, 12:23:24 pm
Does the Console run faster than using the QB64 graphical screen? For example render text or graphics, calculate formulas etc?

You know the console might run faster because it does not have to render graphics but it is running graphics that you need the speed. I suppose might be an advantage to number crunching or sorting? Interesting experiment. Eh, same code same CPU probably no difference in speed.
Title: Re: [video tutorial] Creating console apps with QB64
Post by: OldMoses on April 15, 2021, 07:02:13 pm
I always wondered what the console thing was about. I never quite understood the point of it. This answers a slew of questions and plants a few idea seeds as well. Thanks for doing this one, and looking forward to the next.
Title: Re: [video tutorial] Creating console apps with QB64
Post by: TempodiBasic on April 26, 2021, 04:04:43 pm
Cool tutorial!
Moreover your english is very clear for me.

But I must complain that this is not the right place for this optimum publication.
Is there a video tutorial section in the website?

Thanks to share information and tecniques
Title: Re: [video tutorial] Creating console apps with QB64
Post by: zaadstra on April 26, 2021, 05:27:08 pm
I always wondered what the console thing was about. I never quite understood the point of it. This answers a slew of questions and plants a few idea seeds as well. Thanks for doing this one, and looking forward to the next.

I like it as it behaves the same as the old QB 4.5 programs (copy text etc.).   Besides that, you can make nice utilities that run in CMD prompt.
Title: Re: [video tutorial] Creating console apps with QB64
Post by: OldMoses on April 26, 2021, 06:28:26 pm
I like it as it behaves the same as the old QB 4.5 programs (copy text etc.).   Besides that, you can make nice utilities that run in CMD prompt.

I've already been able to swat some persistent bugs, that were slowing my code down a lot, by _ECHOing variables inside of certain iterations to the console. Then I could say, "Hey program, why are you doing THAT calculation when it's not necessary". I sometimes talk to my programs... ;)

It's incredibly helpful to be able to watch were things are going behind the scenes. Until Fellippe did this video I was just shooting in the dark trying to figure out what was eating up processing resources.