1. Hey! Guest! The 34th GMC Jam will take place between August 22nd, 12:00 UTC (Thursday noon) and August 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

What is this for a Symbol??

Discussion in 'Programming' started by Paul Sperling, Jul 7, 2019.

  1. Paul Sperling

    Paul Sperling Member

    Joined:
    Jul 4, 2019
    Posts:
    3
    A 1 isnt it. when I write the 1 have the 1 a another calour but in the tutorial the 1 is white. How I do this? Thanks for help!
     

    Attached Files:

  2. curato

    curato Member

    Joined:
    Jun 30, 2016
    Posts:
    324
    it should be i (lower case letter) not the number 1. variables must always start use a letter up front. I try to avoid letter I and 1 and O and 0 just for that reason. best to avoid confusion is your can
     
    DaMuffin, EvanSki and Paul Sperling like this.
  3. nacho_chicken

    nacho_chicken Member

    Joined:
    Jun 21, 2016
    Posts:
    331
    An alternative to not using certain characters in variable names would be to find a better programming font to help distinguish those characters. It looks like OP is using Courier New, which -- despite being the default on many Windows programs -- is a fairly bad programming font. Nearly no difference between 1 and l and no slashed/dotted zero, among other issues. Consolas is barely any better and still has the same issue with the former, with the added issue of 8 and & being easier to confuse.

    I'm insane and prefer the Proggy family of fonts (specifically Crisp) for personal use, but I am partial to some of the larger, rounder fonts for general use. Source Code Pro and Ubuntu Mono are both great free options.
     
    EvanSki, Yal, FrostyCat and 1 other person like this.
  4. Yal

    Yal GMC Memer GMC Elder

    Joined:
    Jun 20, 2016
    Posts:
    3,460
    If you don't mind the non-monospace, Comic Sans is optimized for having characters that are easily distinguishable.
     
    EvanSki likes this.
  5. EvanSki

    EvanSki King of Raccoons

    Joined:
    Apr 17, 2018
    Posts:
    534
    syntax highlighting can help tell you what type of keyboard key you pressed such as 1 and 0 being red for Constants and I and O being blue for Variables and Yellow for Local Variables
    though you can change the colors in the preferences
     
    Last edited: Jul 8, 2019
  6. nicolobos77

    nicolobos77 Member

    Joined:
    Aug 16, 2016
    Posts:
    3
    It's an "i"
     
  7. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,317
    I never thought I’d see you post anything more useful than your “How to PM a user” guide, but here we are.

    Sorry, did I say “useful”?
    I meant “useless”.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice