• Print

Author Topic: $1 Offer  (Read 1075 times)

DeeBee

  • Sr. Member
  • ****
  • Posts: 491
    • Donnelly-House
    • Email
$1 Offer
« on: October 22, 2011, 12:25:23 PM »
Mine is:

I will give $1 to anyone who adds "OPTION EXPLICIT" to the IDE. ('QB64' Dollars?)

I suggest it be defined in a comment as follows:

' $OPTION EXPLICIT

It would require all variables (identifiers) to be defined, otherwise an error is generated.

If no one accepts my offer, I will probably do it myself.

mcalkins

  • Hero Member
  • *****
  • Posts: 1269
    • qbasicmichael.com
    • Email
Re: $1 Offer
« Reply #1 on: October 22, 2011, 01:20:59 PM »
Workaround:

Add DEFSTR A-Z to the start of the program, then change it to DEFINT A-Z, then delete it. Doing so should reveal any variables being used without DIM, in the form of Type Mismatch.

Regards,
Michael
The QBASIC Forum Community: http://www.network54.com/index/10167 Includes off-topic subforums.
QB64 Off-topic subforum: http://qb64offtopic.freeforums.org/

Clippy

  • Hero Member
  • *****
  • Posts: 16431
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Re: $1 Offer
« Reply #2 on: October 22, 2011, 01:25:55 PM »
LOL, DeeBee is a MASOCHIST! He enjoys ORDERING HIMSELF AROUND!

Why not just DIM EVERYTHING and be DONE with it? But NO, HE HAS TO TELL HIMSELF TO DO IT!  ;D

I'll give anybody $10 to shut him up about it!
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

DeeBee

  • Sr. Member
  • ****
  • Posts: 491
    • Donnelly-House
    • Email
Re: $1 Offer
« Reply #3 on: October 22, 2011, 04:30:38 PM »
As usual, you are clueless Glippy.  ;D

It's about writing tight, efficient, bug-free code that is easier
to debug and without random side effects from an accidental
mistype of a single character. (that, in a program more than
20 lines long, and with any real complexity, can sometimes
take a considerable amount of "wasted" time to debug --
(obviously some people have more free time to waste than others)
just because you accidentally typed one character wrong --
that's what computers are SUPPOSED to do -- make all of
our lives easier --- it is self-evident)

That's why MOST languages have strong type checking,
either by default, or as an OPTION.

Just because it's there doesn't mean you have to use it.
That's the point.
You can continue wallowing around in the morass that is
your coding 'style', methodology, "technique", and so forth.

And others, perhaps not necessarily smarter than you, but definitely
less stubborn, will use it wisely and effectively and productively.

$1 people.

It's a "gentleman's bet", of sorts.

Clippy

  • Hero Member
  • *****
  • Posts: 16431
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Re: $1 Offer
« Reply #4 on: October 22, 2011, 05:19:44 PM »
YOU are the one who is CLUELESS! AIN'T GONNA HAPPEN!

I DON'T see Galleon working on adding a STUPID OPTION that will CHECK to make sure that everything is DIMed properly. And you are CLUELESS to think otherwise, but we REALLY needed another SMART ASS here didn't we?
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

Brent

  • Guest
Re: $1 Offer
« Reply #5 on: October 22, 2011, 05:20:11 PM »
BeeGee,

Aren't $1 people called "prostitutes" or "hookers"?

Clippy

  • Hero Member
  • *****
  • Posts: 16431
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Re: $1 Offer
« Reply #6 on: October 22, 2011, 05:21:57 PM »
$1 wouldn't even afford protection for such a person...  ;D
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

Brent

  • Guest
Re: $1 Offer
« Reply #7 on: October 22, 2011, 05:25:10 PM »
Quote from: Clippy on October 22, 2011, 05:21:57 PM
$1 wouldn't even afford protection for such a person...  ;D

I dunno...

http://appfinder.lisisoft.com/app/icondom-your-condom-dispenser.html

DarthWho

  • Hero Member
  • *****
  • Posts: 3853
  • Timelord of the Sith
