« first day (6 days earlier)  last day (15 days later) » 

4:19 PM
@HassanAlthaf so what is it?
 
exactly ;)
 
My problem is,
I want to code a Templating engine
Which I can use
But I have no idea what it should do.
 
lol...
 
i created one, but idek if it is good
 
4:20 PM
first off. I have no clue what you mean by "Templating Engine"
 
like smarty
frameworks
I want to code my own framework!
A massive framework!
A gigantic framework!
 
you're being quite ambitious, huh?
 
ik
i want to be famous
 
well first off, you probably have to decide, how you want to organize your templates..
 
4:22 PM
and where exactly your template-engine should be used..
 
i planned to use .tpl to store template data
 
lol that's not helpful -.-
 
well, everyone should be able to use it
and
 
.tpl could contain anything..
 
ik
i wanna make it like
PERFECT!
 
4:23 PM
nothing's perfect..
 
i know
wait
 
btw, your templating engine supposed to work for webpages?
 
yes
doesnt php mean webpages? -.-
 
not necessarily...
 
I'm sorry if I sound dumb.. I'm only 14..
 
4:24 PM
dw. It's just that you have a vision of a product..
you need to define that vision, before you can get started...
<-- also making that mistake a lot
 
I want help in planning, what it does.
 
<-- only 5 years older FWIW
 
What? Are you only 19?
 
lol what does a templating engine do? "It fills templates"
 
4:25 PM
yea...
well then it's actually simple..
you need to define a structure for the template
a structure for the data
and then you can decide on how you fill it.
 
example:
 template.xml:
 <head><val name="head" /></head>
 <body><val name="body" /></body>
 
i dont know xml
 
similar to html, but almost solely oriented towards data representation..
it's just an example..
 data.xml
 <data>
      <head>
          some content
      </head>
      <body>
          some more content
      </body>
 </data>
result:
 <html>
       <head>
              some content
       </head>
       <body>
              some more content
       </body>
  <html>
 
oooooooooooooooooooooooooooooooooooooooo
That didn't make any sense to m e.
*me
 
4:30 PM
what part exactly?
 
I didn't understand what you are trying to say me.
wellllll cal you tell me how to do this:
$text = [something];
 
and then??^^
 
$text = SomeMagicalFunctionRemovesThe[]Brackets
so $text = "something";
 
oh well that one is simple...
the problem is:
$text = [some[absolutely cool]thing];
$text = SomeMagicalFunction();
 
4:32 PM
so $text = "someabsolutely coolthing"
 
$text = "[FileNameToInclude]";
 
stop stop stop, what exactly is your goal?
 
My goal is,
Well, I'll tell my problem.
Lets say I have a file.
home.tpl
It has [nav]
Which basically means, include the navigation.php file here.
well nav.php file
so, the parser does a foreach thingy
foreach($array as $key => value) {
str_replace($key, $value, $content);
wait
i actually solved it
wow
 
you're welcome..
 
4:36 PM
this principle is called "rubber ducking"
 
rubber ducking?
 
it's actually quite simple..
formulate your problem out loud
often you get to the solution that way ;)
 
ohhh
I'm too pro lah, jk.
 
you can read a little on rubber ducking...
 
do you listen to songs
while codin
 
that's a post from stackexchange's CEO
mostlyyea
 
what kinda songs
hardcore metal?
 
depends on the mood..
 
well do ya listen to hardcore metal
 
4:38 PM
sometimes..
 
u got skype?
 
but really seldom
 
what does seldom mean now? -.-
 
sure I got, but I keep skype separate from all my other stuff..
seldom == not often
 
what do you mean by keep skype seperate from all my other stuff
I don't understand english, i understand PHP.
-.-'
whats ur skype username?
I'll add yah
 
4:40 PM
that's what I'm talkin...
nobody here knows my skype and I prefer to keep it that way.
 
no hard feelings...
but skype is a whole different story than SE chat / Q&A
 
idek who are in my skype f/l
some random people.
well, i am trying to get friends on skyp
 
lol why??^^
 
who can code
to create a group
 
4:41 PM
also my skype-name is actually including my real name,..
meh.
 
idc about my real name
my name is Hassan Althaf, and idgaf
www.HassanTech.org
it has all my personal data
 
I know, but you see....
I am more careful about that..
my facebook has my personal data
my skype has it
my main e-mail has it
my secondary e-mail has it
SE has it buried deep down below my open-id login
but
I got a separate thing for "Vogel612"
sure if you were digging, you could find the connections
but if you don't know how to dig, that's two different persons...
and I like it that way...
 
5:01 PM
either way, I'm heading home, It's 7PM here ;)
 

« first day (6 days earlier)  last day (15 days later) »