« first day (663 days earlier)      last day (4285 days later) » 

10:00 PM
the commenting system
 
use disqus ;)
 
@Lusitanian I use windows for php development :(
 
now listen my website is not going to be a superpopular one. i am making it for my college fellows so that we can discuss things......... upload the pracs, um some pictures. thats all....... so for the time being if there was a simpler solution... it wud be good.........
 
yeah yeah less talk moar oauth ;)
 
@blackbee troll ?
superpopular
 
10:02 PM
disqus is more simple than anything else
you literally don't even need to program
@PeeHaa MOREOAUTH NOW
/whip
 
@Lusitanian How's the oauth lib going ?
 
u mean its kind of wix or dolphin , jomla........
 
@Nick great actually
but i've been busy and @PeeHaa is lazy
by that i mean we're both lazy
 
;)
 
haha
 
10:03 PM
ok um, wud there be much difference in the php codes if i switched to linux
 
no the php would stay the same...but you can use disqus on any platform
@PeeHaa i'm going to decouple the services from the uri class later so we can actually, y'know, unit test
 
damn .. i need to get 3 more points
 
instead of ClassConglomerationTest
 
yup
 
and the mysqli queries wud change if i use lftp or nlmp?
 
10:05 PM
actually, i'm creating a new class library called PHPClassConglomerate
I'll market it to the Codeigniter People
@blackbee considering neither of those contain mysql, you wouldn't have any mysql queries
 
@blackbee mysqli ?
 
but if you just need comments, install disqus and call it a day
 
Mysql
no using disqus doesnot let me learn anythig but how to use disqus............
 
@blackbee how's your social networking site working out
 
10:07 PM
@blackbee huh? -> disqus.com
 
I need some music to fill up a cd
 
@nick... quite awful
 
 
I use disqus for comments, not because it teaches me things but because it beats the living shit out of any other solution
in terms of both SEO and usability for moderation, etc
 
aw k
 
10:07 PM
@blackbee what's quite awful?
 
@hakre y u show me wordpress ):
 
@Lusitanian Yeah nice combo, that pic and ur comment.
 
Which?
 
@nick building the website..... for the first time and someone telling i am standing on the wrong platform......
 
1 min ago, by Lusitanian
I use disqus for comments, not because it teaches me things but because it beats the living shit out of any other solution
 
10:09 PM
oh right lol
Disqus is just a really sweet platform
 
how about the non living things?
 
@blackbee What? I can't even understand you
 
.. "but i am using MySQLi, it makes it secure"
 
what are you standing on?
 
10:10 PM
The funny thing is: In the very beginning, it was a comment script only. No idea why they thought they needed to create a blog software out of it, probably javascript was not that well these years. In the end ca. 10 years later discus was born.
 
@tereško hahaha
 
leave it. i sometime dont understand myself.......... i am standing on wamp. i need to stand on lamp or nlmp
 
@Chris Burn Rick Astley to it until it's full?
 
@blackbee okay? what does lamp have to do with disqus
 
NO WAY
 
10:11 PM
@Chris DOTELL!?
 
Best of Rickroll
 
i thought there wud be some solution that wud help me to do that commmenting part. other than using discuss............
but i see i needed linux from the beginig
 
That is the kind of music I'm after :p
And, incidentally, that is me singing it :p :p
 
what is the difference betwn nlmp and wamp other than full forms... i mean why nlmp
naruto
 
@Lusitanian I'm off for today. Will push the changes tomorrow. I still need to move some files around because the generic serviceinterface isn't going to work well with all those differences between v1 and v2 :P It's just FUBAR (not that I expect anything else though)
later all
@Chris what singing?
:P
 
10:18 PM
@category  Core
@package   Belpost
Is that ok considering that it's core component of an app?
 
google doesnot answer me about nlmp......... (grrrr )
 
@PeeHaa of course it's foobar
it's oauth. if it's not foobar, you're doing it wrong
 
:)
good night all
 
:): <--- schezophrenic
 
@PeeHaa In the metal context, in programming terms, "singer" is an interface that I implement. It has two methods: Singer::RockFacesOff() and Singer::TakeAllCredit(). The Band object doesn't care about implementation details.
 
10:21 PM
@tereško , @Lusitanian why to use nlmp
how if i use XAMPP
 
