Reworking Tips and Tricks forum section

Developed or developing a new product in PureBasic? Tell the world about it.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: Reworking Tips and Tricks forum section

Post by USCode »

Fred wrote:... There is more than 3000 topics, so we can't do it alone, may be some of you want to join us to do the refactoring ? ... What do you think ? Does it worth it ?
I think it is an admirable idea but ONLY if the work is done exclusively by volunteers and not Fred and Freak ...
I would much rather have their valuable time spent working on PB itself!
Last edited by USCode on Sun Aug 18, 2013 7:39 pm, edited 1 time in total.
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Reworking Tips and Tricks forum section

Post by Fred »

Thanks for your input. I will go on with the original idea, as some of you seems interested, and we will see what will happen :).
User avatar
Demivec
Addict
Addict
Posts: 4257
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Reworking Tips and Tricks forum section

Post by Demivec »

I would be interested in helping.

In addition to editing the first posting to include a notice regarding the updated status of the code, would the goal be to simply edit and replace the previously posted code in each thread or to make a new post with the updated code?
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Reworking Tips and Tricks forum section

Post by TI-994A »

Fred wrote:"Updated for 5.20+"
Considering that most users would be using the latest versions of PureBasic anyway, it's undoubtedly a good idea to keep the forum examples relevant. Hope I could be of help too. :)
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Reworking Tips and Tricks forum section

Post by luis »

I just thought of another reason against it totally unrelated with the "worthiness" I mentioned in my first post.

If you give the permission to edit the original post, and if its contents are replaced by the new, updated code, one thing that can happen is the person upgrading the code can screw it.
With many trivial codes the problem is probably not existent, with more complex code it's certainly a possibility. A new data type replacing an old one, a voluntary side effect in the original code not happening anymore "by default", etc. It's easy to miss it.

That's why I think the original code should never be touched unless you wrote it (it's already possible to do so thanks to the edit function), and that's why posting the code updated with a link to it from the original thread as already possible it's the best thing.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Re: Reworking Tips and Tricks forum section

Post by Bisonte »

I agree with luis.

It's better to see the original code and ask : "how to convert it to the current version ?"

p.s.: I can see a deamon now, that will write in every topic : "how to convert it to the current version ?" :twisted:
Last edited by Bisonte on Sun Aug 18, 2013 5:50 pm, edited 1 time in total.
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
Olliv
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Sep 22, 2009 10:41 pm

Re: Reworking Tips and Tricks forum section

Post by Olliv »

Reworking section is a good idea.

2 problems I could see are:
* Lots of topics
* Many codes in a lonely topic

A sweeter method should consist in:
* Just add one or more new post in a topic including a key expression within this topic (ex: "2V520")
* Every week or every month, a bot is executed to search these key expression "2V520". For each expression found, a request is then executed to modify the title of the topic. Ex: Add "(5.20)" in the head of the title.

Original writers and updaters stay then visible.
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 796
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: Reworking Tips and Tricks forum section

Post by Zebuddi123 »

sec wrote:it's great, i want join this project!
@ LuCiFeR[SD]

Nice Link satanicdreams.site90.com Comodo pulls it as a Known phishing/malware/virus site and blocks it :twisted:

Zebuddi.
malleo, caput, bang. Ego, comprehendunt in tempore
Little John
Addict
Addict
Posts: 4773
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Reworking Tips and Tricks forum section

Post by Little John »

luis wrote:If you give the permission to edit the original post, and if its contents are replaced by the new, updated code, one thing that can happen is the person upgrading the code can screw it.
With many trivial codes the problem is probably not existent, with more complex code it's certainly a possibility. A new data type replacing an old one, a voluntary side effect in the original code not happening anymore "by default", etc. It's easy to miss it.
Yes, the risk is not unlikely, and this will certainly happen. Frankly speaking, I wouldn't like that my code is edited by someone who hasn't been personally authorised by me to do so.
luis wrote:That's why I think the original code should never be touched unless you wrote it (it's already possible to do so thanks to the edit function), and that's why posting the code updated with a link to it from the original thread as already possible it's the best thing.
Agreed. However, that might "blow up" the Tips & Tricks section. And say somebody writes an updated version of some old code of mine, and later I update the code myself by editing the original post. Then I'll have to add a note that the other update is not up-to-date anymore. That might cause some confusion.

So it'll be better just to create a new sub-forum for 5.20 compatible code, and let each contributer post updated versions of their own code to it, as already has been suggested.
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Re: Reworking Tips and Tricks forum section

Post by LuCiFeR[SD] »

Zebuddi123 wrote:
sec wrote:it's great, i want join this project!
@ LuCiFeR[SD]

Nice Link satanicdreams.site90.com Comodo pulls it as a Known phishing/malware/virus site and blocks it :twisted:

Zebuddi.
good grief! let my get my comodo proof tinfoil hat out :shock:

google safebrowsing
VirusTotal
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Reworking Tips and Tricks forum section

Post by skywalk »

How is this proposal better than just posting a reply to the original tip/trick?
This way, the original and updated code are there for all to see.
The new LTS model demands that legacy versions of PB tips/tricks remain intact.
I am also against editing someone else's post.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Reworking Tips and Tricks forum section

Post by Fred »

The whole point is to find code easily, so it has to be on the first post, or it can be burried in the topic if someone post something else right after. We don't plan to do that at every release, it's mostly a one time shot and we will be OK for the next 10 years ;). Let's give it a try and will see how it goes along.
Little John
Addict
Addict
Posts: 4773
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Reworking Tips and Tricks forum section

Post by Little John »

Fred wrote:Let's give it a try and will see how it goes along.
If a plan has too many obvious problems and there are better alternatives at the same time, then there is no point in trying that plan.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Re: Reworking Tips and Tricks forum section

Post by Rescator »

My suggestion is this:

Turn Tip's and Tricks into just a forum, section/category.

Under that make sure there is at least 3 sub forums called something along the lines of:

* Tips & Tricks *

*** PureBasic 5.20 LTS *** (Tested/works on 5.20 LTS)

*** Current *** (The latest Development versions)

*** Archive *** (v5.11 and older)




This should be the best of both worlds.
The selected mods will move things to the 5.20 subforum after making sure it works.
The stuff that works on the latest versions of PureBasic is moved to Current.
While the majority of todays Tip's and tricks ends up in the Archive.


***************************************************


The alternative is to add a PHPBB plugin to provide a tagging feature.
That way when folks code or edit threads can select the tag.
And what should the tag be?
How about the version of PureBasic?
Each time a new release of PureBasic is out Fred or freak adds a new tag.

This should make things easier in the Bugs forum too as one could search/sort by the tags.
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

Re: Reworking Tips and Tricks forum section

Post by BorisTheOld »

Little John wrote:There are two classical nonsense "arguments".

One is: "You have done this in the past, so keep doing it now."

The other is:
BorisTheOld wrote:You haven't done this in the past, so why do it now?
And there's one way of making vacuous comments -- quoting out of context. :)
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
Post Reply