Re: $1 Offer
« Reply #8 on: October 22, 2011, 05:31:09 PM »
Just to propose this (DeeBee would need to agree to it) if someone were to implement this then they would be able to say how that $1 (US) would be dealt with; (ex: donated to a charity of the winner's choice; given to Galleon (for use with something to do with QB64); or it is wired to them in some manner) if DeeBee were to implement it himself he gets to keep the dollar or do whatever the heck he wants with it.

possible value variations:
value changes based on whether or not it is implemented in an editor or in the main IDE
Charity: $10 +-$5
QB64: $10 +-$5
self: $1

So DeeBee would you be up for doing something along those lines?

only an idea though
Rassilon: My lord Doctor; My lord Master; My lord DarthWho
The Doctor and the master at the same time :WHAT!?!?!

FastMath 1.1.0 released: http://dl.dropbox.com/u/12359848/fastmath.h

vrensul

  • Sr. Member
  • ****
  • Posts: 320
  • 44th Degree Digital Wizard of the HighBytes Order
Re: $1 Offer
« Reply #9 on: October 22, 2011, 06:44:47 PM »
Sometimes in coding i mistype my variable names because I use names to explain things.  For example, I may use a string named:

LastName$(1 to 10)
or InFromFileCash#(1-5) (or something else, make your own up.)

The thing with option explicit is that if you mis-type that variable it will tell you.  That's pretty important otherwise you'll be trying to find out why that program isn't working right. because you typed LatsName$(X) instead of LastName$(X).  Remember that QB64 will automatically create that array if it doesn't exist.  So in this case, you've created a bug that option explicit could catch for you.  After all, even in the newest VB you can turn it off.  No one should be FORCED to use it, but if you're writing 1,000's of lines of code it sure does help.  Although I dont always agree with DeeBee, I do admit Option Explicit would be very nice to have.  I mean seriously, If you haven't typed a variable name wrong before then you haven't been programming much.
' With programming, you  can do anything!
DEF SEG = &HBANKACNT 'weekend starts here...
     poke checking, 1000000
DEF SEG ' quit job here.

DeeBee

  • Sr. Member
  • ****
  • Posts: 491
    • Donnelly-House
    • Email
Re: $1 Offer
« Reply #10 on: October 22, 2011, 07:12:13 PM »
Glippy, I mean Clippy, seems to be unable to grasp the concept
that the base root of OPTION is optional.
(or 'opt' if you really want to get rooty -- as in, opt in, opt out)

Although I will be donating at least $20 or so to Galleon soon (-er or later),
I would pay $20 for the inclusion, although that would be pretty cheap for a
specialty request, so I wouldn't insult him with the offer.
(I might be able to afford more than that at some point, but probably not)
His time is worth more money that that.
(if he would even do it -- I think he is again' it, too)

That's why I made it a $1 gentleman's 'bet'.

I will probably be doing it myself and adding it to myQB64.EXE.

It's too important to not have it.

Even C/C++/C#, the mother tongue(s) of QB64,
don't allow OPTION NON-EXPLICIT.

Q.E.D.

Clippy

  • Hero Member
  • *****
  • Posts: 16431
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Re: $1 Offer
« Reply #11 on: October 22, 2011, 10:07:30 PM »
A GLORIFIED SPELL CHECKER is not gonna happen any time soon! I would HOPE that there are a LOT higher priorities than that! YOU are the one who doesn't seem to get it D.B.!

We program here, not write poetry! Get real! Adding something like that would take up a lot of valuable time. So do it yourself in C and submit it for approval. Then we will know how SERIOUS you really are!
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

DeeBee

  • Sr. Member
  • ****
  • Posts: 491
    • Donnelly-House
    • Email
Re: $1 Offer
« Reply #12 on: October 22, 2011, 11:06:02 PM »
It just needs to be a check/double-check in the IDE during
the compile, and maybe even during the syntax check. (ideally)

It would be SO MUCH easier if more of the IDE variables were
named with names that described what they were being used for.
(instead of i, o, f, etc...) And even a soupçon more documentation.

So it makes it extraordinarily difficult to decode the program and
try to figure out what is going on.
Plus it's a 31K line program. (including whitespace)

It's no wonder that only a few people have even tried to mod the
program and add things to it.

But I'll probably do it anyway. (like I already have)

Mrwhy

  • Hero Member
  • *****
  • Posts: 2890
  • My Dad called me Mr Why when I was 5.
    • Email
Re: $1 Offer
« Reply #13 on: October 22, 2011, 11:55:37 PM »
Quote from: DeeBee on October 22, 2011, 04:30:38 PM
As usual, you are clueless Glippy.  ;D


Who is this Glippy person. Don't you mean Drippy

Mrwhy

  • Hero Member
  • *****
  • Posts: 2890
  • My Dad called me Mr Why when I was 5.
    • Email
Re: $1 Offer
« Reply #14 on: October 23, 2011, 12:17:03 AM »
Quote from: Clippy on October 22, 2011, 10:07:30 PM
A GLORIFIED SPELL CHECKER is not gonna happen any time soon! I would HOPE that there are a LOT higher priorities than that! YOU are the one who doesn't seem to get it D.B.!

We program here, not write poetry! Get real! Adding something like that would take up a lot of valuable time. So do it yourself in C and submit it for approval. Then we will know how SERIOUS you really are!

More Drippy Hogwash ;D ??? ::)

  • Print