Snippet Codes sections

Discussion in 'Site Feedback' started by Jonforum, Mar 10, 2018.

?

you like?

  1. yes

    6 vote(s)
    85.7%
  2. no

    1 vote(s)
    14.3%
  1. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,436
    Likes Received:
    1,135
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
    I would like to address a small idea.
    What would you think of an additional section called Snippets and codes?
    I think it would be a good way to make available a small library of snippets that will have nothing to do in the plugin section. !

    A good way to share information that would also have a playful side.

    snippet.jpg
     
    #1
    Thomas Smith and Kvothe like this.
  2. Thomas Smith

    Thomas Smith Developer of "Delta Origins" Veteran

    Messages:
    1,950
    Likes Received:
    4,027
    Location:
    USA
    First Language:
    English, French
    Primarily Uses:
    RMVXA
    That sounds good, I would like to see that!
     
    #2
    Jonforum likes this.
  3. Kvothe

    Kvothe The Bloodness Veteran

    Messages:
    84
    Likes Received:
    343
    First Language:
    Brazil
    Primarily Uses:
    N/A
    I agree with it! On the best forum of Brasil, MRM (R.I.P 'cause don't exist any more), we had a section for this.
     
    #3
    Jonforum and Thomas Smith like this.
  4. Andar

    Andar Veteran Veteran

    Messages:
    25,452
    Likes Received:
    5,411
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    You are not the first to have that idea, something similiar has been in discussion internally for the last few months. I don't know when the last questions on how to handle it will be solved however.
     
    #4
    Jonforum and Thomas Smith like this.
  5. Shaz

    Shaz Veteran Veteran

    Messages:
    35,320
    Likes Received:
    9,858
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    What is the difference between a snippet and a plugin? They both have to be implemented the same way - as a .js file in the plugins folder, and added via the plugin manager. It just seems to me an extra place to search if you're looking for something.
     
    #5
    Thomas Smith likes this.
  6. Thomas Smith

    Thomas Smith Developer of "Delta Origins" Veteran

    Messages:
    1,950
    Likes Received:
    4,027
    Location:
    USA
    First Language:
    English, French
    Primarily Uses:
    RMVXA
    Well, a snippet is a small plugin.
     
    #6
  7. Shaz

    Shaz Veteran Veteran

    Messages:
    35,320
    Likes Received:
    9,858
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    So why not just put it in the plugin section?

    As it is, there are already 2 places to look for plugins on this forum - one in the Plugin Releases folder, and the other in the Plugin Requests folder, which is where people usually put small snippets in response to requests.

    I can see some pros and cons of a section just for small plugins, but as a plugin writer, I don't want to have to decide which section my plugin needs to go into, especially if the only thing to base it on is "is it small?" What is small?

    It obviously has merit, if the mods/admins have already been discussing it. I personally don't see the need though.
     
    #7
  8. Thomas Smith

    Thomas Smith Developer of "Delta Origins" Veteran

    Messages:
    1,950
    Likes Received:
    4,027
    Location:
    USA
    First Language:
    English, French
    Primarily Uses:
    RMVXA
    That's a good point. I have a VX Ace script thread (in my signature, under "my awesome resources") and those scripts are what I would call "snippets." they are very short.
     
    #8
  9. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,436
    Likes Received:
    1,135
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
  10. Thomas Smith

    Thomas Smith Developer of "Delta Origins" Veteran

    Messages:
    1,950
    Likes Received:
    4,027
    Location:
    USA
    First Language:
    English, French
    Primarily Uses:
    RMVXA
    #10
  11. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    12,118
    Likes Received:
    6,565
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    We've actually been in discussion on a solution to this for a while, it's just taken a back seat to other things (including real life issues for us mods). Hopefully, it will be up soon.
     
    #11
    Jonforum likes this.
  12. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    966
    Likes Received:
    164
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    As I understand snippet's to be the small parts of code (or perhaps an add on or modification) written for members that ask for patches or features etc. Similar to the plugins or scripts threads, I think having a snippet thread or pinned post that had links to the posts where the code that was made could be useful. Sometimes solutions for problems are lost due to be buried in the mountain of threads that get made. Unless google has a running list of all the threads and posts in this forum, then I may not find the patch that was made and make a new thread for the same or similar request.
    Something like that, it's sort of a rough idea anyways and would require a lot of work, I'm sure.
     
    #12
  13. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,436
    Likes Received:
    1,135
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
    in a general way

    a plugin: it a code that allow to manage some code in a libs and add features.
    a snippets: it a simple hack that modifies the behavior of a other code.

    I saw some plugins edit only a variable and be called plugin, it makes me rather laugh.
     
    #13
  14. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    12,118
    Likes Received:
    6,565
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    #14
  15. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,436
    Likes Received:
    1,135
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
    #15
  16. Shaz

    Shaz Veteran Veteran

    Messages:
    35,320
    Likes Received:
    9,858
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    No matter how many lines, it's still a plugin, because that's how it has to be implemented.

    I strongly recommend against changing the core files, even for a one-line mod. Because you forget you've done it, you take an update and update your project, then you have to figure out why things are different, which could be a massive waste of time if you did it a long time ago.

    topic = thread. They are the same thing.
     
    #16
    mlogan likes this.
  17. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,436
    Likes Received:
    1,135
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
    In a general way to stay clean, you must have a special file to replace all all method from rmmv.
    as you said, when you update the original source, it becomes impossible to manage.

    ho ok, sorry, maybe my bad English !
    for me, it not same thing in my language.:stache:
     
    #17

Share This Page