« first day (1749 days earlier)      last day (3203 days later) » 

1:00 PM
@FlorianMargaine This is not my machine
@Epodax The repo is 1.7
 
ah durn
 
@rdlowrey O_o sure can you post the link again?
 
I posted a new question to HN, help appreciated "
Ask HN: What are some things your software team does that makes it successful?" - https://news.ycombinator.com/newest
cc @rdlowrey :D
 
@PeeHaa try with propedit instead.
 
@rdlowrey $request = $requestFactory->createFromGlobals();
 
user895378
1:01 PM
@chozilla github.com/rdlowrey/auryn right near the top under How it Works
 
Shove the statics up your arse.
 
user895378
@Jimbo sorry, I was just copy/pasting his request factory code from a previous message :)
 
:D
 
user895378
@BenjaminGruenbaum upvote achieved
 
Awesome, now just a few more people so it gets attention
 
1:04 PM
@rdlowrey do you use the injector in a own project? I found that i changed quite alot of code after i had my first DI container set up, back in the days before the war...
 
but @PeeHaa, why the hell are they/you/whoever running a 1.6.17 with a 1.7 repo? - Either ways, a possibility is to create a new checkout perhaps and see if that solves it?
 
user895378
@chozilla Actually I don't use it in any of my projects lol :)
 
Now 2-3 more upvotes for a chance to be seen :D
 
user895378
but folks seem to really like it so I maintain it
 
@rdlowrey thats noble. I use a ugly customized and downgraded pimple container.
 
I want to exchange it with something with more beauty but now i have Traits for every object that uses a specific resource container and it is really working like magic now.
 
user895378
IMO a DIC is only useful in web SAPI applications where you want to instantiate any one of many possible "controllers" from a single front controller. If you're working in the CLI it only makes sense to instantiate all your dependencies directly up front in the bootstrap phase. And since I only work in the CLI I don't have much need for auryn these days.
 
@rdlowrey you mean a lazy DiC
having a DiC in CLI makes sense
 
user895378
If a DIC isn't lazy then what's the point?
 
1:09 PM
injecting dependencies?
 
my code might be really ugly i don't know. Usually you can not say yourself if you have a ugly child ^^:
 
but I think I'm missing something stupid..
 
user895378
Using a non-lazy DIC only makes sense for lazy developers ;)
 
user895378
I think it's preferable to be explicit if you have to instantiate the same dependencies either way. But this is firmly in the "it doesn't really matter" category ...
 
abstract class Game_Controller extends fBGE_Controller
    {
    	use Game_ResourceApi;

    	public function __construct(Game_Resources $resources) {
    		$this->setGameResources($resources);
    		$this->response = $resources->getView();
    	}
    }
 
user895378
1:11 PM
@chozilla you can use ctrl+k to format your code (and can edit that message and resend)
 
you do the ctrl+k on the last letter... i did it on the first...
 
@chozilla namespaces do exist
 
@rdlowrey DIC is still applicable to CLI; CLI can effectively use the front-controller pattern too.
 
@NikiC I ignore them.
 
If your CLI application is module/controller/<enter-name-of-container-here> driven, then you'll need to dispatch to those sub-components
 
1:13 PM
@kelunik what's rcs?
@rdlowrey except Arya, if I'm not wrong?^^
 
user895378
@bwoebi oh yeah, you're right, it's used there
 
@bwoebi You'd know that if you visited the lecture: en.wikipedia.org/wiki/Revision_Control_System
 
user895378
@DanLugg "need" ... I don't necessarily agree ... that's just how symfony and all its knockoffs do it.
 
@kelunik I know the term of a revision control system… just had no mapping what the abbreviation meant…
 
@NikiC to be honest, I started 4 years ago and it took me 4 days to change my autoloader back then and it messed up my caching of config files and so on. i decided i will refactor to namespaces after it is live.
 
1:15 PM
@rdlowrey If your application/architecture is built such that there is a dispatching process to an arbitrary subset of functionality, however it's separated, then you "need" to dispatch to said subset of functionality dynamically.
 
@bwoebi It's a software (written by our prof).
 
I say "however it's separated" because I mean modules/plugins/extensions/controllers/etc
 
user895378
@DanLugg Sure, but you have a finite and known number of specific controllers in a CLI application.
 
Um, how so? Further to that if the application is built to support extensibility, then doesn't that go straight out the window?
 
@kelunik yeah, I know…
 
user895378
1:17 PM
@DanLugg If your application needs a DIC to be extensible you're doing it wrong
 
Fair enough. Nothing "needs" a DIC, however it makes life worth more than hanging from a shower curtain rod in many cases.
 
user895378
@DanLugg Yes, I can agree that you're right about that.
 
user895378
If you have a sufficiently complex CLI app then a DIC can make sense there too.
 
user895378
I currently do not, though, so I haven't had much need for a DIC in a while.
 
That's all I'm saying. Which is compounded by extensibility or a large subset of behavioral containers (controllers, or whatever you call them)
I sometimes lump the notions of "need to do" and "make sense to do" together, because in many cases "what you need to do is make sense".
 
user895378
1:21 PM
Which is further compounded by my own difficulty with making sense in anything. Ever.
 
^^
GOBBLEDEEGOOK BANANA SHOWER CURTAIN QUARTER INCH VINYL SIDING
 
hi how to create folder dynamically in controller which is in root directory in codeigniter
suppose we have uploads folder in root directory i want to create folder in that
in codeigniter
any one know please???????????
 
@rdlowrey I started using it in amp-chat some weeks ago, because E_LAZY.
 
Holy... this user picture...
 
$ svn propedit svn:ignore .
svn: The path '.' appears to be part of a Subversion 1.7 or greater
 
1:29 PM
???
 
@Epodax I create a 1.7+ repo, but client's server doesn't seem to like it
 
a wild krakjoe appears
 
@DanLugg Of course, something like that would require a very large number of microphones
 
@JoeWatkins yojoe
 
1:32 PM
I need a little bit of advice. My accepter answer on this question Dynamic drop down list for different countries, states, geographic locations? seems to draw quite a lot of attention even after several months.
 
@PeeHaa Aye, 1.6.17 can't talk with 1.7 repos
 
Still I think the answer can be improved quite a bit. Would it be wise to do so? Also, is it ok to use a different free db under the "Creative Commons Attribution 3.0 License"?
 
user895378
@PeeHaa yoyo?
 
jojoe
 
user895378
1:33 PM
jojoe, indeed
 
ok. Let me try it over a vpn with my windows svn client :P
This is going to suck
 
Anonymous
 
you're surprised someone is abusing a feature of php ?
 
@icecub I've done things like this before in that situation - so you can leave the original answer there, but also update it with a better answer
 
@DaveRandom Thanks that seems to be a great idea
 
1:39 PM
@JoeWatkins Am I allowed to catch you? :-D
 
@bwoebi E_TOO_WILD
 
@JoeWatkins damn :-)
 
throw new JoeWatkins;
 
user895378
lol
 
@DaveRandom Shouldn't that be an object instead of a class? :P
 
1:42 PM
@kelunik no.
 
@kelunik It should be a singleton class ^^
 
user895378
try {
    throw new new SexyBeastException;
} catch (SexyBeastException $joeWatkins) {
    rejoice();
}
4
 
Yeh, that would imply I could clone $joeWatkins; which doesn't even bare thinking about
 
@DaveRandom it's ok, the clone would get lost
 
@NikiC Yeah, just thought about that. ^^
 
1:43 PM
@rdlowrey Shouldn't that be ExceptionallySexyBeast?
 
An ExceptionallyExceptionalException?
 
@Jimbo Sure, just like the CacheCacheCache.
 
user895378
@DaveRandom "exceptionally" isn't enough. The English language lacks sufficiently forceful adverb modifiers to accurately describe the situation.
 
@kelunik That sounds like some kind of onomatopoeic word for when you sneeze loads of times in quick succession
@rdlowrey Meh, just throw a few expletives in and it will be fine
That applies to most situations in life
 
user895378
It really does
 
1:46 PM
AbsolutelyAmazinglyExceptionallySexyBeast
 
AbsofuckinglutelyInfuckingcredibleExceptionallySexyBeast
 