yess, the 200 has been reached
 
happy 200k day
 
why cant they make it so there can be white space in front of the end of a heredoc? having it at the furthest left of the page looks so sloppy with indented code
 
@Chris , do i hear some resentment in that statement of yours
 
please sy me, why mongodb is used, why cant a relation db b used?
 
10:32 PM
@AndyPerlitch Make a loader and get rid of HTML in yor PHP ;)
 
@hookman teach me your hways
wait you mean like mustache?
 
but remove the magic , instead use bind() and append() methods
 
@tereško awesome.
so simpo.
 
@tereško Wha? nyet!
Time for the long drive, laters
 
@AndyPerlitch github.com/webarto/nettuts/blob/master/core/view.php stripped from Kohana
 
10:41 PM
@tereško bind($key, $value) and what is append() for?
 
@hookman , lets say you have $content variable in the template , but content is actually made up from main part , some ads and pagination
 
@webarto PeeHaa would be parsing that file for static and global )))
 
@hookman :)))
 
@tereško bind('ads', 'value'); append('content', 'ads')?
@webarto I wouldn't be surprised if he has a bot here, which parses messages and links for evil things and mails the report :D
 
i will take out the __set and __get magic, but i do like the __toString bidness in @webarto's stripped kohana class
 
10:49 PM
 
rofl
 
it is easier to write code than documentation :D
 
@hookman , it depends on how much fragmentation you are comfortable with
 
@tereško 10X
public function __construct()
{
$this->template = View::factory($this->template);
$this->request;
$this->response;
}
@webarto PeeHaa kills you tomorrow
 
okay :(
 
10:55 PM
@webarto are you a contributor to kohana?
 
stage 1, make it fanking work, stage 2, remove globals :D
@AndyPerlitch nope, just lurking in the shadows
 
@webarto ha
 
@webarto , bad idea
if you base your original code on global state , it is extremely hard to refactor it later
 
@tereško i learned THAT the hard way...
 
There is a great book that is titled "Working with legacy code" or similar.
 
10:58 PM
@tereško , of course man, I just spent hour or two on this, got it to the point that works (whatever), and quit...
 
Chapter 1:
give up and start over.
 
give up and don't waste your time :D
 
Chapter 1: Take a good nap.
Gn8 everybody.
 
night :)
I'll have a heart attack soon
 
night
 
11:00 PM
@webarto as far as I remember @category should be followed by @package, not vice versa
@hakre bye
 
@hookman heh, thanks
bind actually means &$var
what you have now is set
 
something like that :)
but I reckon you don't need that now
 
need bind?
 
11:07 PM
do you need bind?
 
no i dont think so
wait whhaaaaaa you can use "+" to merge arrays?
 
no
 
line 104 of the view class you stripped from kohana
 
@AndyPerlitch kinda
 
@tereško elaborate prease :)
 
11:09 PM
you have to pay attention to the order , because of order in which values will be overwritten
 
ok, so in array_merge, the last array(s) get "seniority"
 
@AndyPerlitch set EXTR_SKIP to extract(), it will prevent overwriting existing variables...
 
[ 1 => 1, 2 => 2 ] + [ 2 => 4, 3 => 9 ] !== [ 2 => 4, 3 => 9 ] + [ 1 => 1, 2 => 2 ]
 
@AndyPerlitch you can do + on every same type data... you can't 'a' + 2, but you can 'a' . (1 + 1) ... etc ...
 
@tereško but order aside, they would contain the same elements?
wait wait wait
 
11:12 PM
same keys , different values
 
now im confused. does it CONCAT or ADD values? or does it make a longer array? what @webarto says makes it sound like the former
 
@AndyPerlitch , how about you try and stop annoying us
 
$a = array('a');
$b = array('b');

$c = $a + $b;
print_r($c);                # Array ( [0] => a )
$d = array_merge($a, $b);
print_r($d);                # Array ( [0] => a [1] => b )
 
@tereško touche
 
@AndyPerlitch can you figure it out? both have the only index of 0, so first one gets the spot...
 
yea im good. think i'll just stick with array_merge.
 
just to be safe...
 
yup
thanks fellas
 
and practice what @tereško said :D
 
esp. you @tereško, you salty bastard :D
ah cmon you know im just joshin. got nothin but respect!
 
