23 private links
This package is a Swiss knife of refactoring utilities for Clojure. From simple operations like turning a form into a -> thread, to the more complex situations like renaming entire namespaces, it’s hard to find something clj-refactor can’t do.
The reset command. Confusing. Misunderstood. Misused. But it doesn’t need to be that way! It’s really not too confusing once you figure out what’s going on. Definitions First, let’s define a few terms. HEAD This is an alias for the tip of the current branch, which
A team of Google researchers set out to prove that managers didn't matter. Their research didn't go as expected and their work changed how Google trains managers. Hear from one of the researchers about what it's really like to be a manager at Google.
Unfortunately, lately I've seen more and more people recommending to use JWT (JSON Web Tokens) for managing user sessions in their web applications. This is a terrible, terrible idea, and in this post, I'll explain why.
A brief overview, getting starting and demonstration of the Git Interface for Emacs
You want to contribute to Open Source, great! But how do you get started? CodeTriage helps by picking a handful of open issues and delivering them directly to your inbox. After you sign up for CodeTriage, you pick the repos you want to help with, and we periodically send you issues. If you get busy we have an algorithm that helps to back off the issue load so that you don't get overwhelmed.
XML? Das war doch dieses wunderbar validierbare Datenformat! Einfach gegen das XML-Schema validieren und… ja, was und? Wie sieht die Reaktion darauf denn aus? In den meisten Fällen wollen oder müssen wir genau diese Reaktion in Form eines Custom SOAP Faults gestalten. Aber wie funktioniert das mit Spring Boot & Apache CXF?
SOAP-Endpoints auf Basis von Microservice-Technologien mit Spring Boot? Cool! Aber wie findet man bei den ganzen „Micro-Servern“ Fehler? Wie sehen die SOAP-Nachrichten aus und wie logge ich eigentlich generell? Und: wie viele Produkte haben wir eigentlich verkauft? Das klingt so, als bräuchten wir einen Blogartikel zum Thema Logging und Monitoring mit Spring Boot und Apache CXF!
In this article, we want to know how we can (1) generate a valid certificate for free; (2) configure a Spring Boot app with it; and lastly (3) how to renew it when it expires.
TDD good habits manifesto
(principles)
- tests should test one thing only
- test one logical assertion
- don't mix assertions of state and collaboration in the same test
- modifications of production code should only break related test cases
- each test should be self-contained, including data
- ensure tests are independent of each other
- don't refactor with a failing test
- organise your unit test projects to reflect your production code
- keep your tests and production code separate
- do not use production data and code to test production code
- if your tests are difficult to write or maintain, consider changing the design
(red phase)
- create more specific tests to drive a more generic solution (Triangulate)
- give your tests meaningful names (behaviour / goal-oriented) that reflect your production system
- write the assertion first and work backwards
- see the test fail for the right reason
- ensure you have meaningful feedback from failing tests
- Organize your test in Arrange, Act and Assert blocks
- Arrange (aka Given) – all necessary preconditions and inputs.
- Act (aka When) – on the object or method under test.
- Assert (aka Then) – that the expected results have occurred.
(green phase)
- write the simplest code to pass the test
- write any code that makes you get to the refactor phase quicker
- it is okay to write any code that you might improve at a later stage
- consider using Transformation Priority Premises to evolve your code
(refactor phase)
- refactor aggressively and constantly
- treat tests as first class code
- use the IDE to refactor quickly and safely
- refactor production and test code independently (except changing public interfaces)
- Use the Rule of 3 to tackle duplication
- Code can be copied once, but when the same code is used three times, it should be refactored/extracted
- Remember that duplication is cheaper than the wrong abstractions
Everybody knows that getting up and moving around is pretty much mandatory to deal with the problems sitting causes.
Yoga provides a great set of movements that directly counteract the above problems.
I’m going to share five of my favorite poses, complete with instructions on how to do them, and the problems they solve.
How do you balance a daunting project list representing multiple roles and outcomes? David Allen chats with Meghan Wilker, a tech expert, mother of two, and GTD enthusiast. Listen as Meghan shares how she uses GTD in her work and family life.
Diesmal wollen wir unsere SOAP-Services testen. Doch wie teste ich einen Webservice aus einem Unit-Test heraus? Wie baut man einen Integrationstest? Und gibt es da nicht auch noch etwas dazwischen?
How is an expert OO developer to improve on their craft? By learning from other paradigms! These six principles of the functional style also apply to OO. Some are part of good practice already; some express patterns both old and new; all give us different ways of thinking about problems. For developers without expertise in functional programming, examples in Java and C# provide new techniques for writing clear, quality code.
Vue.JS ist in der Szene für Webentwicklung aktuell ein heißes Thema. Neben React und Angular ist Vue aktuell das drittgrößte Framework für Single Page Webanwendungen.
Wir tauchen in dieser Folge in die Technik ein und Fabi und Sebi schildern ihre Erfahrungen mit dem Bauen von Webapps mit Vue.
Part three of a series on modeling Java problems as folds, looking specifically at streams in Java 8.