Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

Community At long last, we're finally back

CappenVarra

phase-based phantasmist
Patron
Joined
Mar 14, 2011
Messages
2,912
Location
Ardamai
:yeah:
 

POOPERSCOOPER

Prophet
Joined
Mar 6, 2003
Messages
2,731
Location
California
Without having to read the whole article, why didn't you make a test version of the site instead of updating the live site as you go and having no front page for like a month and a half?
 

pipka

Savant
Joined
Apr 1, 2009
Messages
1,351
Location
The Penal Zone
Code:
........................,,-~*~,,
 
......................./:.:.:.:.:.|
 
......................|;.;.;.;.;./
 
......................|.;.;.;.;.|
 
............._,,,,,_.).;.;.;.;.|
 
.........,,-":.:.:.:."~-,;.;.;.|
 
........(_,,,,---,,_:.:.);.;.;..",,
 
......,-":.:.:.:.:.""-,,/;.;.;.;.;.",
 
.....:).__,,,,,,,,,___);.;.;.;.;.;|
 
...../"":.:.:.:.:.:.:¯""\;.;.;.;.;.,"
 
....\",__,,,,,,,,,,,__/;;;;;;;;;/\
 
.....\.::.:.:.:.:.:.:.;.);;;;;;;;;/:\
 
.......\,,,,,---~~~~;;;;;;;;,"::::\
 
