waynedixon,
@waynedixon@mastodon.social avatar

You would think that after using PHP for almost 20 years, that I'd have the DateFormatter format codes memorized... nope... I have the standard ones I need most often (Y-m-d H:i:s and m/d/Y g:i a), but anything else I have to look up the codes every time.

merms,
@merms@mastodon.social avatar

@waynedixon I use printf functions with just %s (instead of the placeholder better fitting the input data type) all the time because <s>I’m too old to care</s> if the generic solution works in 99 % of all cases, why bother with all the needless complexity.

meuon,
@meuon@fosstodon.org avatar

@waynedixon I keep looking up things I think I know, because PHP has evolved so much. Mostly for the better but some times it's a head twister for me.

waynedixon,
@waynedixon@mastodon.social avatar

@meuon The thing I absolutely have to look up at times is 'in_array’. I can never remember the order of the parameters for that.

BBEdit does provide autocomplete, so it's not always a problem, but sometimes I still get a bit confused. (Yes, I still use BBEdit for my PHP coding and have since 2007. I'm not likely to change at this point)

meuon,
@meuon@fosstodon.org avatar

@waynedixon I use "joe" because I've been using Wordstar-like commands forever (since WordStar era?) I've tried auto-complete helper type editors and they break my thought process. Old dog can only learn so many new tricks. ;)

zimzat,
@zimzat@mastodon.social avatar

@waynedixon That's one up on me; I only remember Y-m-d H:i:s and c 😂

waynedixon,
@waynedixon@mastodon.social avatar

@zimzat I think ‘Y-m-d H:i:s' is probably one that almost every one who deals with a database has memorized. Let's be honest, if we had our way every date would be 'Y-m-d H:i:s' format, right?

zimzat,
@zimzat@mastodon.social avatar

@waynedixon Yup. That's what I use by default until someone tells me to change it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • cisconetworking
  • slotface
  • GTA5RPClips
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • modclub
  • JUstTest
  • osvaldo12
  • Durango
  • khanakhh
  • anitta
  • provamag3
  • ngwrru68w68
  • cubers
  • tester
  • ethstaker
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines