Stupid Question of the Day: Love for THEN?

  1. ‹ Older
  2. 8 weeks ago

    Julia T

    Nov 27 Sandy Hook, Connecticut

    I'll take If-Then-End over curly braces any day, but there are certainly times when I've said to the compiler "Of course there's supposed to be a 'Then' there, why don't you just add it for me?"

  3. Norman P

    Nov 27 Pre-Release Testers, Xojo Pro outside

    @Neil B Linting in Xojo would really help.

    Analyze project does the vast majority of this already
    But only for the current platform you're working on

  4. Tim S

    Nov 27 Pre-Release Testers Canterbury, UK
    Edited 8 weeks ago

    @Beatrix W The white-space in Python drove me nuts.Together with the case-sensitivity

    Yes and yes.

  5. Neil B

    Nov 27 Pre-Release Testers

    @Norman P Analyze project does the vast majority of this already

    I guess technically that is linting. But to most people in 2019 linting means a squiggly line with a tool tip (with the analysis being done in the background continuously).

    -image-

  6. Norman P

    Nov 27 Pre-Release Testers, Xojo Pro outside

    Some might
    Thats MS Intellisense, and whatever the heck Xcode calls it
    Theres a balance between being helpful and just annoying as hell

  7. Dave S

    Nov 27 San Diego, California USA

    @Norman P Theres a balance between being helpful and just annoying as hell

    +1

    I hate when various popups obscure what I'm trying to read

  8. 7 weeks ago

    Andy B

    Nov 27 Airdrie, AB, Canada

    If only Xojo had a plugin for VS. I for one would be jumping for joy.

  9. Michel B

    Nov 27 Pre-Release Testers, Xojo Pro

    @Julia T I'll take If-Then-End over curly braces any day

    I used to bash curly braces and make fun of objective C, until I realized I was quite comfortable using them in JavaScript.

    The structure

    If (Condition) {do this}

    I kind of fool proof because of it's intrinsic structure. An open curly brace commands a close one.

    I have been using another Basic with the kind of long listing we used back in the VB6 time. Curiously, there, I tend to forget Then. Perhaps because my brain is still wired for VB6...

    In Xojo, I never forget Then.

  10. Beatrix W

    Nov 27 Pre-Release Testers, Third Party Store Europe (Germany)

    I miss the "on error resume next" from VBA. Without exceptions that was the best way to deal with errors. But I wrote the reporting tools only for myself.

  11. Michel B

    Nov 27 Pre-Release Testers, Xojo Pro
    Edited 7 weeks ago

    @Beatrix W I miss the "on error resume next" from VBA.

    +1

    Right now, I am fighting a nil object exception that does not manifest normally, only when the app is enclosed in a Windows New API package to go in the Windows Store. On Error Resume Next would save my skin...

  12. Markus R

    Nov 27 Pre-Release Testers, Xojo Pro Europe / Germany
    Edited 7 weeks ago

    braces

    at german keyboard it was a unhandy key combination, same as semikolon.
    : looks better as separator and was only need for sngle line statements.

    about vb6
    better than resume next was a own method with error handling and boolean result. ms methods cry for everything. alternate on error goto ... with possible of resume.

  13. John A

    Nov 28 Pre-Release Testers Las Vegas, Nevada

    I've had to bounce between Xojo and Javascript quite a lot lately.
    Seeing 'if ... then' vs 'if ... {' in the editor seems to keep my brain (and fingers) aligned with the correct syntax.
    As well as remembering to add ';' like mouse droppings almost every statement.

  14. @Tomas J let's do the python way, more efficient ;-)
    if x<10 x=x+1

    @Norman Palardy OH GAWD 100 dislikes

    You're going to indent it anyway, aren't you?

  15. Neil B

    Nov 29 Pre-Release Testers

    @Norman Palardy 100 dislikes

    How about this Ruby code then? ;)

    x+=1 if x<10
  16. Norman P

    Nov 29 Pre-Release Testers, Xojo Pro outside

    There are lots of languages that have lots of constructs that unless you are fluent in the language they are unreadable
    I consider this a downfall of those languages.
    That python relies on indentation for lexical scoping is, IMHO, a really bad choice ESP since that indentations can be achieved using either spaces or tabs.

    Heck C even used to allow ++i++ but now most compilers give you a warning about that form
    Use it in a loop sometime and confuse the heck out of anyone reading the code

  17. Norman P

    Nov 29 Pre-Release Testers, Xojo Pro outside

    @Steve W You're going to indent it anyway, aren't you?

    not me
    xojo does that for me because the lexical scoping rules are nice and clear :)

  18. Dave S

    Nov 29 San Diego, California USA

    @Norman P There are lots of languages that have lots of constructs that unless you are fluent in the language they are unreadable

    APL!

  19. Norman P

    Nov 29 Pre-Release Testers, Xojo Pro outside

    that was one of my very first jobs when I got hired
    deciphering a financial model that was written in APL and the person had quit :P

  20. Dave S

    Nov 29 San Diego, California USA

    "Hey Sisemore, Joe wrote this huge APL program, but he just quit, we need you to translate it for us".
    "Hey Boss, here is MY two week notice!" :D

  21. @Norman P not me
    xojo does that for me because the lexical scoping rules are nice and clear :)

    It's only nice and clear to Xojo because you've spelt it out using keywords such as Then or End If, that's a lot of extra typing compared to hitting the tab or backspace key on a new line.

  22. Newer ›

or Sign Up to reply!