Bugs item #2973536, was opened at 2010-03-19 16:32
Message generated for change (Comment added) made by pegacat
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=480577&aid=2973536&group_id=55394

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Implement preprocessing of source code, remove splash

Initial Comment:
In my effort to slim down JXplorer for usage in web browsers, I implemented 
source code preprocessing. A very simple one, of course.

How it works:

- Before compilation, all source files are backed up.

- Before compilation, all source files are run through a preprocessor script, 
which comments out part of the source (leading //'s)and replaces files in place.

- After compilation, original source files are restored back into into place.

- All operations maintain file's modification time stamp.

This approach has a few advantages: Error/Warning line numbers from the 
compiler are still valid, an IDE code editor doesn't even see the commented out 
code. This way, you can still click URLs next to the warning messages, IDE's 
mini-helpers stay valid.

How to comment out some code:

- Put pairs of //#if SOME_FLAG and //#endif on single lines into your code.

- Duplicate one of the lines in preprocess.sh and edit it to match your 
SOME_FLAG.

For demonstration, usage of the splash screen is commented out.


BTW.: My Email is still m...@jump-ing.de, still can't log in.

----------------------------------------------------------------------

>Comment By: Christopher Betts (pegacat)
Date: 2012-06-17 20:56

Message:
Sorry about the delay; I don't usually look at these bugs :-).

Not sure what the point of this is?  comments are not included in compiled
byte code, so there shouldn't be any advantage.  There *are* some ways to
trim code down by parsing source, but in this day and age the small
advantage is not usually worth it, as bandwidth is generally good enough.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=480577&aid=2973536&group_id=55394

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jxplorer-devel mailing list
Jxplorer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel

Reply via email to