joelanman,
@joelanman@hachyderm.io avatar

In web dev how do you deal with different naming conventions in different places?

For example SQL convention: is_admin
JavaScript is often: isAdmin
HTML is often: is-admin

do you just use one everywhere? (though hyphens aren't valid everywhere), convert between them? Something else?

#webdev #sql #js

joelanman,
@joelanman@hachyderm.io avatar

Knex's postProcessResponse and wrapIdentifier look like they could manage conversion

https://knexjs.org/guide/#postprocessresponse

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