esud.info – Blog about the travel, information technology, business, and other... About | Contact
10.03.2014

Comment or decomment source code with only 1 byte

Sometimes for debuggin purposes, we need to quickly comment or decomment many lines of source code. In programming languages, which are based on C-syntax (like PHP, Java, Java Script, C++, C#,...), you can do this using the following trick:
//*
print("This line is not commented");
/**/

/*
print("But this line is commented");
/**/
As you can see, we need to change only 1 character.
  Write the first comment... programming   

 

 
 
 
© 2013–2017 esud.info   Powered by Nanoblog