Comments (3)
First and foremost: thank you for the time reviewing this! 😸
In fallen.rb, lines 3-6 you're initializing the instance variables with nil. Why is that? Isn't their value nil when first accessed anyway? I'm curious, maybe I don't see some edge cases where this is necessary.
Great question! At the time I wrote this, I didn't have much experience with Ruby, so I would say that I did it like that due to inexperience. I'm planning on going back to this work in early 2015 and I'll have this comment in mind!
By the way, you're initializing @pidfile but only @pid_file is used later on.
Oooh, that's a great catch! I'll see to fix this sooner than any refactoring. Pull requests are also welcome 😉 😉
Thank you again!!!
from fallen.
You're welcome — and thank you for this nice little gem! Actually I already forked your repo and am working on some things, so I'll add a pull request soon. What is your preferred way for a few commits? Squashing them together?
PS: Feel free to close this issue at any time.
from fallen.
You're welcome — and thank you for this nice little gem!
Glad you like it!!!
Actually I already forked your repo and am working on some things, so I'll add a pull request soon.
Early Christmas present! Yay!
What is your preferred way for a few commits? Squashing them together?
I've no issue with plenty of commits, I don't see a large history of commits as a bad sign. Having said that, I prefer commits that are atomic in their changes, that is, they only affect one part of the gem (or app, for that matter, as I've the same philosophy at work.) I've hundreds of commits where I've only changed one line, and few commits where the change was in a thousand lines but all part of the same change. Squashing them together make it hard to revert a feature/bug fix in case it's ever needed.
Thank you again for the time!
from fallen.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fallen.