CJ Jackson

  • I got myself a new iPad, a different world to the iPhone!
  • Posts: 241
Re: Texasmans Programming Blog
« Reply #45, on April 10th, 2011, 09:06 PM »
Texasman, if were you, I wouldn't keep on living by ideology, you would only end up pissing off a lot people needlessly. Stop and think man.

A lot of preachers often get dropped out of college and why? Because they choose to live by ideology rather than the fucking truth (observation and analysis).

Have a nice day sir.

texasman1979

  • Posts: 99
Re: Texasmans Programming Blog
« Reply #46, on April 10th, 2011, 09:09 PM »
My GF just yesterday got pissed at me for ?talking down? to her. From my perspective, i am simply expressing my thoughts as fully as i can. Not perfectly, but for the most part. Im not sure how explaining my point of view is so offensive at times. And like i tell her, ill tell you, it is not a matter of talking down to you, it is a matter of expression in the only way i know how. As far as writing code for me, you aint wrote a single line for me, and im the last one on earth that would expect you to, unless im paying you. If you look at that thread again on sm.org, youll see i tried several different things, as well as a few that i didnt post. Then i posted the final result of what does work. In its current form, there is a needless second query, when one will do it just fine. I just couldnt get the sql figured out. I wish i could have been programming the last 6 years after school. Then i would have code as examples instead of my lacking social skills. If we met in real life, youd see what i mean, but even like my GF, youd have to except that im different, instead of being pissed at me all the time. I recently pissed off my friend at UC Berkley from saying something that he took a different way from what i meant concerning him working for my website when he graduates. I saw it as the inclusion of a friend, he saw it as me doing something cool abd him working for me. He going to have a BS in computer science, and a minor in mathematics. The guy is absolutely brilliant. Why wouldnt i want him on my team? but he wouldnt be an employee, his title would mirepresent his position in the company. Once another year goes by, hell see what i meant so i aint worried, but a long time friend got pissed at me for basically the same thing. If it werent so fucking nuts, id laugh. I wouldnt be here if i didnt have the utmost respect for you. It does not matter to an extent how you perceive my words, what matters is, what im saying.
Re: Texasmans Programming Blog
« Reply #47, on April 10th, 2011, 09:18 PM »
As far as the classes are concerned, what i was intending is using classes in an unorthadox way. Its just like putting assignments in if statements, it is bad form, but in some cases, it works perfectly. At this time i cant give a working example if this, and i dont have any idea when i could give an example. Its just balled up in my head and due to bills, i have to work a crap job to pay the bills. I can see it plain as day in my head. I just dont have the time to do it, nor the ability to explain it, obviously. My son wont be so little forever though. All i can say is, someday.
LOGIC is a FOUR letter word! :)


Alanthar

  • Congratulations. :)
  • Posts: 22
Re: Texasmans Programming Blog
« Reply #48, on April 10th, 2011, 09:27 PM »
Trying to show people another point of view can be a good thing. Especially if they ask for it.
Trying to force them into seeing it your way (or even forcing them to acknowledge your point) will never work.

DoctorMalboro

  • I like rounded borders.
  • Posts: 316
Re: Texasmans Programming Blog
« Reply #49, on April 10th, 2011, 10:33 PM »
Nao is arrogant because he's french...



* DoctorMalboro flames this topic with old school europe discussions.

chilly

  • cookies?
  • Posts: 31

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
The way it's meant to be

Nao

  • Dadman with a boy
  • Posts: 16,082

texasman1979

  • Posts: 99
Re: Texasmans Programming Blog
« Reply #53, on April 12th, 2011, 03:04 PM »
Class boardindex located at the top of the file with a passed parameter of hook_exsists(). The vast majority of the code exsisting would remain the same, its just how/when the functions get called. On creation of the class, in the constructor, youd have the bool of a hook somewhere present. And in the first call to hook_exists(), you establish the hooks_present array. The boardindex class is made a slave to checking where hooks are and modifying its direction upon creation to include hooks where they are desired. And also, using this method of approach essentially cause memory that needs to be used to be used instead of loading a million things that may not be used. Any step not taken is a step faster.
Posted: April 12th, 2011, 02:46 PM

In smf, the inclusion of many different files and calling functions within them is quite literally a psuedo class structure. The different approach is to use a real class structure like yall did with the db interface. Im quite certain that the main blocks of code that originally existed, still exists in the stripped mysql only code, and of course in the consteuctor i would assume is where the initial db connections are made and start functions called. In the way of processing and presentation that already exist, you basically have ssi header and footer filled with something in the middle. Each of those somethings wether it is forum, blog, admin center, can essentially be a class with both the ptocessing and presentation as properties and methods if the greater class.
Posted: April 12th, 2011, 02:53 PM