.........."""~~--,,,,,,,,,,-"::::::::::\
 
...................\::::::::::::::::::::::\


codex_content.png
<- this is giving me a queer vibe...
 

Forest Dweller

Smoking Dicks
Joined
Oct 29, 2008
Messages
12,213
Well, this is interesting. I used to use front page all the time, and was looking forward to getting it back, but by now I've gotten used to the "forum home page," what with Alerts, Watched Threads, and What's New (though that last also featured in the old Codex, I just never used it). The only thing the front page has now that's over all of that is the ability to sort threads by forum type. If that functionality could be added into What's New...

Oh, I'd also like to point out that I agree that the red fonts are gay.
 

Akasen

Augur
Patron
Joined
Aug 24, 2011
Messages
280
Location
The Magicians Lair
PC RPG Website of the Year, 2015
I would totally buy the novelization of DarkUnderlords struggle to update the forums. Totally should call it "Mein Kampf". Although, some would argue that is the title of the book referring to a collective of stories all Codexers have against scum like Betheduh, Bioware, and even the Codexian Community itself.
 

DarkUnderlord

Professional Throne Sitter
Staff Member
Joined
Jun 18, 2002
Messages
28,360
Without having to read the whole article, why didn't you make a test version of the site
I did. I've had a test version of the Codex in various states for the last 6 months or more sitting on my localhost. I just thought I could finish it off (which was mostly finish the tag system and build a bunch of converters) quicker than I actually did. And spending two weeks styling the forums affected the time I had to get it done.

So when is Tacticular Cancer joining?
Yes.
 

thesheeep

Arcane
Patron
Joined
Mar 16, 2007
Messages
9,962
Location
Tampere, Finland
Codex 2012 Strap Yourselves In Codex Year of the Donut Codex+ Now Streaming! Serpent in the Staglands Dead State Divinity: Original Sin Torment: Tides of Numenera Codex USB, 2014 Shadorwun: Hong Kong Divinity: Original Sin 2 BattleTech Bubbles In Memoria A Beautifully Desolate Campaign Pillars of Eternity 2: Deadfire Pathfinder: Kingmaker Steve gets a Kidney but I don't even get a tag. Pathfinder: Wrath I'm very into cock and ball torture I helped put crap in Monomyth
Hooray for all the work you have done, DU.

But I really have to ask.. how can one not get OO programming? There is a class, which has functionality that belongs to its "nature" (a soldier may attack() and have the getWeapon() function, etc.).
It really is easy as that... and now there are possibly dozens and hundreds of classes that work together.

In my experience, OO makes it somehow harder to grasp the big picture of how everything works together. BUT in most cases you don't need to know it all at once and can start learning that part, then that part, etc. Until you finally have the big picture in your head. May be overkill for small (very small) projects, must-have for big ones... or else you'll have to re--write stuff completely, as DU just stated.

In procedural programming, you start at the start, read to end and forget what was at the start again. And good luck trying to find out little details. Good for small projects, sucks for big ones. have a look at ffmpeg/libav if you want to see procedural madness. Certainly made me mad several times, heh. Damn Linux freaks ;)

But of course some projects are simply "too much" OO, so that it becomes pretty hard to impossible to grasp what the f*ck is going on without proper guidance & documentation.
Maybe this was/is the case with XF.
 

nihil

Augur
Joined
Jun 11, 2006
Messages
490
Location
Sweden
Project: Eternity
Cool! Nice work. Now we should get to writing reviews, earn a spot on Metacritic, and change the face of gaming journalism!
 

DarkUnderlord

Professional Throne Sitter
Staff Member
Joined
Jun 18, 2002
Messages
28,360
But I really have to ask.. how can one not get OO programming? There is a class, which has functionality that belongs to its "nature" (a soldier may attack() and have the getWeapon() function, etc.).
It really is easy as that... and now there are possibly dozens and hundreds of classes that work together.
Getting the "concept" of OO has never been the hard part. The hard part for me is first understanding the syntax, then trying to work out what I actually want to do and how to do it. And then trying to find that in one of 2,661 Files across 528 Folders, most of which are called things like "ControllerPublic" and are full of:

Code:
	/**
	 * Shows a preview of the thread creation.
	 *
	 * @return XenForo_ControllerResponse_Abstract
	 */
	public function actionCreateThreadPreview()
	{
		$this->_assertPostOnly();

		$forumId = $this->_input->filterSingle('node_id', XenForo_Input::UINT);
		$forumName = $this->_input->filterSingle('node_name', XenForo_Input::STRING);

		$ftpHelper = $this->getHelper('ForumThreadPost');
		$forum = $ftpHelper->assertForumValidAndViewable($forumId ? $forumId : $forumName);

		$forumId = $forum['node_id'];

		$this->_assertCanPostThreadInForum($forum);

		$message = $this->getHelper('Editor')->getMessageText('message', $this->_input);
		$message = XenForo_Helper_String::autoLinkBbCode($message);

		$viewParams = array(
			'forum' => $forum,
			'message' => $message
		);

		return $this->responseView('XenForo_ViewPublic_Thread_CreatePreview', 'thread_create_preview', $viewParams);
	}
What does responseView do and how do I use it? It appears in 103 files (and isn't in the file this piece of code is) - Which one do I want? "XenForo_ViewPublic_Thread_CreatePreview" is some parameter being passed to it, which itself is easily enough found (there are only two of them and the one in 'CreatePreview.php' seems likely) but then that has:

Code:
class XenForo_ViewPublic_Thread_CreatePreview extends XenForo_ViewPublic_Base
{
	public function renderHtml()
	{
		$bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
		$this->_params['messageParsed'] = new XenForo_BbCode_TextWrapper($this->_params['message'], $bbCodeParser);
	}
}
This is literally the only thing in that file (and there are hundreds of files where literally, there are empty _constructs or just one function with a few lines of code). This is easy enough to understand what it's doing (parsing bbcode) but how is it even being called? Obviously through responseView... but where was that again?

So I've found the function that previews a thread but how do I pass my variables to it and what object am I passing those variables to?

This is probably fairly basic shit to someone who's been coding PHP in an OO manner but I'm just not at that level of PHP coding to "get" what the hell is actually going on here and I'd often get lost in loops looking for that thing that started it all but finding files that called other files that seemed to call other files that had things like this in them:

Code:
public function __construct(Zend_Controller_Request_Http $request, Zend_Controller_Response_Http $response, XenForo_RouteMatch $routeMatch)
	{
		$this->_request = $request;
		$this->_response = $response;
		$this->_routeMatch = $routeMatch;
		$this->_input = new XenForo_Input($this->_request);
	}
I'm sure this is all great code and useful in some way but I have no idea how to actually /use/ any of it. In the end, it was a choice between simply going with what I knew and getting it done, or spending another year learning the ins and outs of OOP in PHP.
 

Spectacle

Arcane
Patron
Joined
May 25, 2006
Messages
8,363
Seems like a marvelous pile of spaghetti code!
What IDE are you using? a good one can really help with this kind of code.
 

Jaesun

Fabulous Ex-Moderator
Patron
Joined
May 14, 2004
Messages
37,262
Location
Seattle, WA USA
MCA
earn a spot on Metacritic, and change the face of gaming journalism!

LOL that would be fucking hilarious if it were possible. Metecritic unfortunately "decides" which sites recieve money to write favorible reviews for cash sites it considers Professional Gaming Journalism ™. Just for a huge laugh, read their list. It's pure comedy gold.
 

snoek

Cipher
Joined
May 5, 2003
Messages
1,125
Location
Belgium, bro
You've shown some real persistence DU.. the codex is truly proud of you :thumbsup:
 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom