17.07.2009
Channel php ausgewählt, Log vom 17.07.2009
Seite: < 1 2 3 4 > Letzte Seite
Chatlog
+SlashLife: samsen: Congratulations. You archieved a piece of wisdom only quite few people ever obtain.
samsen: doesnt quite help tokin while learning either :)
arkin: SL: what you writing about for IPC
+SlashLife: Arrays
samsen: trying to build comment script function, tough for a newbie?
samsen: seems quite complex
arkin: samsen: can be achieved in 20 lines or so
samsen: o rly
+SlashLife: arkin: That's my structure: http://trashbin.slashlife.org/hidden/unleashingarrays.pdf :/
+SlashLife: 750kB of orange nothingness.
arkin: yeah
arkin: i like your design
+SlashLife: It's not my design. :<
arkin: oh
arkin: Creating arrays and adding elements
arkin: you could maybe add explode, str_split
+SlashLife: It's the LaTeX/beamer standard design "Ilmenau"
+SlashLife: Oh, damn. Yeah, I definitely wanted to add str_split.
+SlashLife: Thanks for reminding me.
arkin: np
arkin: also
arkin: I would cover sorting arrays
arkin: sort, arsort, rsort, ksort etc
+SlashLife: I can do that in the "structure" part.
arkin: yeah
+SlashLife: Didn't want to go much into sorting though.
arkin: fair enough
arkin: casting (if thats the right word...)
arkin: $array = (array)$array; or settype
+SlashLife: Just throwing all the sort functions into a table, explaining the differences between them and telling people about natsort and usort
+SlashLife: ... maybe getting back at usort in Part IIII
arkin: yea thats probably the best method
arkin: I really find it hard to remember the difference
arkin: I might make that in a cheat sheet
arkin: could have a benchmark section ?
arkin: foreach ( array( '...', '...' ) as $key ) vs. foreach ( $predefined..
+SlashLife: I habe a huge bullet on my example list: BENCHMARKS
+SlashLife: http://scriptkitty.slashlife.org/data/upload/SlashLife.20090717-004731
+SlashLife: I wonder if I should add the abstract as a slide.
+SlashLife: arkin: You wouldn't happen to have any conference experience?
arkin: nope mate, still quite young
arkin: in_array(array_keys()) -> array_key_exists
arkin: which one do you use
+SlashLife: Neither.
+SlashLife: I am usually fine with isset
+SlashLife: However, array_key_exists is much faster than in_array.
arkin: nice, i use alot
+SlashLife: Let alone in_array after first having to copy all the array keys into their own array.
+SlashLife: However, be aware of:
+SlashLife: !php $a = array('x' => NULL); var_dump(isset($a['x']), array_key_exists($a, 'x'));
scriptkitty: SlashLife: [Warning: array_key_exists(): The second argument should be either an array or an object] bool(false) bool(false)
+SlashLife: >_>
+SlashLife: !php $a = array('x' => NULL); var_dump(isset($a['x']), array_key_exists('x', $a));
scriptkitty: SlashLife: bool(false) bool(true)
+SlashLife: Stupid parameter order.
+SlashLife: brb ... gotta sugar coat these almonds
arkin: lol
samsen: lol
samsen: php&weed , bad or good combo?
kuja: samsen: good if you're a good coder.
kuja: horribly bad if not.
kuja: in fact, almost retarded.
kuja: kind of like stevuu
samsen: haha :) yeah...gotta stop with that shit, gonna start php education in a few months :P
samsen: studyin up now, makes a lot smoother start :)
samsen: just know my way around css&html this shit is a whole new chapter :) but still, its quite logical
kuja: samsen: learning from other people is likely a bad idea.
+stevuu: omg kuja
+kuja: stevuu: why you omg'ing
+SlashLife: Because you are his god.
Seite: < 1 2 3 4 > Letzte Seite
Zurück zur ÜbersichtWebseiten Tipps
Hier gehts zum jquery Tutorial.
Meine schwarze Webseite: iPhone4Spiel