11:20 PM
$post->content = $parser->parse()->render();
I'm good :D
@tereško problem with "bad idea, if you base your original code [shit]", is that you often don't have time to rethink everything, and when you spot failures, you are on another thing already, so I guess that is where experience comes to play...
anyways, enough of BS, time to hit the floor bed, nighty o
 
@webarto if you start coding any decently large code base dependent on globals, i have no doubt that you will eventually regret it.
buy anyway, good night
 
@webarto bind(&$var)???
 
night @webarto
 
@webarto bye
 
> Weeks of programming can save you hours of planning.
is that what you are saying , @webarto
 
11:29 PM
@tereško the difference between bind($key, &$value) and bind($key, $value) is a memory usage, right?
 
if i saw bind($key, &$value), the paranoid side of me would be worried that the function would change my variable
 
do you guys use phpsh to run quick php snippets? or is there some other, better tool
 
From Kohana
public function bind($key, & $value)
{
    $this->_data[$key] =& $value;

    return $this;
}
 
@hookman interesting. i wouldn't have made that "optimization" if i were them. well, i hope they did it for optimization sake and not so the view could alter variables.
 
@hookman i always wondered how they did that
aight yall, im outta here
@tereško hope no hard feelings. youve always helped me out even when i ask too much :P later!
 
11:34 PM
@hookman ah, upon reading their docs, it makes more sense. i didn't realize that they also have a set(). looks like the purpose of bind is indeed to bind a reference so it can be changed.
so the value that the reference points to, if i want to be more specified, i suppose
 
webarto said something like bind(&$var), i wonder if he actually mean to pass a variable and it is added to data array oO
@AndyPerlitch bye
 
the name bind kind of implies binding a variable to be later changed rather than copying. but am not sure what he meant :)
 
@Corbin Hmmm, when do I need to change the value of the variable in the view??
 
that is a very good question. been wondering that myself.
seems like passing references to views would lead to views turning into nasty view-controller hybrids.
 
@tereško any thoughts about this?
I'm sure he knows))))))))
 
11:42 PM
i guess maybe allowing the views to alter the variables isn't the end goal. know how with prepared statements with PDO you can do something like: $stmt = $db->prepare("..."); $stmt->bindParam(1, $username); $username = 'Corbin'; $stmt->execute(); /* use $stmt / $username = 'hookman'; $stmt->execute(); / use $stmt */
i bet that's the idea behind their bind
for consuming code to be able to plop different variables around instead of having to recall set over and over again
(personally i think calling set over and over again, would be more transparent, but the more i think about it, the more i think this is the reason)
imagine $emailView = new Kohana_View('some/path/to/email.html'); $emailView->bind('username', $username); /* bind a few other vars */ then rendering it. then changing the vars, rerendering it, so on.
seems nasty to me, but i know some people love to do that kind of stuff with SQL related APIs
 
$color = 'red';

$this->bind('color', $color);

if ($this->colorShouldBeChanged()) {
    $color = 'green';
}
@Corbin We both got the idea separately)))))))))
 
the $this doesnt make sense there since the view object shouldn't have a colorShouldBeChanged method, but in theory yes
though i dont think the main use case would be changing vars based on conditional but rather rendering in loops
 
$color = 'red';

$this->view->bind('color', $color);

if ($this->colorShouldBeChanged()) {
    $color = 'green';
}
 
$username = $firstname = null;
$view->bind('username', $username); $view->bind('firstname', $firstname);
foreach ($stmt as $row) {
$username = $row['username'];
$firstname = $row['firstname'];
$email->setHtml($view->render());
$email->send();
}
is more of how i see it being used
it still bothers me that a view can in theory change a controller's variable though... guess they feel that the flexibility it offers is worth trusting users not to be stupid though.
 
@Corbin makes sense for me.
hmmm, but...
two more lines in foreach vs controller variables changed in view
 
11:55 PM
yeah... lol. some people might like the abuse their views like that though. i suspect it's based off of biding variables to prepared statements. in the prepared statement case though, it makes sense to have the read/write capability of a reference. for example, if you have a stored procedure with an out param.
in the case of kohana_view, it seems a bit odd. but hey, i suppose at the end of the day, a framework should trust its users haha
 

« first day (663 days earlier)      last day (4285 days later) »