Reworking Tips and Tricks forum section

Developed or developing a new product in PureBasic? Tell the world about it.
Little John
Addict
Addict
Posts: 4527
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Reworking Tips and Tricks forum section

Post by Little John »

BorisTheOld wrote:
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. :)
That "argument" is plain nonsense, with or without context.
User avatar
fsw
Addict
Addict
Posts: 1572
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Reworking Tips and Tricks forum section

Post by fsw »

Fred wrote:It could work like that:

- We give you the right to edit the topic content
- There will be an hidden forum section to synchronize the work between contributing users
- After editing to have a 5.20 compliant code, put a small note at top in green: "Updated for 5.20+" or "Updated for 5.20+. Note: the built-in command xxxx() now provide this functionnality".

This doesn't have to be done immediately, you can work on one post every week or even less, the goal is to have an update section in about one year.

What do you think ? Does it worth it ?

Fred
I think it's a good idea.

However, there are some things to consider:
1) it only makes sense to work backwards as newer code can be easier to port than old code
2) not needed to port all tips as many are workarounds or their functionality is now implemented
3) crossfunctionality is key, mention if it's not

There are sure more things to consider.

Count me in to help :wink:

I am to provide the public with beneficial shocks.
Alfred Hitshock
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Reworking Tips and Tricks forum section

Post by J. Baker »

I don't mind updating any code that I have posted. Glad to see LTS! ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Reworking Tips and Tricks forum section

Post by Kuron »

1. The licensing on posted code is unclear. Do people even have the right to modify the code and repost it?

2. Updating outdated code only breaks the code for other users using the existing code or older versions of PB, which many of us still do.
Best wishes to the PB community. Thank you for the memories. ♥️
TassyJim
Enthusiast
Enthusiast
Posts: 153
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

Re: Reworking Tips and Tricks forum section

Post by TassyJim »

As a new user of PB, I regularly search through the Tips and Tricks section.
If the code is short, I can usually workout how to update it and the exercise helps me understand the language.

I do find that the conversations that follow a 'Tip' are very informative and often have alternative methods to explore.

For me, I would like a note added to the original post, pointing to a new post with the updated code.
The new code should also refer to the original post rather than updating the original.

Coming to PureBasic while a major update is happening has been exciting.

Jim
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4749
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Reworking Tips and Tricks forum section

Post by Fangbeast »

TassyJim wrote: For me, I would like a note added to the original post, pointing to a new post with the updated code. The new code should also refer to the original post rather than updating the original.
Jim
I prefer this method too. I went through all my old tips and tricks and pulled up something from 2006. Nothing worked of course, except on the compiler version it was written on and the two procedures used were totally replaceable by native PB gadgets!!

If I update that post 'in place', nobody running that version of the compiler or several revisions after (until the native PB gadgets were introduced to replace the functionality) would be able to use it or work it out.

And yes, I have heard of people running older versions of PB because they didn't need to update, didn't want to etc.

/me wanders off to see what can be done with all his old crap.
Amateur Radio, D-STAR/VK3HAF
Little John
Addict
Addict
Posts: 4527
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Reworking Tips and Tricks forum section

Post by Little John »

Fangbeast wrote:If I update that post 'in place', nobody running that version of the compiler or several revisions after (until the native PB gadgets were introduced to replace the functionality) would be able to use it or work it out.
Maybe you could use

Code: Select all

CompilerIf #PB_Compiler_Version < xxx
   <code for self-written gadgets>
CompilerEndIf
lakomet
User
User
Posts: 53
Joined: Mon Apr 04, 2011 3:56 am
Location: Russia,Angarsk

Re: Reworking Tips and Tricks forum section

Post by lakomet »

Rescator wrote: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)
+100500
Linux Mint Maya(Mate), x86, PureBasic 5.00(5.10b1)
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Re: Reworking Tips and Tricks forum section

Post by jack »

the few of my tip's & tricks posts can be discarded, except maybe the one on using Xnumbers.dll but it would not hurt my feelings if it's discarded as well.
btw that code still works with PB 5.20
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: Reworking Tips and Tricks forum section

Post by applePi »

the importance of Tips and Tricks are for its algorithms and strategies used. so the availability of the archived version of this forum are important
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8433
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Reworking Tips and Tricks forum section

Post by netmaestro »

I would like to help!
BERESHEIT
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Reworking Tips and Tricks forum section

Post by heartbone »

I was going to vote for a new Tips 'n' Tricks forum section, leaving the existing posts intact as they are,
but i see that it is too late. :o

How about renaming the new section Clever Code Solutions :?:
Keep it BASIC.
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Re: Reworking Tips and Tricks forum section

Post by Guimauve »

As far as I know, all of the source code I have put in the Tricks'N'Tips forum work as is in PB 5.20.
In fact many of my code I have created in PB 4.20 still work as is in 5.20.

The only exceptions are codes using screen and sprites. Most of them don't work anymore and unfortunately I don't have time to rework them until many months. So if someone can upgrade them :

go for it man, got for it !!!

Best regards
Guimauve
Dear Optimist, Pessimist,
and Realist,

While you guys were
busy arguing about the
glass of water, I DRANK IT !

Sincerely,
the Opportunist
User avatar
Mohawk70
Enthusiast
Enthusiast
Posts: 400
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: Reworking Tips and Tricks forum section

Post by Mohawk70 »

Demivec wrote: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?
Some of the old code posted depends on using non-open sourced LIBs / DLLs that haven't been updated & features

changed in newer versions of PB ( for instance IIRC Memory /Packing Unpacking ). Is it too much to ask for the

old code to be left untouched and an updated version (appropriately tagged of course ) and linked to in the first post

be added to the thread ... especially since the older versions are still available for download ?
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: Reworking Tips and Tricks forum section

Post by falsam »

Creating Tricks 'n' Tips (Archive) and Tricks 'n' Tips is a good solution. :)

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
Post Reply