Better HN
topnewbestaskshowjobs
Log inSign up

fishmonkey

1 karma · joined Jan 13, 2016 (10y ago) · 1 submissions

Submissions

comment 10y ago · link · parent

Much like what Natch says, I go about it by asking myself what this function is doing and then proceeding to name it something that mirrors that. If I find myself unable to answer then perhaps the function is doing more than it should be and that also gives me a chance to break it up into simpler functions each doing something that can easily be described by its signature.