« first day (1304 days earlier)      last day (3644 days later) » 

7:00 AM
i.e. contract is fulfilled, but in stupid way
 
i.e. rename Comparable to ICanCompare, and have a $comparing member in the function that needs compare abilities.
 
@JoeWatkins lol yeah, i keep forgetting that
 
@Jack You're in the national guard?
 
ehm yeah, apparently :)
 
lol
ok, @SecondRikudo thank you, and @LeviMorrison too. I'l think about that. Even if I have doubts - still it's an interesting idea
 
7:12 AM
Damn, why haven't I used valgrind before lol
Then again, the output can be quite intimidating lol
 
monring
 
good mornings
 
@Jack man up
morning
 
that's not far enough, you are losing form :p
 
hiii
is anyone around
 
@HamZa I am thinking of changing my name cause whenever anybody give your name it is shown in my notification.
 
@Hamza Heh, I had the same problem with someone named Madara
 
@Hamza lolwut :D
 
7:44 AM
I exterminated him.
Just FYI.
 
@HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa
 
Maybe I should use my long username of back then?
@PeeHaa So famous :D
 
I mean there are so may of your fans everyday i got 5 to 10 notification about you
 
@Hamza o_O
So that's why I don't receive anything the last days
 
Good morning, folks :)
 
7:47 AM
ya @SecondRikudo madara is so common everybody want that name.
 
@HamZa Then you'd have the problem and he wouldn't :P
 
ooo sorry for that.
 
@Hamza There can only be one Madara.
 
wow double ping
 
they are taging my name instead of yours.
 
7:48 AM
is any one have i idea how can we make rule book type databse
 
hm.. what's wrong/unclear with this ?
 
@sismaster What's a "rule book type database"?
 
no obito also used name of madara
 
i am having lot of condition
so do i need to make this with if or anthing that i can make more usefull
 
there was when we had 3 crypticツs here
 
7:50 AM
@sismaster your question is unclear. Was there even a question?
 
@SecondRikudo i want to built something like enhancing your car by buying attribute with coins
is this clear for now?
please suggests me
 
I should go do something useful
 
@SecondRikudo heh, I've got the sense of your comment (: Now I see why bounty was opened :p
 
Morningi @NiekBergman
 
@sismaster No it still isn't clear.
Please explain the background more thoroughly, and try to use complete English sentences.
 
7:55 AM
Morning
 
morning @HamZa @Fabien
 
moin
 
again even he tag you but i am getting notification i will change my name. @HamZa
 
what?
is that case-insensitive @HamZa ??
 
@JoeWatkins If a function should return an internal zend_string * it should use RETURN_NEW_STR(foobar) right? Somehow I can't get this darn memory leak out.
 
7:57 AM
looks like /i
 
ya but i dont know how @AlmaDo
 
^ how? This is the case where probability theory fails
 
@AlmaDo not sure what the point would be of this, but I would either have 3 methods (equal, less & greater) in that interface or one (something like: compare, which returns -1, 0 or 1)
 
@AlmaDo It is.
Even if I ping @ham they should both get the ping.
 
@tereško so three methods.. but then third will be combination of two other
 
8:00 AM
@AlmaDo i would call it a bug in stackoverflow.
 
@Hamza No, it's actually by design.
 
ya @SecondRikudo you are right.
so @HamZa are you get notification of @hamza.
 
Yes, got 5 pings
 
@HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa @HamZa
:P
 
8:02 AM
okay.
 
@AlmaDo not really. Think about comparing two large objects, where each of actions is relatively expensive. It is faster to assess whether something is greater, then spend time on both making sure that it is not less and not equal
 
hahaha @SecondRikudo
 
@tereško hm. Very nice point. So while logically it is as I've described, it's not same cost. Good. Thank you
 
8:06 AM
anyone has a good post about how to implement DB connection handling without singletons ?
 
@tereško Yours?
36
A: How to properly set up a PDO connection

tereškoThe goal As I see it, your aim in this case is twofold: create and maintain a single/reusable connection per database make sure that the connection has been set up properly Solution I would recommend to use both anonymous function and factory pattern for dealing with PDO connection. The us...

 
I have one post, but it requires a lot of additional explanation, if person does not understand how anonymous functions work
which is why I am looking for an alternative
and yes, outside of this chat room, 99.995% of php developers do not understand it
 
@tereško how so? It's just you're replacing messy singleton with one instance of provider.. no?
 
