mikeflynn / egg.js

A simple javascript library to add easter eggs to web pages.

Home Page:https://mikeflynn.github.io/egg.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why are the method names capitalized?

danieldiekmeier opened this issue · comments

I was just wondering why you decided to use AddCode() instead of addCode().

Ha, great question. I've been writing a lot of Go code lately and their standard seeped in to my Javascript that day. Not an exciting answer, but that's definitely what happened and @rmcvey asked me the same thing, we just haven't felt the urge to change them yet.

Yes, it's not really important, of course. Just wondered. :D

@danieldiekmeier FWIW I added the lowercase method names to master (dfb4183). We can't really remove the capitalized methods quite yet, but the documentation is now using the lowercase method names.

Nice work, thank you!