Beta No line between SUBs (B4A 5.0 Beta)

Discussion in 'Android Questions' started by Jaames, May 29, 2015.

  1. Jaames

    Jaames Active Member Licensed User

    Hi,
    I noticed that in new 5.0 Beta version there was no line between subs. I really like that line,
    it make the code more readable, can you add the line, or option to turn it on or off in future release?
    Thanks

    noline.jpg
     
    ArminKH likes this.
  2. Pendrush

    Pendrush Active Member Licensed User

  3. Erel

    Erel Administrator Staff Member Licensed User

    Not sure whether it is better with or without these lines, however this feature is no longer available in the underlying UI library so they were removed.
     
    Peter Simpson likes this.
  4. Pendrush

    Pendrush Active Member Licensed User

    I'm sure. Is better with lines :)
     
    Roberto P. likes this.
  5. Erel

    Erel Administrator Staff Member Licensed User

    Ok.
     
  6. Jaames

    Jaames Active Member Licensed User

    So, it is impossible to incorporate it and there will be no line in the future version?
     
  7. Peter Simpson

    Peter Simpson Expert Licensed User

    So that means that it makes no difference to me as I never noticed that the lines were missing, and I was coding an app in 5.00 for a good 9 hours yesterday :)
     
    imbault, walterf25 and lemonisdead like this.
  8. Dave O

    Dave O Active Member Licensed User

    I thought the lines were unnecessary, unless I was reading someone else's code that didn't put blank lines between subs.

    I hope this encourages people to add the blank line - makes it much easier to read, line or not. :)
     
    jotaele, stari and Peter Simpson like this.
  9. Peter Simpson

    Peter Simpson Expert Licensed User

    I completely agree @Dave O, I always put a blank line and a comment before my subs.
     
  10. bigbadfred

    bigbadfred Member Licensed User

    Hi,
    it's funny: I always remove that line because it annoys me.
    As I always put my code in regions and collapse them afterwards, the code windows gives me a nice overview.
    On the other hand, the new GUI with the treeview makes navigating a lot easier.
     
  11. Dave O

    Dave O Active Member Licensed User

    At least we don't have to argue about the position of the opening brace of C functions. :rolleyes:
     
  12. Troberg

    Troberg Well-Known Member Licensed User

    Suggestion: Add the option of having a different background color on the Sub lines. That way, we can make them shine out how much or how little as we want.
     
  13. Jaames

    Jaames Active Member Licensed User

    Ok, your opinion, I'll see you when you hit the unreadable code like @Dave O said , no blank line between subs, no comments, it is much much harder to read the code without that line... But, it's just my opinion, I can live without the line ;)
     
  14. Peter Simpson

    Peter Simpson Expert Licensed User

    My code is always readable, that's why I have a space in between subs :p
    I know that the line helps, I'm not saying that they don't. In Visual Studio 2013 there are sub separation lines, but I still notice the spaces and comments. Over the years my mind just ignores the lines and looks for spaces and comments, either that or I just so a quick sub search. I do agree with @Dave O when he said 'lines were unnecessary', but that's just what I think when it comes to me. Plus their are vertical lines to the left side of the subs that are easy enough to follow too.

    Anyway you will soon get used to not having the sub separation lines, and then you will forget about them altogether :cool:
     
    Last edited: May 29, 2015
  15. Jaames

    Jaames Active Member Licensed User

    Quiz:
    How fast you can count subs on left , and how fast on right? line2.jpg

    :) . I know, It's not big deal, but there is so many people who do not format the code, neither mine is so pretty, but it is not the worst...
    On the forums, (in the code tags) there is no line either, and it's fine, I can read it.
    So we can agree that the line is not necessary, and we shall bury it ? :)
     
  16. Peter Simpson

    Peter Simpson Expert Licensed User

    As I've mention in 2 previous posts, I have spaces in between my subs so the above Quiz does not apply to me ;) so you're cheating me lol.

    Without spaces I do agree with what you say, but with spaces the lines makes no difference to me imo. Anyway you should really put spaces in between your subs lol :p
     
    Last edited: May 29, 2015
    lemonisdead and Jaames like this.
  17. sorex

    sorex Expert Licensed User

    to be honnest, I never spotted that line before, I just add an empty line like most people tend to do.
     
    Peter Simpson likes this.
  18. Jaames

    Jaames Active Member Licensed User

    Really? Even VS2013 have the lines :)
    yesLine.jpg
     
  19. Peter Simpson

    Peter Simpson Expert Licensed User

    @Jaames I have a late Christmas present for you :p
    [​IMG]

    Enjoy...
     
  20. Jaames

    Jaames Active Member Licensed User

    Haha LOL. Thanks! and there is one for you :

















    Enjoy....
     
    ArminKH, mangojack, inakigarm and 4 others like this.
Loading...
  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