With that said, when you throw in the ideal of modifiability, while alsi remaining fast and efficiant, classes gives the opertunity to call whole modified function version cinstructed while building the function with parts created from the default unless otherwise specified, ie a mod inclusion or change.
Posted: April 12th, 2011, 02:56 PM

To implement this type of massive change throughout a software as massive as smf or wedge is with no doubt a paramount change, and virtually a entire rewrite of the software. Lots and lots of work. But there is a big but to consider. As things progress and change, the building blocks of such a change can be integrated through time one bit at a time. Now this does not mean this is the only way or even the best way in some cases, but it definitely is a different approach than what has been used before. Just cause it hasnt been done, doesnt mean that it is a bad way to do it. It just means it hasnt been done before.

DoctorMalboro

  • I like rounded borders.
  • Posts: 316
Re: Texasmans Programming Blog
« Reply #54, on April 12th, 2011, 03:06 PM »
Do not tell me how the flag of my goddamn country is :P

If it doesn't have something... Do. It. Yourself.

texasman1979

  • Posts: 99
Re: Texasmans Programming Blog
« Reply #55, on April 12th, 2011, 03:28 PM »
To look at smf as a whole, it is a compilation of many parts. The issue i see is that the software started out being a program written in perl originally, then converted to php, then converted to php again, with many changes along the way. In this process, many changes took place that did in fact make it some very good software. Herein lies the problem. Since its first breath of life as a perl cgi, it never was broken down to its basic elements and approached with fresh vision. It just simply was translated from one to the other. Thats what is holding back a lot if the programming world right now, two decades if rewriting and rewriting of programs that where first dreamed of long ago, without sitting down and really starting from scratch with a fresh and open mind if potential avenues that if currently used in the form they are truely workable, there would exist software that would be the apex of current technology, rather than old ideas made a little better.
Posted: April 12th, 2011, 03:15 PM

Therefore, i wish yall luck, and i hope your vision is realized to the maximum of your dreams. I willing no longer contribute a single thing on this forum, concerning wedge, smf, or anything else, save this topic. I wont even read the responses to this thread. Yall can do with my words what you will. I got a billion lines of code and some serious theories concerning programming in all its states past and present. I got to get the shit out of my head and onto some type of tangible medium. if yall ban me, i spose ill start me a wordpress somewhere. Innovate, not imitate. I appreciate that to the very core of my being. As much as arantor is pissed, go for it man, impress yourself with your work, get pissed at me, fuel your fire. I want to see what you really can do.

Dismal Shadow

  • Madman in a Box
  • Me: Who is Arantor? Cleverbot: It stands for time and relative dimensions in space.
  • Posts: 1,185
“I will stand on my ground as an atheist until your god shows up...If my irreligious bothers you much, and if you think everything I do is heresy to your god I don't care. Heresy is for those who believe, I don't. So, it isn't heresy at all!


   Jack in, Wedge,
   EXECUTE!

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841

texasman1979

  • Posts: 99
Re: Texasmans Programming Blog
« Reply #58, on April 12th, 2011, 04:01 PM »
Sql statements are quite frequently constructed to pull data dynamically. In php as well as other languages, can create functions the exact sane way. In using a class steucture, it gives a unique platform for doing this. Say one was to want to modify the incredibly rediculous get topics sql. That can be stored in a dynamic array if strings and each bit replaced by a user defined string. Well the exact same thing can be done with whole functions. Also in the same way, javascipt code as well as jquery code can be totally dynamic. In the default program, the strings needed to create the functions would be used in the default cinfiguration, while later there is a mode that can change, literally any of thise bits seamlessly, with simply a modification of the initialazition of those strings arrays. It makes the entire program and all its parts totallh dynamic and totally modifiable, without changing the performance but only on a neglible level. From one perspective, one might think that constructing every function on the fly would be a major performance killer. Well if done incorrectly outside of an intuitive inline way, it most certainly would. But if you plan the software from the very beginning to anticipate change, the performance would be basically the same as it would be in its current form.
Re: Texasmans Programming Blog
« Reply #59, on April 12th, 2011, 04:28 PM »
How this would effect a modder is this: first, you cant just jam whatever you want to in there. Second, it forces them to pay attention to what other mods are currently available, and what they actually do, forcing them to be better modders than they would have been. Third, allowing almost any part if the code to be modified, opening doors to mods that never could have existed in any other way, easily. In the cinstructor if the various classes, this is where these dynamic functions are created. From a modders perspective, the contents in each of these bits would have to be analyzed and their mod added in the most logical way, and that modified bit would be present once the function was called, by default, instead of checking to see if there us a hook there before or after some processing has already potentially taken place. The function is created with the mod already in place.