Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@frogandtoad WOW, now I just discovered the side by side diff type display. That is new AFAIK.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@frogandtoad I have never seen that, how do you invoke it? Here is what I see when I do Cmd-F
CTRL+SHIFT+F on Windows?
CTRL+SHIFT+F on Windows takes me to a search of the Arduino website, which does work OK.
Best bet is to check: "File -> Advanced -> Keyboard Shortcuts" or "Alt-Ctrl+Comma".
You can also edit the shortcuts there too.
Now that I checked, I don't see a "side by side diff type display", so not sure what @zander meant by that, as I assumed he was describing an in built diff tool feature?
@frogandtoad YES, I had the Find pane, then two copies of my sketch, one before the changes, one after the changes and IIRC all I had to do was scroll one and they both scrolled and click somewhere to 'accept' the displayed change.
I was hoping you would know about this because I don't remember how I got there.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@frogandtoad Here is a screen grab of the 'diff' display. It's possibly useful, but I 'think' I see errors in the counts, and I am not a fan of tiny fonts but still all good.
I think I also found my exclude feature, Arduino calls it fold. Still playing with it but hopeful.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@frogandtoad Here is a screen grab of the 'diff' display. It's possibly useful, but I 'think' I see errors in the counts, and I am not a fan of tiny fonts but still all good.
I think I also found my exclude feature, Arduino calls it fold. Still playing with it but hopeful.
The following link sheds some light on what happened to the split screens featur:
@frogandtoad Not sure if it's the same feature. This is RC8, doing a FIND / REPLACE two windows that scroll in synch showing the usual diff stuff. I stumbled on it when playing with the Find Icon on the left (magnifying glass icon) as opposed to the IDE 1 Command-F (Mac).
Also, what I have been calling excluding (from 50 years ago SPF) is now known as Code Folding. There is about a dozen keystroke cmds related to folding. I haven't tried them all out, but it is an improvement. With SPF I specified where to not show lines, the modern approach is to take away my choice and instead use logical levels like if and else levels.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@frogandtoad Not sure if it's the same feature. This is RC8, doing a FIND / REPLACE two windows that scroll in synch showing the usual diff stuff. I stumbled on it when playing with the Find Icon on the left (magnifying glass icon) as opposed to the IDE 1 Command-F (Mac).
The link I provided sheds some light on what happened to it, since you use a Mac, your download might be different depending on day of download etc, but it appears they are aware of it.
Also, what I have been calling excluding (from 50 years ago SPF) is now known as Code Folding.
Code folding is still available in the rc8 IDE, the drop down carrots are hidden right next to the line numbers on mine if you hover over them - I prefer that over the plus symbols in the IDE code window itself.
@frogandtoad I knew about IDE 2 having the folding, didn't know it was an option in 1, code folding was a term I knew from compiler optimization 50 years ago so didn't associate it with what I knew as eXclusion. I don't see any + symbols in RC8, just the on demand carets. I would prefer they stay displayed, I wonder if there is a setting for that somewhere?
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@frogandtoad I knew about IDE 2 having the folding, didn't know it was an option in 1, code folding was a term I knew from compiler optimization 50 years ago so didn't associate it with what I knew as eXclusion. I don't see any + symbols in RC8, just the on demand carets. I would prefer they stay displayed, I wonder if there is a setting for that somewhere?
That's right... in the latest (old version) 1x of the IDE, it's an option turned on via the preferences page, and it uses the '-' and '+' character symbols to do the code folding. I don't mind the later style at all.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
Thanks Ron, have downloaded it for both Linux and Windows... Linux AppImage working OK, Windows version will not even launch... looks like they have broken it again 🙂
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
The Linux version seems fine, though I am still experiencing some freezing on my Windows machine, but I think that's just my machine, as I've screwed around with it a lot lately 🙂 I'll test the latest version in a Windows 8.1 VM and see how that goes, and let you know.
Still haven't finished building my new machine yet... hopefully this week!
We use cookies on the DroneBot Workshop Forums to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.