Um... so, ReflectionFunction::getClosure() and ReflectionMethod::getClosure($object)... can these not be pushed up to ReflectionFunctionAbstract? The $object parameter could/should be optional, and default to whatever is returned by getClosureThis().
Also, since you can rebind closures to a $this context of any type, the type-check performed on $object for ReflectionMethod::getClosure is kinda pointless, no?
ReflectionMethod::getClosure($originalType)->bind($anotherType)
 
Yeh but being able to pass a thisArg for a function makes no sense
 
getClosure($object) should be pushed up to the parent class, and $object should be optional and type unchecked.
@DaveRandom But you can still bind it. It's not invalid. Just unused.
 
The fact that it's not invalid is the thing that needs to be fixed
 
1:51 PM
No please god no.
More disparity in the handling of closures is something I'd like to do away with.
Unifying how closures, contexts, etc., are handled would be... nicer? No?
Having to check if it's a global function, or a closure, or a method, or if it's static... there's a lot of unnecessary procedural checking going on.
 
It's not about the handling of closures, it's about how you declared the thing you are making a closure from
 
Right, but I don't care if it's a callable.
 
@rdlowrey can you even pass an object to new? (without getting Error)
 
ReflectionFunctionAbstract::createFromCallable(callable $callable) : ReflectionFunctionAbstract
$f = ReflectionFunctionAbstract::createFromCallable($callable)->getClosure($anything)‌​
 
@DanLugg 3v4l.org/8hJNR should be a parse error IMO, considering what happens when you do 3v4l.org/NAsQq. It makes no sense to bind a function to an object context.
 
1:55 PM
@DaveRandom IMO, $this is just a magic variable. It doesn't have anything to do with syntax or parsing.
It's a variable that's assigned before the function body enters; that's all really.
 
Sorry not a parse error, but a compile-time error
 
Arguably, an invisible parameter.
@DaveRandom TBF, I'm okay with $this reassignment too.
Everything should be a closure; instance methods bound, static functions unbound; everything should be re/unbindable.
That's the crux of my proposal.
 
lets have javascript ^^
 
Not exactly, but sure.
 
private $foo = function() {}
in class definitions ^^
 
1:59 PM
@chozilla You can do that already.
 
@kelunik after/inside the constructor but not before and not static for example
 
@DanLugg I suppose I could live with ReflectionFunctionAbstract::getClosure(), overridden by ReflectionMethod::getClosure($ctx = $orginalThisArg) - so that if you know it's a method you can rebind, but it throws up if you do it with an arbitrary callable
 
or can you now? i really have to update my php one day to the latest version...
 
posted on July 31, 2015 by kbironneau

/* by Zodoh */

 
I don't like the idea of being able to bind an object context to an arbitrary callable though, it makes no sense
 
@DaveRandom Like it or not, you can already. I like the uniformity in the handling, even it if results in weird cases, so long as those cases are predictable.
Save for static. Fucking static.
 
ReflectionMethod::getCactus($danLuggsAss)
 
user895378
@bwoebi woops, typo. Didn't even see the double new
 
Does anybody have a working solution for disabling the glow on gmail tab in ff?
I tried editing userChrome but the snippets I found didn't work
 
@DanLugg I personally have no issues breaking BC with things that didn't make sense in the first place
 
2:09 PM
@NikiC don't use ff
 
I'm sure there's some edge case I haven't considered though
 
