Page 18 of 46 FirstFirst ... 81516171819202128 ... LastLast
Results 681 to 720 of 1810

Thread: TwinBasic

  1. #681
    Member
    Join Date
    Nov 2018
    Posts
    56

    Re: TwinBasic

    Quote Originally Posted by baka View Post
    what I don't like:
    I like this C feature, add it now!
    .
    I absolutely get that. I've been in the C# world for nearly 2 decades now, but I got my start in VBA, and then VB6.

    I understand the BASIC ethos. The B stands for beginner after all - "Make it easy for humans to follow". I wouldn't want to propose anything that prevented that. But generics, overloads, and delegates do exist these days, and to pretend they don't does learners a disservice.

  2. #682
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: TwinBasic

    Quote Originally Posted by mansellan View Post
    But generics, overloads, and delegates do exist these days, and to pretend they don't does learners a disservice.
    You have no idea what a huge deal this is. VB.Net introduced me to so many new concepts I had never imagined I'd ever be able to grasp or find useful.

    A big example for me is templates in C++. For years I'd have so much trouble understanding them. Like what is their point, why are they so popular, how can I use them, why didn't they just do it the old fashion way. They used to drive me crazy because they were so alien and confusing to me. When I moved to VB.Net which introduced me to generics, I was finally able to grasp them. This is such a fantastic point you made here.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  3. #683

    Thread Starter
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,721

    Re: TwinBasic

    I will use

    a = a + 2

    but I could do

    a += 2

    as well, if its available.
    I told u, I dont care about += its quite simple stuff, and easy enough to understand.
    but u need to be careful since that kind of syntax can open up a lot of more complicated one.

    anyway I will keep using a = a + 2 since its easy to understand.
    for me it means

    a = will became a + 2

    so its not algebra a = a

    a += 2 means:

    a plus is equal to 2
    or
    a plus will became 2
    or
    a plus, (plus what?) is equal to 2

  4. #684
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,412

    Re: TwinBasic

    Despite what I said in my last post, I do think feature adoption in a Basic language should be relatively slow - maybe the slowest of any language. Being on the forefront of fashionable syntax is not a good idea. That said, adopting the best time-tested ideas from other languages makes sense, especially if you want to appeal to a new generation of programmers. After all, Basic uses inventions like these.

  5. #685
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: TwinBasic

    Quote Originally Posted by jpbro View Post
    Despite what I said in my last post, I do think feature adoption in a Basic language should be relatively slow - maybe the slowest of any language.
    I can co-sign this. Despite what everyone might think, I'm not advocating TwinBASIC be turned into C#. I just think there should be a common baseline of "must haves" for any language in 2021 and the += family of operators should be among them. Async/Await would be another as we live in a multi-core world now. Both of these can be implemented without sacrificing VB6 compatibility.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  6. #686
    Frenzied Member
    Join Date
    Feb 2015
    Posts
    1,025

    Re: TwinBasic

    Quote Originally Posted by Niya View Post
    No it's not a Python term. The official name for operators like += is augmented assignment operator. It's language agnostic.
    I'm not sure I've ever come across the term 'augmented assignment operator' (until I just googled it).
    I've known them as 'compound assignment operators'.
    In real life though surely everyone just calls them assignment operators.

    I'd suggest just googling 'assignment operators' would give less Python-biased results.

  7. #687
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: TwinBasic

    Quote Originally Posted by VB6 Programming View Post
    I'd suggest just googling 'assignment operators' would give less Python-biased results.
    Yea, mostly C and JavaScript results showed up for me.

    Still, I get a lot of Python results for quite a few language-agnostic queries.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  8. #688
    Member
    Join Date
    Nov 2018
    Posts
    56

    Re: TwinBasic

    Quote Originally Posted by Niya View Post
    I can co-sign this. Despite what everyone might think, I'm not advocating TwinBASIC be turned into C#. I just think there should be a common baseline of "must haves" for any language in 2021 and the += family of operators should be among them. Async/Await would be another as we live in a multi-core world now. Both of these can be implemented without sacrificing VB6 compatibility.
    Careful... Async/Await is very, very tricky. It pretty much rewrites your code into Begin/End methods. If it finds it needs to do that inside a loop, it has to write an entire state machine for you to capture all the variables you might be using after the await. It's... fiendish.


    It could easily divert a single developer (no matter how awesome) into a rabbit hole. Microsoft likely spent millions on it to fix all the edge cases.

  9. #689
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    Quote Originally Posted by jpbro View Post
    I just want to say one more thing about the "+=" debate, especially in regard to newcomers. This operator is not much different than saying 1 + 1 or 1 + 2. What is "+"? Shouldn't a true Basic force us to write X = 1 Plus 1? Perhaps we should make it even more natural English and enforce a syntax like "X Equals One Plus One". Of course not, because we learned as children what symbols like +, =, 1, 2, 3, etc.. mean. I have X school age children who might eventually be part of a new generation of programmers coming to a new generation of Basic. They are taught some programming at school and they have no problem understanding the += operator. AFAIAC it's done, the programming world has decided that it's a useful operator and whether you like it or not, you're wrong if you're on the other side of this one. It's like getting mad about the letter W. You've already lost, so pick a fight you can still win.
    AFAIK, math is taught like this:

    a = 1
    a = b
    a = 1 + 2
    a = b + 1
    a = a + 1

    Do you really think that that changed at school?

    What is "natural" is what you do outside programming and you are already familiar before learning programming.

  10. #690
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Re: TwinBasic

    The feature is already there then what is the debate all about? For it to be removed from TB? You guys have debated for pages in this thread, perhaps those who dislike the feature may take it to the creator of TB instead of wasting time debating here.
    Regards,

    â„¢

    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  11. #691
    Member
    Join Date
    Nov 2018
    Posts
    56

    Re: TwinBasic

    Quote Originally Posted by Eduardo- View Post
    AFAIK, math is taught like this:

    a = 1
    a = b
    a = 1 + 2
    a = b + 1
    a = a + 1

    Do you really think that that changed at school?

    What is "natural" is what you do outside programming and you are already familiar before learning programming.
    a = 1
    a = b
    a = 3
    a = b + 1
    a++

    FTFY

    (and indeed, static analysis tools would have fixed all of these)

  12. #692
    Member
    Join Date
    Nov 2018
    Posts
    56

    Re: TwinBasic

    Quote Originally Posted by dee-u View Post
    The feature is already there then what is the debate all about? For it to be removed from TB? You guys have debated for pages in this thread, perhaps those who dislike the feature may take it to the creator of TB instead of wasting time debating here.
    Yep.

  13. #693
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: TwinBasic

    Quote Originally Posted by mansellan View Post
    Careful... Async/Await is very, very tricky. It pretty much rewrites your code into Begin/End methods. If it finds it needs to do that inside a loop, it has to write an entire state machine for you to capture all the variables you might be using after the await. It's... fiendish.


    It could easily divert a single developer (no matter how awesome) into a rabbit hole. Microsoft likely spent millions on it to fix all the edge cases.
    Oh I'm aware of how it works and how complicated it is internally but it has already become apart of the modern programming lexicon. However, owing to it's immense complexity, I can accept that the developers may have not have the resources to tackle it and on that grounds it would be prudent to avoid attempting to implementing it in TwinBASIC.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  14. #694
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,988

    Re: TwinBasic

    Quote Originally Posted by jpbro View Post
    It's like getting mad about the letter W.
    A long, long, time back, the comic strip B.C. ran a strip where the one-legged character Willy realized that he hated the letter W and anything that started with the letter W (an obvious issue). So, hating the letter W is a thing. I'm curious as to whether or not you picked that letter at random, or if you knew that hating the letter W was a thing?
    My usual boring signature: Nothing

  15. #695
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    Quote Originally Posted by mansellan View Post
    a++
    What kind of math is that?

    Anyway, I posted something wrong because a = a + 1 is not taught at school in math class anyway, a = a + 0 might be.

  16. #696
    Member
    Join Date
    Nov 2018
    Posts
    56

    Re: TwinBasic

    Quote Originally Posted by Eduardo- View Post
    What kind of math is that?

    Anyway, I posted something wrong because a = a + 1 is not taught at school in math class anyway, a = a + 0 might be.
    Um, I think you just proved my point? The math they teach at (high) school is equations. Not assignments.

    Have you seen the symbols used in higher math? I couldn't begin to understand them. You need special symbol sets just to approximate them. To submit a paper you need LaTeX. And time. Lots and lots of time.

  17. #697
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,988

    Re: TwinBasic

    Quote Originally Posted by Eduardo- View Post
    AFAIK, math is taught like this:

    a = 1
    a = b
    a = 1 + 2
    a = b + 1
    a = a + 1

    Do you really think that that changed at school?

    What is "natural" is what you do outside programming and you are already familiar before learning programming.
    Actually, that's NOT what I remember from school. In school, you are taught this:

    1 + 2 = a
    b + 1 = a
    1 + a = a

    It's only in programming that I have seen the assignment go from right to left. In school it was always left to right. That might be what confuses non-programmers, since we reverse what they are used to seeing.
    My usual boring signature: Nothing

  18. #698
    Member
    Join Date
    Nov 2018
    Posts
    56

    Re: TwinBasic

    Quote Originally Posted by Shaggy Hiker View Post
    Actually, that's NOT what I remember from school. In school, you are taught this:

    1 + 2 = a
    b + 1 = a
    1 + a = a

    It's only in programming that I have seen the assignment go from right to left. In school it was always left to right. That might be what confuses non-programmers, since we reverse what they are used to seeing.
    Might be a NA thing. Never saw assignments in high school in the UK.

  19. #699
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: TwinBasic

    Quote Originally Posted by Shaggy Hiker View Post
    Actually, that's NOT what I remember from school. In school, you are taught this:

    1 + 2 = a
    b + 1 = a
    1 + a = a

    It's only in programming that I have seen the assignment go from right to left. In school it was always left to right. That might be what confuses non-programmers, since we reverse what they are used to seeing.
    Yes, this is how I was taught in school as well.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  20. #700
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    Quote Originally Posted by mansellan View Post
    Um, I think you just proved my point? The math they teach at (high) school is equations. Not assignments.
    I have to concede in part.
    Now I remember that when I begun learning programming, a = a + 1 seemed a bit strange. Because a = a, not = a + 1.
    Still, the notation is familiar.

    Quote Originally Posted by mansellan View Post
    Have you seen the symbols used in higher math? I couldn't begin to understand them. You need special symbol sets just to approximate them. To submit a paper you need LaTeX. And time. Lots and lots of time.
    OK, but that is something very specialized, not taught at school (where most of the new programmer will come from).

  21. #701
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    Yes guys, I already said that the last line was a mistake.
    I have to leave it, at least for now. I'm too tired and make mistakes.

  22. #702
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,412

    Re: TwinBasic

    Quote Originally Posted by Shaggy Hiker View Post
    A long, long, time back, the comic strip B.C. ran a strip where the one-legged character Willy realized that he hated the letter W and anything that started with the letter W (an obvious issue). So, hating the letter W is a thing. I'm curious as to whether or not you picked that letter at random, or if you knew that hating the letter W was a thing?
    LOL I picked W for personal reasons I guess. I also have a pre-school aged child who is currently obsessed with the (English) alphabet. We have an almost non-stop ABC stuff going on around here. It gave me plenty of opportunity to think about how illogical it seemed that we call it double-U instead of double-V. I didn't investigate too far, but it seemed to fit the current discussion about a hatred of certain symbols.

    While we're here, I have an irrational hatred of leading underscores in names (I think it means something in C or C++? Maybe even double-underscores mean something? It drive me nuts). Even naked underscores bother me (e.g. something like (a, _, b) = Something). The weird part is that I'm fine with internal underscores and use them all the time (so something like This_Is_A_Variable scans fine for me). What can I say, I'm an irrational meat computer doing his best.

  23. #703
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,412

    Re: TwinBasic

    Quote Originally Posted by Eduardo- View Post
    AFAIK, math is taught like this:

    a = 1
    a = b
    a = 1 + 2
    a = b + 1
    a = a + 1

    Do you really think that that changed at school?

    What is "natural" is what you do outside programming and you are already familiar before learning programming.
    I'm ignoring the mistake, but math is absolutely taught differently at younger grades here. There is a certain amount of straight arithmetic like 1 + 1 = 2, there is also a lot of focus on different approaches to finding answers to questions like 532 + 129 = ?. When I was a kid you would do right-left math, but now they do left to right math. So, start with an estimate (500+100+ a bit left over = around 650?). Then do the actual math: 500+100 = 600, 30+ 20 = 50, 2+9= 11. 600+50= 650. 650+11 = 661. Pretty simple, and I find it works quite well across a wide range of large-ish numbers. The way I was taught I'd be carrying numbers and having to maintain a much larger mental state along the way working out a precise answer the whole way through. Interestingly, I started using the left-right approach myself after many years of programming financial(ish) software. It was faster to scan and do quick addition that way compared to the way I was taught.

    But they also teach programming now. So things like variable assignments come more naturally at a younger age. All of us here can figure out the answer to this puzzle easily, but not everyone in the general population can.

    Code:
    X = 1
    Y = 2
    X = X + Y
    
    Does X equal:
    
    A) 1
    B) 2
    C) 3
    It's not the symbols that are difficult, it's the idea of a symbol holding a value, and the symbol's value being modifiable by other symbol's values that is difficult. It's second nature to us a programmers, but it's a major mental leap for any newcomer. IMO, it's a much larger mental leap than the meaning of += versus + variable.

  24. #704
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    It was just an example.
    Operations with letters are not taught in the first grades.
    I think all around the world math must be taught more or less the same way, at least in Occident.
    There are trends that change over the years, but I think they change everywhere. And more now, that everything is globalized.

  25. #705

    Thread Starter
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,721

    Re: TwinBasic

    why are you trying to compare algebra with how basic is assigning values, strings and objects?
    we could have an entire discussion alone about that, tell me any language that is strictly following school methodology.

    VB is using A = something, as already explained before, " Let A be B ". and its part of VB6 syntax.
    its like you are trying to tell that "yes, we found something to complain about and we will use it".
    and your premise is that because VB6 is faulty, it means everything we add is ok. so lets add:

    += , -= , *= , /= , %= , <<= , >>= , &= , ^= , |= , ?: , || , && , == != , < <= > >= , () [] -> . ++ - - etc.

    why not, its something you learn in school already.

  26. #706
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: TwinBasic

    The Problem people have with "a = a + 1" in Basic, is that Basic has overloaded the "="-operator:
    Assignment AND equality/comparison
    Look at other languages
    a) Pascal: "=" equal - ":=" assign
    b) C/C++: "==" equal - "=" assign
    .
    .
    .
    .

    I'm not advocating to change it! It's the way Basic is.

    I'm still staying with my initial proposal: Offer people to write their own operators
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  27. #707

    Thread Starter
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,721

    Re: TwinBasic

    Zvoni yeah I think you are on the right track.
    maybe even a IDE setting.
    we can pick an option where we can change between VB and C Operation modes.
    that way people can choose.

    the overloaded "=" operator is what I like with VB6. I don't want := or ==, if I liked that I would use that language instead.

  28. #708
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: TwinBasic

    Baka, no need for an IDE setting or whatever.
    Since Wayne has already implemented those C-ish operators it's a fait accompli.
    No use to cry over spilt milk.

    TwinBasic offers NEW (intrinsic) operators we didn't have in vb6? Great! (ShiftLeft etc.)
    Did we need those C-ish intrinsic operators, when there is a perfectly valid way of doing things in a "Basic" way? Not really!
    BUT, offer to write your own operators, and people can define their C-ish operators to their hearts contents
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  29. #709
    Frenzied Member
    Join Date
    Feb 2015
    Posts
    1,025

    Re: TwinBasic

    Quote Originally Posted by dee-u View Post
    The feature is already there then what is the debate all about? For it to be removed from TB? You guys have debated for pages in this thread, perhaps those who dislike the feature may take it to the creator of TB instead of wasting time debating here.
    +1

    or do I mean +=1

  30. #710
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    Quote Originally Posted by baka View Post
    the overloaded "=" operator is what I like with VB6. I don't want := or ==, if I liked that I would use that language instead.
    Exactly.

    Quote Originally Posted by Zvoni View Post
    Offer people to write their own operators
    That would be a Babel tower. Everyone with his own syntax.

  31. #711
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,120

    Re: TwinBasic

    Quote Originally Posted by dee-u View Post
    The feature is already there then what is the debate all about? For it to be removed from TB?
    Now that would be hilarious and explains why cries to "keep it more BASIC-ish" are so funny in this thread.

    In most C/C++ compilers there is built-in ASM support which 99.99% of C/C++ programmers never use but I've never heard anyone complaining about it being available like some VB6 developers would like to keep the vNext language simple (and stupid).

    cheers,
    </wqw>

  32. #712
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,235

    Re: TwinBasic

    Rather than all this bickering, why not create a forum poll on a specific language variation that you would like to have, a poll on each that we can bothered to raise. Then we can simply vote on it.

    The results could be maintained and could form a sort of blueprint-for-the-BASIC-that-has-yet-to-come.

    It wouldn't be binding of course but it might act as a guide to the desires of those who are interested, if nothing more.
    Last edited by yereverluvinuncleber; Dec 16th, 2021 at 06:08 AM. Reason: typos removed
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  33. #713
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,235

    Re: TwinBasic

    Personally, I find that having two or more languages under one's belt and being relatively familiar in both gives you a perspective that change is not always wrong and that compatibility in itself is useful. I often find myself creating polyfills to create missing or obsolete VB6 functions when programming in VB.NET and sometimes even when using .js - and vice versa.

    Curly brackets, semi colons, BEGIN and END statements, ==, += from C, .js or Delphi all make some sort of sense when you have to program in them for a while and become familiar - and not so alien. Sometimes BASIC is more understandable in its brevity, certainly when compared to Delphi. Most often though, it is more verbose but as a result quite understandable, certainly when compared to C.

    BASIC is a good place to start but is important to remember to maintain the ethos of being a beginner language capable of more or less anything with a fair wind. If we just follow that mantra but also allow flexibility. we are still in a good place.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  34. #714
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: TwinBasic

    Quote Originally Posted by Eduardo- View Post
    Exactly.



    That would be a Babel tower. Everyone with his own syntax.

    Your point?
    If someone with such "own" syntax asks for support, he can get it in the "official basic" way.

    Would be the same as: "Why is my Function not working?" showing only the call to it, but not the code of it.

    And now i'm out of this discussion.
    It's there, live with it.
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  35. #715
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    Quote Originally Posted by Zvoni View Post
    And now i'm out of this discussion.
    It's there, live with it.
    LOL! I didn't agree to one thing, showing the reason, that is something obvious, and you get offended?

    Of course if someone inherits a projects from someone else, in a new job or wherever, and comes to a forum with an unknown custom syntax that the previous programmer invented, this poor new programmer won't get any help.

    I don't mean you particularly Zvoni, but reading other posts from other people it seems that some people think that discussing something is bad, it is fighting, that one have to win and others to lose.

    What wrong minded... how can you improve something if you don't evaluate each option, brainstorming, having people that think in one way and others in another?

  36. #716
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: TwinBasic

    Quote Originally Posted by Eduardo- View Post
    LOL! I didn't agree to one thing, showing the reason, that is something obvious, and you get offended?

    Of course if someone inherits a projects from someone else, in a new job or wherever, and comes to a forum with an unknown custom syntax that the previous programmer invented, this poor new programmer won't get any help.

    I don't mean you particularly Zvoni, but reading other posts from other people it seems that some people think that discussing something is bad, it is fighting, that one have to win and others to lose.

    What wrong minded... how can you improve something if you don't evaluate each option, brainstorming, having people that think in one way and others in another?
    Ah, Ed.
    has nothing to do with you.
    I respect opinions of others (even if i don't agree with them), and i'm definitely not offended, if someone disagrees with me, as long as he/she can provide plausible reasons from their point of view (which you did).

    And:
    Discussion <> Fight
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  37. #717
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,996

    Re: TwinBasic

    Quote Originally Posted by Zvoni View Post
    Ah, Ed.
    has nothing to do with you.
    I respect opinions of others (even if i don't agree with them), and i'm definitely not offended, if someone disagrees with me, as long as he/she can provide plausible reasons from their point of view (which you did).

    And:
    Discussion <> Fight

  38. #718
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,412

    Re: TwinBasic

    Quote Originally Posted by Zvoni View Post
    Discussion <> Fight
    Maybe we should be able to write Discussion != Fight in Basic. I'm kidding, I'm kidding!

  39. #719
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: TwinBasic

    Quote Originally Posted by baka View Post
    Zvoni yeah I think you are on the right track.
    maybe even a IDE setting.
    we can pick an option where we can change between VB and C Operation modes.
    that way people can choose.

    the overloaded "=" operator is what I like with VB6. I don't want := or ==, if I liked that I would use that language instead.
    The biggest problem with an IDE setting is what happens if you open a project from someone who has their IDE set up differently to yours? Would the code still compile if your IDE was set to not use the += syntax and their code was written that way? If that would be a compile failure then you have instantly caused fragmentation amongst the users, if it would compile then why bother with an IDE setting anyway? Just a thought, probably something Wayne would be best to answer is if tB supports .editorconfig files as a way of managing this kind of thing.

  40. #720
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: TwinBasic

    Quote Originally Posted by Zvoni View Post
    As i said: Implement writing your own operators, and all that stuff would be a non-argument, because everyone could then write his own shortcuts like he/she likes them
    Code:
    Public Operator +=(ByVal ALong As Long, Optional ByVal AStep As long = 1) As Long
       Return ALong + AStep
    End Operator
    The problem you get with that is somebody could then make the += operator do something non-obvious. That could result in the following two examples doing two completely different things...
    Code:
    Dim i as Integer = 10
    i = i + 5
    and
    Code:
    Dim i as Integer = 10
    i += 5
    The only way you would be able to tell while reading the code is to look at the source of an operator and see exactly what it does. I have seen code like that in C++ (many, many years ago thankfully) that resulted in a very hard to track down bug, lots of swearing, and an utter inability to understand why the original dev chose to do things that way.

    Making += a shorter version for an addition and an assignment is a much safer option.

Page 18 of 46 FirstFirst ... 81516171819202128 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width