Skip to content

Instantly share code, notes, and snippets.

Joshua Sun JxSun

Block or report user

Report or block JxSun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JxSun
JxSun / blog_asap_lod_3.java
Created Apr 22, 2018
A StringBuilder example which does not break LoD
View blog_asap_lod_3.java
return new StringBuilder()
.append("example")
.delete(0, 2)
.insert(0, 's')
.toString();
@JxSun
JxSun / blog_asap_lod_2.java
Created Apr 22, 2018
A solution to resolve a LoD violation in Clean Code
View blog_asap_lod_2.java
BufferedOutputStream bos = ctxt.createScratchFileStream(classFileName);
@JxSun
JxSun / blog_asap_lod_1.java
Created Apr 22, 2018
A train wreck example in Clean Code
View blog_asap_lod_1.java
final String outputDir = ctxt.getOptions().getScratchDir().getAbsolutePath();
You can’t perform that action at this time.