Although I wouldn't recommend any browser these days, they're all bad imho :(
 
@NikiC "glow"?
 
@DaveRandom The blue glow
 
@DaveRandom when the tab has some activity
 
2:10 PM
When you get a mail or, much more annoyingly, if you get a chat message
I am physically incapable of ignoring the tab if it glows :/
 
oic
 
morning
 
How are they doing it? With something like the desktop notification API presumably? I'd have thought there would be some JS global that you could just replace with an empty function() {} with a userscript
 
@DaveRandom They just update the title
Like SO does
 
@NikiC have you tryed the disable notify function form TabNotifer? (i no longer use the plugin)
 
2:13 PM
@NikiC So you tried something like coderwall.com/p/q4cz2a/hide-blue-glow-on-firefox-pinned-tabs presumably?
 
yes
 
Will have a brief bugger about with it now since it's #friday
 
can a method have two returns
 
Thanks for the answer. I hosted with Domain.com, and I was shocked that they don't support so many common PHP stuff, they use PHP 4, old phpMyAdmin, no support for crontab, plus so many other problems. But I have to mention their technical response is fast and satisfying. I think they've upgraded PHP to version 5 just recently. — evilReiko 6 mins ago
Target acquired!
 
2:16 PM
@Tsea You either want a Generator or to simply return an array with multiple values
I suspect the latter
 
@Tsea you can also return an Answer object with defined fields for $value, $error, $message, $notice, etc.
 
well i have 2 methods that return a key => value array and im trying to only call one and display both
 
@DaveRandom @chozilla
 
user895378
@DanLugg have you stumbled across any composer/phar things since the other night?
 
2:25 PM
@Tsea Code sample in pastebin pls - what you have now, what output you get now and what output you want
 
@rdlowrey Naw, haven't looked too much yet though.
I'll def tell you what I come across (or come up with)
 
user895378
@DanLugg cool, ditto.
 
@rdlowrey ?
watcha looking for?
 
user895378
2 days ago, by Dan Lugg
Composer and phars; anyone played with this? I don't want to have to create autoloaders/manifests for phar based "plugins". Can I defer the loading to Composer?
 
2:36 PM
return $seo
? array_merge(array_filter(array_map($map, $meta), $this->getGeoMetaData())
: array();
 
Anonymous
can we show a little respect for other people's religion @DanLugg @DaveRandom? thanks
 
ugh, stupid markdown
@samaYo It's not a comment on religion, it's a comment on the images
But yeh, in the spirit of following our own chat room description
 
Wait, Jesus is a religious figure?
 
Blasphemy moved to bin
 
Anonymous
@DaveRandom good. I was about to put a spell on you :)
 
2:40 PM
I've already got a spell on me
Oh wait no, sorry, that's a smell
 
I've got a swell on me.
 
@rdlowrey is here so that's a given
 
;-) o/
 
Anonymous
> I know that human beings and fish can coexist peacefully.
 
Anonymous
source "bushism"
 
2:42 PM
Except Salmon. They won't stop until we are exterminated. It's us or them.
 
End the war on fish.
 
I was under the impression that we're still dealing with the war on tourism
 
Fish tourists?
 
thanks @DaveRandom definitely pointed me in the right direction
 
Anonymous
2:45 PM
Does anyone have a favourite bushism quote?
 
Anonymous
@DaveRandom ^
 
I always found it too depressing
 
Anonymous
> There are too many leaks of classified information in Washington, There's leaks at the executive branch. There's leaks in the legislative branch. There's just too many leaks and .. I want to know who the leakers are.
 
Anonymous
When I'm feeling down, I usually read JCV / bush quotes ..
 
> We will access, disclose and preserve personal data, including your content (such as the content of your emails, other private communications or files in private folders), when we have a good faith belief that doing so is necessary to. - Microsoft 10s Service Agreement
 
user895378
2:55 PM
@Fabor :(
 
You can opt out of some of it.
 
@Fabor Well, gosh, as long as they believe they're doing the right thing!
@Fabor s/can opt out/have the illusion of opting out
 
Hello
 
lol yeah.
 
@Fabor Didn't you have a gmail account?
 
2:58 PM
I do
 
/me booooos :)
 
someone down voting questions and answers without any reason
 
@PeeHaa Booze? I'm on board
 
isn't that funny
 
it is
 
3:02 PM
@kelunik But PHPUnit 4.8 does not have "minimum-stability": "dev".
 
@PeeHaa hi
 
@DaveRandom :D
@NeelIon o/
 
@staabm @bwoebi How stable is phpdbg's code coverage functionality? Would a PHP_CodeCoverage 2.2 release in ~ 1 week's time with the driver for it make sense?
 
oh people are talking about phpdbg cc
@SebastianBergmann @staabm @bwoebi fix it fix it fix it fix it fix it fix it fix it fix it fix it fix it fix it fix it
<3
I want it this weekend. No pressure
 
Well, I want a weekend, for a change.
 
3:07 PM
Good morning
 
Morning has broken, Anthony has spoken.
 
@SebastianBergmann hehe. A weekend of implementing stuff for random people right? :-)
 
A Friday of doing "nothing", a Saturday at Evoke, and a Sunday ... probably doing "nothing".
 
D'aaaaw Slow Loris' are so awesome.
 
@SebastianBergmann What's Evoke? Sounds kinky
 
3:09 PM
evoke.eu/2015 (evoke.eu/2015/events is what I do there).
 
@PeeHaa Only until you find out that "nothing" is his pet name for your mother Errr... I mean... yes it does
 
so I guess people weren't kidding when they said consulting was feast-or-famine
after several months of the occasional client, in the past 48 hours I picked up two more code audits and strong leads into more @_@
 
Evoke only turns up sunglasses in google
@DaveRandom I like how I never see you during the day unless you came up with a mom joke
 
I posted a link to the Evoke website.
 
3:12 PM
@PeeHaa That's not true. Occasionally I come here to remind @Jimbo how many beers he owes me.
 
morning
 
> Pang of Nostalgia: Now what? or: How to use an Amiga in 2015
God @SebastianBergmann you are awesome
2
 
@RonniSkansing godmorgen
 
user895378
@PeeHaa This. I'm feeling serious geek inadequacy right about now.
 
3:15 PM
I have Linux running on my Amiga 1200, for instance. And PHP 4 on AmigaOS. Haven't managed yet to compile current version of PHP for it.
 
hah @PeeHaa goedemorgen
 
Wow, I think I'm beginning to understand why people like generics so much.
 
@ScottArciszewski Wait, how does that degrade security?
 
@SebastianBergmann Why not? What blocks you from doing it? I've heard this said before about other non-standard systems (as it were), always wondered what's so different
 
3:20 PM
@ircmaxell morning
 
@Sherif see: hash_equals
 
@DaveRandom Lots of compiler and linker errors. Current versions of GCC do not support generating M68K executables any more.
 
if you can trick strlen() to returning 8 instead of 32 (i.e. through UTF-8 interpretation) in both the MAC they calculate and the MAC you send
you have less brute forcing to do to find a valid MAC for your forged ciphertext
it's not trivial but it's a dumb problem
 
@RonniSkansing :)
 
@ScottArciszewski What about hash_equals?
 
3:22 PM
@SebastianBergmann Ahh I see
 
if you're using the native one, fine
lots of projects have polyfills written in PHP
phpseclib in particular
 
@ScottArciszewski So you're breaking mb_* in order to fix broken 3rd party PHP libraries?
I don't get it.
 
I'm not breaking anything
it explicitly says "treat this in 8bit mode"
which means, 1 byte per character
in cryptography you (almost?) always operate on raw binary strings
rather than unicode
 
So then why are you using mb_strlen?
 
look at the second flag
'8bit'
if strlen() can unpredictably revert to unicode mode (i.e. mbstring.func_overload)
the correct thing is to use mb_strlen() in 8bit mode to enforce this requirement explicitly
 
3:25 PM
Ahh, right, it overloads strlen
Forgot about that
 
heh, who on earth even uses mbstring.func_overload
 
insane people
 
mb* should just go away, honestly
We have intl
 
user895378
mbstring.func_overload is horrible
 
3:27 PM
mb* functions are all horrible, in my opinion
 
someone did it
 
@rdlowrey you gave me a advise yesterday, now I want to say you thanks :)
 
user895378
@Sajad no, problem. You're welcome.
 
user895378
Everyone was new to something at some point.
 
I feel this room has been much nicer to newcomers recently
 
3:32 PM
@NikiC correct !
@NikiC meanwhile, I've learned english in addition to PHP ;-)
 
@rdlowrey Yep, I need to add a check in my stream lib for mbstring.func_overload and just fail if it's enabled and scold the user for enabling something so ridiculous.
 
@Sajad Which is, of course, much more important
 
user895378
@Trowski I don't even bother. No sane person uses that. If they do then they get what they get and I don't care.
 
is it worth the effort to create an excel import for the balancing of my game or should i keep copy and pasteing the values?
btw. i generate php code with excel >_<
5
 
user895378
> btw. i generate php code with excel >_<
 
user895378
3:37 PM
^ This sounds like the worst thing in the world lol. No offense meant ... it just seems really nutty :)
 
@chozilla wait, WHAT???!?!?
That should be actually illegal
 
@DaveRandom I'm pretty sure that psychological torture is illegal
 