I have just start codeigniter can anyone go guide from where i can create crud in codeigniter. (I have never worked on a framework before and I dont have good knowledge about oops)
 
@AlmaDo people do not understand that the the content of anonymous function doesn't get executed immediately
 
8:12 AM
@tereško really ??
 
May 3 at 10:13, by tereško
if you are new to CodeIgniter, then stop using it
 
if that's "deep understanding" of "how closures works" - then, please, @tereško - your post is fine. Don't blame yourself in the stupidity of others..
 
@tereško Why?
 
@Hamza because it is basically dead, outdated, filled with bad practices and has dumb-as-brick community
 
any alternative! @tereško
 
8:16 AM
@Hamza Learn OOP first.
Choose framework later.
If what a framework does is "magical" to you, it's too early for you to be using one.
 
okay got it.
 
@tereško Would you write a code in CodeIgniter for very good money? Do you care about good practices (like SOLID, DI, ...) or do you care about good money?
 
@djay what is good money? And for how long?
He could always write his own framework and just add the CI logo to it :P
 
@djay Depends. Don't forget that you need to deduct the mental health costs from that "good money" after programming in CI for so long.
 
@HamZa Good money ... its like 70-100$ per hour. All what people care about is how to make a thing work. Nothing more. Nobody cares if you write clean and testable code
Guys, there's a line between programming industry and programming school
 
8:24 AM
@djay Heh, then it will work now, and maybe a month or so from now, but then everything will start to fall apart.
 
@djay wut?
 
@djay Are you inspired by this?
 
@HamZa I meant nobody cares but you. Do you know what time-pressure looks like when working in some company?
 
@djay it depends on the company. There are some companies that do care about code quality. I suspect that those companies are rare
They know that in the long run, you're winning
 
@djay I am currently being paid for work with CI based system and we are in the process of migrating away from it.
 
8:28 AM
 
Afternoon everyone
 
@djay When management has no connection to reality, that happens.
And then it takes longer and longer to implement features.
And they don't know why.
 
I've a conceptual doubt regarding the auto increment column of a database
 
I'd rather a feature to take a week to make, but the next one will only take a week + 1 hour, and not that it'll take a day but the next one will be a day + 2 days.
@asprin Fire away.
Also, I may need to swallow you later.
 
@djay in the company where I currently work in the "costs" are only one of the issues. Another is "maintainability" and "security". The CI framework is extremely old, PHP4 based code, which is unsustainable in long term projects.
 
8:30 AM
According to stackoverflow.com/questions/23603437/…, an auto increment column doesn't necessarily mean that the last inserted id will always be the highest
isn't that wrong?
 
The additional costs that are caused by this are the reason why there is push for migration
 
@asprin Correct.
 
I mean it should be the highest right?
 
@SecondRikudo well, again - its not a school, its a business. All what managers care about is a time. If you can solve a problem fast, they everyone earns money. If you can't do it fast, then everyone loses
 
@asprin Not necessarily.
@djay Let's make a deal.
 
8:31 AM
1,2,3,4.....500
auto incremented every time...so why wouldn't it be?
 
@asprin What if I set one to 50000 manually?
@djay For one month, I give you $1,000,000 every day.
 
ok...hadn't considered that....
 
In return, you give me 1c in the first day, 2c in the second, 4c in the third, and so on.
Deal?
 
so If I manually inserted 5000 and left blank for the next insert, will the id be 5001?
 
@asprin Nope.
The auto increment is increased regardless.
(AFAIK)
 
8:34 AM
lol, i thought @Hamza and @HamZa are the same.. :P
 
So if you let it increase you'll get 1, 2, 3 etc, but if you insert 5000 as the next one, the next id will be 5. (because 5000 was supposed to be 4)
 
Let's consider this case:

First insert --- auto -- 1
Second insert -- auto - 2
Third insert -- manual - 100
Fourth insert -- auto - ?
oh
got it
thanks
 
Try it and see.
I don't remember the exact behavior.
 
@reikyoushin how dare you
 
k..will do
 
8:35 AM
@tereško The point here I was trying to make : its just a waste of time arguing about how bad their code is and talking about clean code. If someone wants to add a feature on their shitty Worpress, I would just do it for money to make it wold. Or say, another shitty Yii based CMS, would you start arguing about how shitty it is? or would you solve their problem for very good money. Say 2000$ (that requires a day or two, three)
 
@HamZa you are... with /i modifier :p
 
That's common sense guys
 
