MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/anc72t/client_did_not_pay/efsetqs/?context=3
r/webdev • u/TDex96 • Feb 05 '19
110 comments sorted by
View all comments
27
I think camelCase would be better.
14 u/shantred Feb 05 '19 I think camel Case would be betterI prefer tabs. 9 u/gankindustries Feb 05 '19 mashes spacebar 3 u/[deleted] Feb 05 '19 edited Feb 06 '19 var SUPERIOR CASING STYLE = 'agreed'; 4 u/max_kek Feb 05 '19 I think it should be like this (not tested):(function() { const due_date = new Date('2019-02-05'); const days_deadline = 31; const overdue = Date.now() - due_date.getTime(); if (overdue > 0) { const deadline = days_deadline * 1000 * 60 * 60 * 24; document.documentElement.style.opacity = Math.max(0, 1 - (overdue / deadline)); } }) 3 u/CarlosTheCoder Feb 05 '19 I prefer SpongeBobCase:https://github.com/crb02005/PowerShellFunctions/blob/master/PS-Humor-Functions/functions/ConvertTo-Mocking-Case.ps1 2 u/dance_rattle_shake Feb 05 '19 SpONgebOBcaSe*Case capitalization is reflected in the name we give it
14
I think camel Case would be better
I prefer tabs.
9 u/gankindustries Feb 05 '19 mashes spacebar 3 u/[deleted] Feb 05 '19 edited Feb 06 '19 var SUPERIOR CASING STYLE = 'agreed';
9
mashes spacebar
3
var SUPERIOR CASING STYLE = 'agreed';
4
I think it should be like this (not tested):
(function() { const due_date = new Date('2019-02-05'); const days_deadline = 31; const overdue = Date.now() - due_date.getTime(); if (overdue > 0) { const deadline = days_deadline * 1000 * 60 * 60 * 24; document.documentElement.style.opacity = Math.max(0, 1 - (overdue / deadline)); } })
I prefer SpongeBobCase:
https://github.com/crb02005/PowerShellFunctions/blob/master/PS-Humor-Functions/functions/ConvertTo-Mocking-Case.ps1
2 u/dance_rattle_shake Feb 05 '19 SpONgebOBcaSe*Case capitalization is reflected in the name we give it
2
SpONgebOBcaSe*
Case capitalization is reflected in the name we give it
27
u/[deleted] Feb 05 '19
I think camelCase would be better.