@chozilla Wow. I've done a lot of really crazy things with Excel but I think that might take the cake.
 
=WENN( $D33="";"";$AL$1&"::"&$D33 & "=>array(
'ap' =>"&Q33&", 'material' => array(" &WENN($R33="";"";"DA_Item::MODEL_"&$R33&" => "&$S33&",")
&WENN($T33="";"";"DA_Item::MODEL_"&$T33&" => "&$U33&",")
&WENN($V33="";"";"DA_Item::MODEL_"&$V33&" => "&$W33&",")
&WENN($X33="";"";"DA_Item::MODEL_"&$X33&" => "&$Y33&",")
&WENN($Z33="";"";"DA_Item::MODEL_"&$Z33&" => "&$AA33&",")
&WENN($AB33="";"";"DA_Item::MODEL_"&$AB33&" => "&$AC33&",")
&WENN($AD33="";"";"DA_Item::MODEL_"&$AD33&" => "&$AE33&",")
&WENN($AF33="";"";"DA_Item::MODEL_"&$AF33&" => "&$AG33&",")&"),
 
Yeh, I mean generating Excel with PHP is ridiculous enough
 
3:47 PM
@chozilla caught the german :P
 
Ugly thing is that excel translates its functions depending on the language your system is on.
 
Yeh that is truly bonkers
 
@chozilla yeah I know, that is truly annoying
 
lol, I've done that; generate code with Excel
 
the above example generates this array key: DA_Building::MODEL_TURRET_SENTRY=>array('ap' =>12, 'material' => array(DA_Item::MODEL_MAT_METAL_T2 => 4,DA_Item::MODEL_MAT_CARBON_T2 => 4,DA_Item::MODEL_MAT_TAPE => 2,DA_Item::MODEL_MAT_BOLTS => 1,), 'benefits' => array(DA_Benefit::TYPE_Defense => 50,DA_Benefit::TYPE_Attack => 70,DA_Benefit::TYPE_Upgrade => 10,DA_Benefit::TYPE_Energy => -10,)),
 
3:50 PM
Mostly, if I find a table of constants for a standard I want to implement, I pull it into Excel, and then write a concatenation expression to get const NAME = <value>;, typically with documentation too.
 
Oh, you can not create linebreaks because excel will copy and paste quotes around your code then.
 
user895378
@NikiC lol
 
@SebastianBergmann no, but apps need it, when they want to use a dev version of phpunit
They nearly made chat usable on phones, but the form needs to stay at the bottom...
 
@rdlowrey Sometimes you have to guard against the loud uninformed masses that will complain about something they don't understand.
 
user895378
@Trowski I don't think mbstring.func_overload users qualifies as "loud uninformed masses" ... I've never actually run into this in the wild and no one who has the first clue what they're doing uses it.
 
user895378
4:01 PM
That's the kind of thing I wouldn't bother with until someone reported a bug.
 
user895378
And then I would mark it "won't fix"
 
I have a small clarity question: Is it possible to have one php file call another php file. I am not talkign about includes. The php files should be completely separate and I want to make a call in the first file to the second file while passing parameters. Then I want to get the output of file2 back to file1. Is that possible or didn't I quite get my head around how php works?
 
@rdlowrey I have run into it where someone thought it would be great to automatically support Unicode strings. Though I agree with your main point. Anyone smart enough to actually use Icicle knows that mbstring.func_overload is horrible.
@rdlowrey hehe, this actually sounds reasonable. I actually got the idea from Ratchet, where they called strlen('√') and failed if it returned 1.
 
@Algram You could do it with exec.....but you almost certainly don't want to do this. What problem are you trying to solve.
 
@Danack I want to run a php script every monday with a cronjob. This main-file will execute several other files (that handle api calls), which return the json from the apis back to the main php file.
 
4:06 PM
@Algram Why would that require having the other scripts be executed separately, rather than just:
$result1 = firstFunction();
$result2 = secondFunction();
in the script that is run by cron ?
 
I think he means the cron job should call web services. ^^ Which you basically answer anyway @Danack
$result1 = json_decode(webService1());
$result2 = json_decode(webService2());
 
I just set up a new game (s1.darkaura.de/Game/#) if anyone wants to play around with the new forum or the game itself, feel welcome.
 
@Danack guess with the functions you mean functions within a single php file? I am not sure, but the main-php file will also have to handle storing the information that it gets back from the api-phps in a database. So I thought it would be clean to have them all separate and deliver information back to the main file
 
@chozilla Impressive game
 
@Algram No...I didn't mean the functions would be in a single php file. The standard way of doing stuff is to have the declarations of functions live in their own files, and then have a script that actually does stuff (but doesn't declare functions) call the functions. This really doesn't sound like something that needs to have the functions invoked as separate processes.
 
4:12 PM
nice. if your logged in you see the page >_<
 
@chozilla Yes. You linked to JSON output...
 
user895378
@chozilla click on the link
 
@SebastianBergmann think so. The driver looks stable to me.
 
I get the idea of non-graphical games, but this is the first case I've seen where you're expected to play in JSON ^^
 
@Danack Oh..I was stupid. If I understood correctly: Have the api-calling functions each in a separate php file. Then in the main-file include all the api files. then I can just call the functions with parameters and save their output in a variable, right?
 
4:14 PM
yea yea.. i am very sorry. (s1.darkaura.de)
 
@Algram yep, that's right.
 
@Orangepill yes
 
@Danack Idk, sometimes you don't think of the simplest solutions.. Thank you very much for your help!
 
@rdlowrey problem is that i actually dont get the json >_<
 
user895378
@chozilla then use wget or curl or something in the terminal to see. You've almost certainly got some sort of session thing on your end that prevents you from seeing the error.
 
user895378
4:17 PM
(or just clear your cookies in your browser)
 
@rdlowrey i know, i send a new link that should work without a session.
 
Incognito mode - it's not just for porn.
 
@Danack good idea to test.
not sure if /Game should be a deep link. but yea it should not break
i know @NikiC will not try it again with the new link. i missed my chance of feedback there.
 
@NikiC That gives me an idea for a game where to advance you have to write schema-validated XML. And the schemas get more and more complex as you advance.
XML for fun!
 
@cspray is … that pure sadism?
 
4:30 PM
@bwoebi Nah, just a really niche market. There's gotta be 1 or 2 people out there that enjoy writing XML.
 
lol
 
user895378
@cspray Yeah: you and @DanLugg
 
@rdlowrey No, no. I just had the idea, I wouldn't actually play the damn thing. Are you kidding?
 
I wouldn't play either! (yes I would)
Present coherent arguments as to why XML is inferior to it's analogues; JSON, YAML (lol), etc.
Existing shitty technologies (I'm looking at you SOAP) are not valid arguments.
 
@DanLugg well, what it has is document definitions… (these DTDs)
but not sure if that's an advantage, haha
 
4:44 PM
DTDs and XSD are benefits I'd say, but they could be argued as problems I'm sure.
 
yeah
 
Seriously though; there's a ton of XML hate, and I think much of it is or has become wet monkeys and stairs.
 
I do think that XML gets a bad wrap getting associated with SOAP. But it is more cumbersome to write.
 
So, verbosity?
 
Yea. But... I don't know that can be a strength too so... yea
I don't know
I wouldn't mind XML as like a configuration or something but I wouldn't want to consume it over an API
 
4:50 PM
But... you'd have to write configuration, and programmatically read API...
So wouldn't that just compound the effect of verbosity and lose the benefits?
Reading unformatted <enter-serialization-format-here> is always impossible. When you lack whitespace, you're pretty much fucked anyway. Try understanding a 30k 1-liner of JSON.
 
Eh, when consuming an API it boils down to a JSON structure coming out as an associative array whereas you just can't do that with XML. A lot more code to parse out XML.
And the reason for configuration, and this would only be specific configurations, is that sometimes I wish they had comments/documentation on why something is set to a specific value.
 
Well, the complexity of JSON encoding/decoding is hidden behind the respective functions. There isn't an "out-of-the-box" serialization format of hashtables to XML and back supported in PHP but it could/can be (has been) written fairly easily.
 
But I also think that JSON vs XML is a silly argument. Use the format appropriate for the task at hand. Or the one forced upon you by a 3rd party.
 
^^
 

« first day (1749 days earlier)      last day (3203 days later) »