Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Link to different versions  (Read 6876 times)

0 Members and 1 Guest are viewing this topic.

Tukimitzu

  • Full Member
  • ***
  • Posts: 117
  • Anti-Hero Member
    • View Profile
Link to different versions
« on: August 15, 2016, 06:03:18 pm »
Hello,
I very much like the new "old version" warning on the website. It was very convenient for me while the 2.3.2 version was the most recent one. Now that it isn't, it's not that useful anymore, unless I update my library.

What if aside from linking to the most recent version, it gave you a link for each version? I don't know the complexity of such task, I'm just throwing it out there.

I'm talking first world problems here, the website is already great.

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Link to different versions
« Reply #1 on: August 16, 2016, 03:18:00 am »
2.3 tutorials
2.3.2 documentation

If you click on the website's Learn section, they're all at the bottom of that resulting page.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Tukimitzu

  • Full Member
  • ***
  • Posts: 117
  • Anti-Hero Member
    • View Profile
Re: Link to different versions
« Reply #2 on: August 16, 2016, 04:19:31 am »
What I mean is this: let's say Bob googles "sfml sprite", it will link me the sfml 2.0 (or whatever) sprite documentation. But Bob is not using the version 2.0 nor the latest one, he's using something in between. So it would be nice for Bob if the "old version" warning included links for every version so he be redirected to the version he wants.

The more I think about what I'm asking the more spoiled I think I am.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Link to different versions
« Reply #3 on: August 16, 2016, 09:17:22 am »
1. I don't think it's that hard to go back to the menu and select the version you want.

2. There's no reason to not upgrade, we ensure backward compatibility.

3. You can perfectly read the latest doc even if you use an older version, new things in the API are should be clearly marked as such.
Laurent Gomila - SFML developer

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Link to different versions
« Reply #4 on: August 16, 2016, 03:28:28 pm »
@Tukimitzu, there is already a thread with a discussion about this.

2. There's no significant reason to not upgrade, we mostly ensure backward compatibility.
Fixed :p
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Link to different versions
« Reply #5 on: August 16, 2016, 04:15:54 pm »
Quote
Fixed :P
I guess we can find more or less valid reasons to use an old version, but backward compatibility of API is a strong requirement; if you have an example of something that was broken between minor revisions, please tell us :P
Laurent Gomila - SFML developer

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Link to different versions
« Reply #6 on: August 16, 2016, 04:32:49 pm »
if you have an example of something that was broken between minor revisions, please tell us :P
2.3.2 - 2.4.0: Requirement of using setUniform instead of setParameter forcing all setParameters to be replaced to be able to use 2.4.
2.2 - 2.3: Requirement of more dependencies for building statically forcing all new dependencies to be added before the upgrade can be used.

I want to make it clear that I am not complaining; I'm simply stating some things that I have noticed. I upgrade usually as soon as I can and I am generally happy to update the code or build settings to match. My point was that it isn't always perfectly backwards compatible; some (slight) modifications are (sometimes) needed per versions.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: Link to different versions
« Reply #7 on: August 16, 2016, 07:50:02 pm »
2.3.2 - 2.4.0: Requirement of using setUniform instead of setParameter forcing all setParameters to be replaced to be able to use 2.4.

setParameter can still be used though, since it was deprecated, not removed.

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Link to different versions
« Reply #8 on: August 16, 2016, 09:54:43 pm »
setParameter can still be used though, since it was deprecated, not removed.
It can be used but - in some environments - not without modifying some settings.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Link to different versions
« Reply #9 on: August 16, 2016, 10:52:23 pm »
Strictly speaking, the same code will still compile with any new minor version. The environment, or warnings that may help you get rid of deprecated calls, are not part of API compatibility.

This is slightly off-topic though, so let's focus on the subject ;) My point was that documentation for 2.4 is valid for any 2.x, to the condition that new functions and classes are clearly marked (which is not the case, apparently ;D).
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Link to different versions
« Reply #10 on: August 17, 2016, 11:52:10 am »
My point was that documentation for 2.4 is valid for any 2.x, to the condition that new functions and classes are clearly marked (which is not the case, apparently ;D).

That'd be indeed something nice to have. If one has time and is motivated, I guess we only need a Doxygen macro, similar to the one for deprecation maybe, and to go through the changelog (or, better yet, diffs between git tags using git diff <V1> <V2> --ignore-space-at-eol 'include/**.hpp') to identify new features for each of the 2.x versions. If anyone is interested to do that...  ;)
SFML / OS X developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Link to different versions
« Reply #11 on: August 17, 2016, 12:33:48 pm »
Doxygen has \since for that purpose.
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Link to different versions
« Reply #12 on: August 17, 2016, 12:43:16 pm »
Good, that makes it even simpler!
SFML / OS X developer