|
|
#1 |
![]() Join Date: Mar 2012
Reputation: 1
Posts: 38
|
Wiki articles are really messy...
The source sdk's programming wiki has some really messy & intrusive code.
I am talking, mainly, about the article I read a couple days ago: https://developer.valvesoftware.com/..._GameUI_Panels First, right off of the bat, the guy starts MyPanel.cpp off as so: Code:
#include "cbase.h" #include "IMyPanel.h" using namespace vgui; #include <vgui/IVGui.h> #include <vgui_controls/Frame.h> Second thing wrong with this, is that he uses the vgui namespace and only implcitly access the namespace once, and then about a hundred other time uses the scope resolution operator... And then for the "Calling the panel" part, he uses a seriously crippled round about implementation of a singleton. Which he could have easily implemented without using a console variable, without modifying the source engine sdk's code (which I always try to avoid unless it is really required) and simply having a simple console command (with something like): MyPanel::getSingleton()->toggleVisible(); These kinds of mistakes are all over the wiki, and I think they should be cleaned up (maybe I'll look in to it when I get some time...) Last edited by Jeremy__: 04-01-2012 at 05:19 AM. |
|
|
|
|
|
#2 |
![]() Join Date: Mar 2012
Reputation: 204
Posts: 895
|
What do you expect, it is written mostly by amateur community. For example i've seen guy post a "fix" to the grenade tripmine compilation error, which as he reported on forums causes him to crash once he gets damaged.
Last edited by durrchet: 04-01-2012 at 05:52 AM. |
|
|
|
|
|
#3 | |
![]() Join Date: Mar 2012
Reputation: 1
Posts: 38
|
Quote:
I understand your point, I was just stating that it needs to be cleaned up if anyone has some time (I will be devoting some time to it over the weekends maybe...) |
|
|
|
|
|
|
#4 | |
![]() Join Date: Jun 2008
Reputation: 351
Posts: 1,804
|
Quote:
While it contains some official articles, the majority of content is information from users based on assumptions or testing. Articles from a wiki open to the community can't be expected to be flawless, that would defy the purpose of the whole system. You are definitely right that a lot of stuff should be improved. I have myself added code that could have been realized better but my intentions were not to provide information which should never be edited again but instead improve old things or just add something in general. |
|
|
|
|
|
|
#5 |
![]() Join Date: Mar 2012
Reputation: 204
Posts: 895
|
It indeed requires cleaning, just like any other wiki. Sadly i am not experienced enough to do heavy "fixing", so i only change small parts of problems which i stumble upon while looking for help on wiki.
|
|
|
|
|
|
#6 | |
![]() Join Date: Mar 2012
Reputation: 1
Posts: 38
|
Quote:
|
|
|
|
|
|
|
#7 | |
![]() Join Date: Jun 2008
Reputation: 351
Posts: 1,804
|
Quote:
EDIT: This is something I wrapped up because so many people were bugging me about it. It's far from a good tutorial or anything .
Last edited by Biohazard_90: 04-01-2012 at 03:43 PM. |
|
|
|
|
|
|
#8 | |
![]() Join Date: Mar 2012
Reputation: 1
Posts: 38
|
Quote:
|
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|