Code snippet sharing
-
May be one can post these source code snippets in to the wiki.
-
Why not use http://qt.pastebin.com/ ?
-
I think we should prefer one hosted by Qt only and avoid third party sharing sites. If providing a new interface is not on the roadmap, then posting the code snippets in the wiki like Forum Nokia will be a better option.
-
[quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]
That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.
Maybe I will write a plugin once I have a web service API exposed :D
-
[quote author="Milot Shala" date="1273218610"][quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]
That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.
Maybe I will write a plugin once I have a web service API exposed :D[/quote]
An plugin to view code snippets will be really great.
-
[quote author="Milot Shala" date="1273218610"][quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]
That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.
Maybe I will write a plugin once I have a web service API exposed :D[/quote]
I really like the idea, particularly the integration into Qt Creator. I have made it a feature request for future versions since it will need both coding and legal work.
Maybe we can use the pastebin for now and link to the snippets on a wiki page so they don't get lost?
-
[quote author="Alexandra Leisse" date="1273235820"][quote author="Milot Shala" date="1273218610"][quote author="Henrik Hartz" date="1273215603"]Why not use http://qt.pastebin.com/ ?[/quote]
That's a good idea, but users cannot register and maintain their own code snippets and users are not able to see/use other users' code, it's not that convenient, it would be better to have something built-in right here in the developer network and as well have a Qt Creator plugin for sharing a snippet from Qt Creator itself, it can be also a wiki with a special category called "snippets" or something similar where users can post such code, and I am willing to have such support on Qt Creator.
Maybe I will write a plugin once I have a web service API exposed :D[/quote]
I really like the idea, particularly the integration into Qt Creator. I have made it a feature request for future versions since it will need both coding and legal work.
Maybe we can use the pastebin for now and link to the snippets on a wiki page so they don't get lost?[/quote]
Good to hear! Thanks Alexandra.
As per pastebin we can do that, or it can be better if everyone can share such snippets directly on the wiki and then filter wiki contents by user, if this can be done on this system?
IMO I think it is better to maintain such sharing on QtDN and not using third-party services such as pastebin because on pastebin every user should enter its information (some may leave the fields blank), here every user must be logged in to edit wiki, I think tracking of the changes and filtering can be easier here.
-
I know this is very old, but actually I started a project that accomplishes that:
https://github.com/cybercatalyst/qt-pods -
I know this is very old, but actually I started a project that accomplishes that:
https://github.com/cybercatalyst/qt-pods -
The idea is to have it organized in repositories. The graphical tool qt-pods (there will be a command line version in the future) loads a list from your defined sources, then offers packages for install. You just click on them and they install to your projects. The same way you remove them.
What happens is that they get added as git submodules and are woven together via a single .pri that is the single thing you need to include to you project. Then you can start using them! It's very easy, but it needs more people to come together, reformat the code and spread the word.
-
The idea is to have it organized in repositories. The graphical tool qt-pods (there will be a command line version in the future) loads a list from your defined sources, then offers packages for install. You just click on them and they install to your projects. The same way you remove them.
What happens is that they get added as git submodules and are woven together via a single .pri that is the single thing you need to include to you project. Then you can start using them! It's very easy, but it needs more people to come together, reformat the code and spread the word.