The OWASP Top-10 is an important resource for novice and experienced programmers alike. Even if you are just starting to program, knowing about the OWASP Top-10 and having some familiarity with it may help you improve your own code. #security #code
Hi, I'm Heather. I've been a software engineer since 2006, but am keenly aware of how intimidating it can be to dip your toes into the waters of computer programming. I was lucky enough to have an amazing group of gals acting as my rock during college while learning to program. However, not everyone is so fortunate.
Understanding a Java stack trace can be important when troubleshooting errors in a Java application. Stack traces can tell us about the exception thrown as well as the method calls that resulted in that exception. #java #exceptionHandling #stackTrace
Java method references are a replacement for lambda expressions that aid in clarity and brevity when the lambda expression would only reference an existing, named method.
Java streams and the corresponding operation pipelines are useful to perform calculations and transformations on collections, ranges and other types of related inputs. #java #streams #lambdaExpressions #pipelines
Lambda expressions are unnamed Java functions defined in-line in the source code where they are used. #java #lambdaExpressions #syntax
Although care is still needed Java's StringBuffer can aid in multi-threaded use cases when constructing a String that requires intermediate states. #java #StringBuffer #String #multithreaded #tdd #stepByStep #coding
http://codingchica.com/2023/11/02/building-as-we-go-javas-stringbuffer-for-multi-threaded-use-cases/
Java's StringBuilder can improve the performance of complex String creation, as long as only one thread will access the builder. #java #stringbuilder #streams #performance #tdd #testdrivendevelopment
http://codingchica.com/2023/10/30/building-as-i-go-using-javas-string-builder-for-single-threads/
Since Java Strings cannot be changed once created, if we need to construct a Java String with one or more variable(s) included, then we can use the format method. #java #string #syntax #performance #garbageCollection
http://codingchica.com/2023/10/26/the-immutable-java-string/
When you find yourself stuck while working on an issue, trying to power through may not be the best way to make progress. Instead, try to find a way to look at the problem with fresh eyes. #teamWork #coding #troubleshooting #help #issues
http://codingchica.com/2023/10/23/troubleshooting-tip-looking-with-fresh-eyes/
The maven-pmd-plugin is another source of possible quality gates for our java build. It can help ensure that we only release code that meets the team's quality standards. #java #mavenBuild #qualityGates #maven-pmd-plugin
Static code analysis, such as that provided by spotbugs-maven-plugin, can help ease the code review burden and get early feedback on performance, style and possible functionality issues. #java #mavenBuild #maven #staticCodeAnalysis
http://codingchica.com/2023/10/16/adding-spotbugs-a-static-code-analysis-plugin/
Certain plugins, such as those for static code analysis may not repeat the source code in their own reports, but rather prefer to deep link to source code report references when reporting issues / concerns. #java #mavenBuild #site #reports #source
http://codingchica.com/2023/10/12/java-sources-cross-referencing-reports/
Layering tests and quality gates helps ensure that the team has the earliest feedback as fast as possible. It can also help catch issues ahead of peer feedback in pull requests. #java #mavenBuild #cicd #testing #testingPyramid
http://codingchica.com/2023/10/09/testing-pyramid-intro-build-steps/
Regular expressions can be used in Java via the Pattern and Matcher classes to validate input formats or parse part of a string out of a larger string. #java #regExp #regularExpressions #pattern #matcher #syntax
http://codingchica.com/2023/10/05/regular-expressions-basics/
Existing Java projects can also benefit from a Maven JaCoCo code coverage quality gate, but we have to ensure that the build doesn't break for existing classes when we add the new check. #mavenBuild #java #unitTesting #testing #qualityGate
http://codingchica.com/2023/10/02/adding-jacoco-quality-gate-to-an-existing-code-base/
A broken or flaky test can be quickly skipped by adding the Disabled annotation to the JUnit test. #java #junit #unitTesting
http://codingchica.com/2023/09/28/junit-disabled-annotation/
By adding the site goal to our Maven build command, we can generate basic reports about the Java project based upon the pom.xml configuration. #MavenBuild #java #report #site #documentation
http://codingchica.com/2023/09/25/project-reports-generating-a-simple-maven-site-in-the-build/
Different scopes for Maven dependencies will let us control how that dependency is used in our Maven build, as well as any places that consume our Maven artifacts. #java #MavenBuild #dependencies
Simple String values that represent global state of the server or the surrounding environment can be passed to Java processes as environment variables. #java #configuration #environment
http://codingchica.com/2023/09/18/java-environment-variables/
Java system properties can relay information about the operating system (OS) and user running the Java application, which can help avoid some OS-specific logic in backend Java applications. #java #systemProperties #OSIndependence