how to make a mysql search query with all combinations as possible ie., if my word is a b c, i should be able to search %a%b%c & %a%c%b like wise all possbile 9 combinations
 
@HamZa sorry dude, i know, i know.. :P
 
mornings
 
8:38 AM
@djay who said anything about arguing? Development process is not democracy.
 
usually, the only people who don't care about code quality are those who are on small businesses. because all they care about is productability. but when a business grows, they will be shocked how much they need to pay again just because they didn't start their code base properly..
 
lead developers present the solution to management, if management trusts the expertise of people that they hired, the solution get accepted
 
Nope, seems like it does take it into account.
 
@tereško how about the time, they want you to write a solution as quick as possible, right?
 
@djay Your approach works for a freelancer that does a job for a couple days, and disappears.
 
8:40 AM
^ this..
 
how to say that entity may(should) have some identifier? like "id-able" which means there should be some mapping function between entity (object) and some string (if id is string)
 
It does not work for a continued project, an actual webapp that needs to be continually developed and improved. That approach will collapse.
 
so what's the name
 
@SecondRikudo For non-large companies too. And this is not my approach. This is how it works
 
but if you're on a company that maintains it's codebase, you'll just make your head explode in the long run..
 
8:41 AM
@djay what about the time that you spend maintaining crap?
or have you never worked in a company which has to maintain the projects ?
 
@djay that is how "your" environment works, but not on some (usually the big ones)
so you can't say that everywhere "This is how it works"
 
he's one of those people, who make a ton of crappy code and then leave the company before they have to start maintaining it
 
@tereško yeah right, it requires more time to maintain crap, but anyway managers want it to be fast
 
@reikyoushin that shouldn't work in any environment
 
No no no, I'm the one who maintain crappy code, because I can't refactor this
 
8:43 AM
@iroegbu but it works on his localhost, i mean his project
 
some day, somebody will have to maintain that project
 
@djay it's your job as the developer to say that it cannot be "that fast"
that i learned from here..
anyway, im off! bye guys!
 
@reikyoushin I don't work in a large company. I do things (what customers ask) in WP, CI, and Yii. i feel awful, but I earn good money
 
hello all good noon :)
I have one small issue
 
should someone offer you a contract to build and maintain something... what happens?
 
vs7
8:46 AM
im using CodeIgniter, I have created a sample login panel , which takes username and password..

my Username: admin and password: admn123

It working fine but when i enter admin123+space its also accept the password
 
@djay i used to be like that too.. i can feel you. but you should evolve from that perspective..
 
I have 2 urls:
foo.bar.foobar.com ( wordpress Website)
foo-demo.bar.foobar.com

What is the best approach to use foo-demo.bar.foobar.com with the same contents as foo.bar.foobar.com on an other database?
 
vs7
I have used inbuilt active records
$this->db->from('adminUsers');
            $this->db->join('org_user', 'org_user.org_id = adminUsers.name');
            $this->db->where('org_user.email', $username);
            $this->db->where('org_user.user_pwd', $pass);
 
I have 85 records in mysql db wanna display them as in UL LI structure
 
@vs7 sure the query is not trimmed?
 
8:47 AM
@reikyoushin sure sure, but for now it feels kinda "ok"
 
and wanna have different class per 8 li
can anyone share logic
 
@vs7 Because CodeIgniter probably calls trim for you.
 
vs7
@SecondRikudo can we stop it
 
@vs7 Don't know. CI is crap, I don't use it.
 
vs7
:(
 
8:48 AM
@vs7 or @Second Rikudo
pls help me
 
Thank you so much, and i will definitely keep that in mind. Currently i try to download trusted and verified scripts. But you are most certainly right. — user3627587 11 mins ago
And yet he accepts the other answer which was answered later and doesn't explain the problem -_-
 
@vs7 please don't use active records. They are anti-pattern for anything but the most trivial cases.
 
@Duikboot what are you trying to do... 2 websites 1 db?
 
@Duikboot Deploy the same code on both servers, use different databases?
 
Active Record is everywhere...
Active Record is like a Justin Bieber
 
8:55 AM
@JoeWatkins Hmm, I'm getting this sneaky suspicion that zend_string * is not supposed to be used as an object's "intern" structure ...
 
@Jack huh?
 
any one help me in codeigniter.. plzz
 
We should ban anyone who enters and asks about CodeIgniter
8
 
8:59 AM
why.?
 

« first day (1304 days earlier)      last day (3644 days later) »