Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamped Tip 18 #305

Merged
merged 2 commits into from
Mar 1, 2016
Merged

Revamped Tip 18 #305

merged 2 commits into from
Mar 1, 2016

Conversation

gromgit
Copy link
Contributor

@gromgit gromgit commented Mar 1, 2016

Truncating the fast way

TL;DR;

~~X == Math.trunc(X)...in certain cases

Username

gromgit

Extra

  • Changed "round" to "trunc" (the former is quite different)
  • Restructed the tip into appropriate sections
  • Greatly expanded on the pros and cons

NOTE: I've changed the tip name and TL;DR for accuracy, but I did not rename the file itself.

* Changed "round" to "trunc" (the former is quite different)
* Restructed the tip into appropriate sections
* Greatly expanded on the pros and cons
@kurtextrem
Copy link
Contributor

​Perfect, :shipit:!​

@zenopopovici
Copy link
Collaborator

Nice! We'll review it.

@loverajoel
Copy link
Owner

@pklinger ping here!

* Tweaked the wording in several places based on input from @pklinger.
* Dropped one example for redundancy and possible confusion, folding its
  intent into yet more explanatory text.

The general aim is to have a consistent subtext from title to final para:

Yes, `~~` is cool, and probably faster than the alternative, but
LOOK AT ALL THOSE SHARP EDGES!
@gromgit
Copy link
Contributor Author

gromgit commented Mar 1, 2016

Thanks for the feedback, @pklinger . I've made further adjustments that hopefully improve the tip.

@pklinger
Copy link
Contributor

pklinger commented Mar 1, 2016

Thanks, I appreciate your contributions :shipit:

@loverajoel
Copy link
Owner

awesome guys 👏 @pklinger @gromgit

loverajoel added a commit that referenced this pull request Mar 1, 2016
@loverajoel loverajoel merged commit f11025a into loverajoel:gh-pages Mar 1, 2016
@gromgit gromgit deleted the tip18-update branch March 2, 2016 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants