Thread
:
[Part 3] Learning the Basics of Coding: Best Practices
View Single Post
#
4
09 Jul 2012, 06:47
Badshah93
Coder
Join Date: Jun 2010
Real name: Aayush Agrawal
for one liner codes i prefer using ternary operators over if/else statement.
So, this code
Block Disabled:
(
Update License Status
)
Suspended or Unlicensed Members Cannot View Code.
Can be changed to
Block Disabled:
(
Update License Status
)
Suspended or Unlicensed Members Cannot View Code.
Saves 4 line and easier to scan.
No members have liked this post.
Last edited by Badshah93; 09 Jul 2012 at
06:55
.
Badshah93
View Public Profile
Find all posts by Badshah93
Likes Received: 166