I am a software development engineer in test for Infosys. My job is officially to write automated tests in Selenium Webdriver. I'm also a web developer as a hobbyest
How succinctly can I describe what the function does? Can I make this succinct function its name? Here's a function that fetches football scores off ESPN:
What does this variable hold? const person = new Person() Gee, i wonder what person is.
Objects
What it is, and first letter of the type is capitalized, always.
Methods of objects:
avoid naming the object in the function, example filereader.readfile(). I know that it comes off the file reader object, so naming the method readfile is redundant. read() is fine. filereader.read()
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Functions:
See? Does what the name says.
Variables:
const person = new Person()
Gee, i wonder whatperson
is.Objects
Methods of objects:
filereader.readfile()
. I know that it comes off the file reader object, so naming the methodreadfile
is redundant.read()
is fine.filereader.read()