Maybe a future lesson then would be about include files.Pazl wrote:I do not want to limit the schoolboys. At the beginning of teach 800 lines is enough, but in the future it may be not enough.

Maybe a future lesson then would be about include files.Pazl wrote:I do not want to limit the schoolboys. At the beginning of teach 800 lines is enough, but in the future it may be not enough.
The limitation still applies. It's not exactly 800 lines or any specific number of lines. It really depends on the code. I think the hard limit is expressed internally as some number of bytes of compiled code, which just happens to be about 800 lines of average source code.#NULL wrote:Maybe a future lesson then would be about include files.Pazl wrote:I do not want to limit the schoolboys. At the beginning of teach 800 lines is enough, but in the future it may be not enough.
Hi, Pazl. I had a very similar idea. I posted about it here: viewtopic.php?f=7&t=71397 I was thinking about the US. Thousands of universities and colleges, and almost all of them require that students take an introductory course in "computers," which almost always involved writing at least one little program. Right now, everyone downloads Microsoft Visual Studio Community Edition because it's free. But it also causes problems because it is so big, so professors have to spend a lot of time just helping students get it to run.Pazl wrote:Hi all.
It would be great if one of the old versions, for example PureBasic 4.02, was free. Then one would be able to teach schoolboys using PB. Yes, I know about the educational license, but it does not allow installing PB on schoolboys home computers, which is necessary for solving homework tasks. And unfortunately the school is not ready to buy an educational license. For the smallest countries with low income, € 199 is not small money (me need 2 months to work to earn this money). The school administration offers me to choose a free programming language.
Thanks.
But if the old version fits most of their needs, then that might prevent that person buying the newer version. I've experienced that myself, when someone emailed me with a support question for one of my apps. Turns out they were using an older free version that I put up on GiveAwayOfTheDay, and when I said they'd need to upgrade to the latest version to get the functionality they needed, they politely declined and said they'd just keep using the free version.Thorium wrote:If an old version would be made free, i think it would be a great solution.
When I tried it, I hit the limit somewhere around 800 lines, by including a similiar second code at the end of the first file I could aproximately double that, and the lines of both files where something like increasing a variable or something like that, that doesn't get optimzed away, IIRC.RobertSF wrote:The limitation still applies. It's not exactly 800 lines or any specific number of lines. It really depends on the code. I think the hard limit is expressed internally as some number of bytes of compiled code, which just happens to be about 800 lines of average source code.
Code: Select all
file f.pb line 2
file f.pb line 3
; ...
file f.pb line 778
file f.pb line 779
file ff.pb line 2
file ff.pb line 3
; ...
file ff.pb line 780
file ff.pb line 781
file fff.pb line 2
file fff.pb line 3
; ...
file fff.pb line 780
file fff.pb line 781
file ffff.pb line 2
file ffff.pb line 3
; ...
file ffff.pb line 780
file ffff.pb line 781
Thanks, but it is only for Windows. School administration ordered to install free Linux OS on all computers, so as not to buy Windows. On home computers schoolboys will probably install Windows. And we need a compiler for Windows and Linux. I am now teaching the theoretical part (telling how computers work, etc.), and in the future I will begin to teach programming.RobertSF wrote:But you could also try something like AutoHotKey.
Many versions PB (even the current 5.62) can be downloaded from pirated sites, but it is illegal to use them and it is prohibited in school.Dude wrote:But if the old version fits most of their needs, then that might prevent that person buying the newer version.
You mentioned that this is in a low-income country, and many people in low-income countries don't mind using pirated software. I think it's very admirable that your school is determined not to do that. It says a lot about the school's integrity and legitimacy.Many versions PB (even the current 5.62) can be downloaded from pirated sites, but it is illegal to use them and it is prohibited in school.Dude wrote:But if the old version fits most of their needs, then that might prevent that person buying the newer version.
Just use the demo version of PureBasic and make a donation.Pazl wrote:Thanks, but it is only for Windows. School administration ordered to install free Linux OS on all computers, so as not to buy Windows. On home computers schoolboys will probably install Windows. And we need a compiler for Windows and Linux. I am now teaching the theoretical part (telling how computers work, etc.), and in the future I will begin to teach programming.RobertSF wrote:But you could also try something like AutoHotKey.
It is a pity that the developer of PureBasic ignored this topic.
Many versions PB (even the current 5.62) can be downloaded from pirated sites, but it is illegal to use them and it is prohibited in school.Dude wrote:But if the old version fits most of their needs, then that might prevent that person buying the newer version.
That is, who does not want to buy (and use illegally), he will not buy, but for training in school need a free legal version. This requirement is a school administration.