Lots of exciting codingmarks added in january 2019


Dev-Bookmarks Logo

Save up to a workweek a year by efficiently managing your dev bookmarks, on www.bookmarks.dev. Share your favorites with the community and they will be published on Github - Star


New #codingmarks added in january 2018. Hot topics include:

angular

Angular Observable Data Services

A look into Observables and how they can improve your Angular data services.


Advanced caching with RxJS by thoughtram

When building web applications, performance should always be a top priority. One very efficient way to optimize the performance of our applications and improve the experience of our site is to use caching mechanisms. In this post we’ll develop an advanced caching mechanism with RxJS and the tools provided by Angular to cache application data.


A deep dive on Angular decorators

  • published on:  2017-01-26
  • tags:   angular

Decorators are a core concept when developing with Angular (versions 2 and above). There’s also an official TC39 proposal, currently at Stage-2, so expect decorators to become a core language feature soon in JavaScript as well.

Back to Angular, the internal codebase uses decorators extensively and in this post we’re going to look at the different types of decorators, the code they compile to and how they work.

When I was first introduced to TypeScript and decorators, I wondered why we needed them at all, but once you dig a little deeper you can understand the benefits to creating decorators (not only for use in Angular).

AngularJS didn’t use decorators, opting for a different registration method - such as defining a component for example with the .component() method. So why has Angular chose to use them? Let’s explore.


[How-to] Implement custom form validators with Angular

Form validation is always a hot topic whenever I teach Angular. People usually ask me whether they should use Template driven forms or Reactive forms, and I used to tell them that reactive forms are a better option when you need custom validators.

That was partially wrong though: It is actually fairly easy to write custom validators that work seamlessly with both template-driven and reactive forms, which is what I’m going to show you in this post.

I’m going to create a custom credit card number validator. The validator is going to make sure that a credit card number has 16 digits and that it comes from an accepted credit card company.


Exploring Angular DOM manipulation techniques using ViewContainerRef

  • published on:  2017-03-04
  • tags:   angular

Whenever I read about working with DOM in Angular I always see one or few of these classes mentioned: ElementRef, TemplateRef, ViewContainerRef and others. Unfortunately, although some of them are covered in Angular docs or related articles, I’ve yet to found the description of the overall mental model and examples of how these work together. This article aims to describe such model.


The essential difference between Constructor and ngOnInit in Angular

  • published on:  2017-09-07
  • tags:   angular

One of the most popular Angular questions on stackoverflow is Difference between Constructor and ngOnInit with over 100k views. I gave my answer to this question there but also decided to expand on it in this article. While most answers in the thread and articles on the web focus on the difference between the usage of the two here I’d like to give a more comprehensive comparison that taps into components initialization process.


api

MockAPI docs

MockAPI is a simple tool that lets you easily mock up APIs, generate custom data, and preform operations on it using RESTful interface. MockAPI is meant to be used as a prototyping/testing/learning tool.


architecture

Feature Toggles (aka Feature Flags)

Feature Toggles (often also refered to as Feature Flags) are a powerful technique, allowing teams to modify system behavior without changing code. They fall into various usage categories, and it’s important to take that categorization into account when implementing and managing toggles. Toggles introduce complexity. We can keep that complexity in check by using smart toggle implementation practices and appropriate tools to manage our toggle configuration, but we should also aim to constrain the number of toggles in our system.


async-await

Cleaner code in NodeJs with async-await - Mongoose calls example – CodingpediaOrg

Example showing migration of Mongoose calls from previously using callbacks to using the new async-await feature in NodeJs


asynchronous

java.util.concurrent - Java Concurrency Utilities

In this tutorial I will take you through the new java.util.concurrent classes, one by one, so you can learn how to use them. I will use the versions in Java 6. I am not sure if there are any differences to the Java 5 versions.

Includes theory about

  • Java Executor Service
  • Java Callable
  • Java Future
  • ThreadPoolExecutor and much more

Asynchronous REST Services with JAX-RS and CompletableFuture · allegro.tech

One of new features introduced by JAX-RS 2.0 is asynchronous processing in Server and Client APIs. We use these APIs together with CompletableFutur…


awesome

GitHub - anaibol/awesome-serverless

:cloud: A curated list of awesome services, solutions and resources for serverless / nobackend applications. - anaibol/awesome-serverless


awesome-list

GitHub - anaibol/awesome-serverless

:cloud: A curated list of awesome services, solutions and resources for serverless / nobackend applications. - anaibol/awesome-serverless


aws

Claudia.js Home Page

Deploy Node.js projects to AWS Lambda and API Gateway easily.


bdd

Should.js API Documentation

should is an expressive, readable, framework-agnostic assertion library. The main goals of this library are to be expressive and to be helpful. It keeps your test code clean, and your error messages helpful.


blog

Ted Vinke’s Blog – Java, Groovy and Grails

Java, Groovy and Grails


caching

Advanced caching with RxJS by thoughtram

When building web applications, performance should always be a top priority. One very efficient way to optimize the performance of our applications and improve the experience of our site is to use caching mechanisms. In this post we’ll develop an advanced caching mechanism with RxJS and the tools provided by Angular to cache application data.


cdi

Injection with CDI (Part I)

There are three parts:

  • Injection with CDI (Part I) - Focused on default injection and qualifiers
  • Injection with CDI (Part II) - This is the second post based on pure CDI Injection (see Part I) after having talked about how to bootstrap CDI in several environments and how to add CDI to an existing Java EE 6 application. In this post I quickly want to show the different injection points in CDI : field, constructor and setter.
  • Injection with CDI (Part III) - In this post I’ll explain producers or “how you can inject anything anywhere in a type safe manner“.

chai

Express Integration Testing with SuperTest · InVision Engineering Blog

Put down that REST Client (or, gasp, the browser!) you’re using to test that API you’re developing and back away slowly! There’s a better way! With SuperTest there’s no need to verify your API by hand. Plus, using it gives you virtually free integration tests. Now you can test and code new features at the same time.


clean-code

Why I Changed My Mind About Field Injection?

I used to be a huge fan of field injection. But one day I started to question myself. Could it be possible that I have been mistaken? Let’s find out what happened.


cloud

GitHub - anaibol/awesome-serverless

:cloud: A curated list of awesome services, solutions and resources for serverless / nobackend applications. - anaibol/awesome-serverless


concurrency

java.util.concurrent - Java Concurrency Utilities

In this tutorial I will take you through the new java.util.concurrent classes, one by one, so you can learn how to use them. I will use the versions in Java 6. I am not sure if there are any differences to the Java 5 versions.

Includes theory about

  • Java Executor Service
  • Java Callable
  • Java Future
  • ThreadPoolExecutor and much more

csv

GitHub - Keyang/node-csvtojson

Blazing fast and Comprehensive CSV Parser for Node.JS / Browser / Command Line. - Keyang/node-csvtojson


date

Moment.js Home Page

A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

Documentation


date-manipulation

Moment.js Home Page

A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

Documentation


datetime

Moment.js Home Page

A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

Documentation


dependency-injection

CDI Reference Implementation

CDI: Contexts and Dependency Injection for the Java EE platform


Oliver Gierke - Why field injection is evil

I’m quite frequently getting pulled into discussions on Twitter about the different flavors of Dependency Injection. Also, I’ve repeatedly expressed my distaste for field injection but as Twitter is not the right communication channel to give an in-depth rational about my opinion. So here we go.

The comments section is also interesting.


Injection with CDI (Part I)

There are three parts:

  • Injection with CDI (Part I) - Focused on default injection and qualifiers
  • Injection with CDI (Part II) - This is the second post based on pure CDI Injection (see Part I) after having talked about how to bootstrap CDI in several environments and how to add CDI to an existing Java EE 6 application. In this post I quickly want to show the different injection points in CDI : field, constructor and setter.
  • Injection with CDI (Part III) - In this post I’ll explain producers or “how you can inject anything anywhere in a type safe manner“.

The One Correct Way to do Dependency Injection

A couple of weeks ago a coworker told me that they have a little utility in their projects in order to set private fields for tests. He kind of claimed they needed that since they are using Spring, which in production sets the dependency. I was a little confused. But after looking into it I realized that there is an (anti)pattern going on that needs some fighting against. Lets have a look at the pattern.

Spring (and other DI frameworks) can inject dependencies into private fields. It looks like people like to use this because it combines some compelling properties:

  • Very little boilerplate code.
  • All you need is a simple annotation on the fi

Constructor Injection vs. Setter Injection

There seems to be two camps in dependency-injection: (1) The constructor-injection camp and (2) the setter-injection camp. Historically the setter-injection camp come from spring, whereas constructor-injection camp are from pico-container and GUICE. But lets leave the history behind and explore the differences in the strategies.


design-patterns

The One Correct Way to do Dependency Injection

A couple of weeks ago a coworker told me that they have a little utility in their projects in order to set private fields for tests. He kind of claimed they needed that since they are using Spring, which in production sets the dependency. I was a little confused. But after looking into it I realized that there is an (anti)pattern going on that needs some fighting against. Lets have a look at the pattern.

Spring (and other DI frameworks) can inject dependencies into private fields. It looks like people like to use this because it combines some compelling properties:

  • Very little boilerplate code.
  • All you need is a simple annotation on the fi

Why I Changed My Mind About Field Injection?

I used to be a huge fan of field injection. But one day I started to question myself. Could it be possible that I have been mistaken? Let’s find out what happened.


devops

dotenv homepage

Loads environment variables from .env for nodejs projects.


docker

Building Microservices with Node, Docker and Nginx pt 1 - What is a Microservice?

Building Microservices with Node, Docker and Nginx

  • Part 1 What is a Microservice?” I walk you through what a Microservice is and what this 3 part tutorial will show you.
  • Part 2 Making a microservice - shows you how to make a Microservices and some of the thoughts I have about them.
  • Part 3 Connecting the microservices - shows you how to use Docker compose and Nginx to connect your fleet of Microservices

docker-compose

Building Microservices with Node, Docker and Nginx pt 1 - What is a Microservice?

Building Microservices with Node, Docker and Nginx

  • Part 1 What is a Microservice?” I walk you through what a Microservice is and what this 3 part tutorial will show you.
  • Part 2 Making a microservice - shows you how to make a Microservices and some of the thoughts I have about them.
  • Part 3 Connecting the microservices - shows you how to use Docker compose and Nginx to connect your fleet of Microservices

docs

CDI Reference Implementation

CDI: Contexts and Dependency Injection for the Java EE platform


npm documentation

  • tags:   npm,   docs

  • About npm
  • Getting started
  • Packages and modules
  • Integrations
  • Orgs
  • npm Enterprise
  • CLI documentation

expressjs

Express Integration Testing with SuperTest · InVision Engineering Blog

Put down that REST Client (or, gasp, the browser!) you’re using to test that API you’re developing and back away slowly! There’s a better way! With SuperTest there’s no need to verify your API by hand. Plus, using it gives you virtually free integration tests. Now you can test and code new features at the same time.


express-validator

An express.js middleware for validator.js.


flexbox

A Complete Guide to Flexbox

Our comprehensive guide to CSS flexbox layout. This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex container) and the child elements (the flex items). It also includes history, demos, patterns, and a browser support chart.


free-programming-books

Coding bookmarks, aka #codingmarks

Efficiently manage and retrieve your coding bookmarks. Contribute by sharing and voting the worthy ones, so others can benefit


generics

The Basics of Java Generics

A quick intro tot he basics of Java Generics.


html

Using CORS - HTML5 Rocks

An introduction to Cross Origin Resource Sharing (CORS), which gives scripts the ability to make cross-origin XHRs.


integration-testing

Express Integration Testing with SuperTest · InVision Engineering Blog

Put down that REST Client (or, gasp, the browser!) you’re using to test that API you’re developing and back away slowly! There’s a better way! With SuperTest there’s no need to verify your API by hand. Plus, using it gives you virtually free integration tests. Now you can test and code new features at the same time.


jackson

How To Serialize Enums as JSON Objects with Jackson

How to serialize an Enum as a JSON Object using Jackson 2.


java

ORM Is an Offensive Anti-Pattern

  • published on:  2014-12-01
  • tags:   orm,   java

TL;DR ORM is a terrible anti-pattern that violates all principles of object-oriented programming, tearing objects apart and turning them into dumb and passive data bags. There is no excuse for ORM existence in any application, be it a small web app or an enterprise-size system with thousands of tables and CRUD manipulations on them. What is the alternative? SQL-speaking objects.


Ted Vinke’s Blog – Java, Groovy and Grails

Java, Groovy and Grails


java.util.concurrent - Java Concurrency Utilities

In this tutorial I will take you through the new java.util.concurrent classes, one by one, so you can learn how to use them. I will use the versions in Java 6. I am not sure if there are any differences to the Java 5 versions.

Includes theory about

  • Java Executor Service
  • Java Callable
  • Java Future
  • ThreadPoolExecutor and much more

Java Lambda Expressions

Java lambda expressions are new in Java 8. Java lambda expressions are Java’s first step into functional programming. A Java lambda expression is thus a function which can be created without belonging to any class. A Java lambda expression can be passed around as if it was an object and executed on demand.

Java lambda expressions are commonly used to implement simple event listeners / callbacks, or in functional programming with the Java Streams API.

If you prefer video, I have a video version of this tutorial in this Java Lambda Expression YouTube Playlist. Here is the first video in this playlist:


The Basics of Java Generics

A quick intro tot he basics of Java Generics.


Finally Getting the Most out of the Java Thread Pool

Finally understanding how thread pools really work in Java can be the difference between your application being a slog, or a clean and efficient system.


How To Serialize Enums as JSON Objects with Jackson

How to serialize an Enum as a JSON Object using Jackson 2.


Asynchronous REST Services with JAX-RS and CompletableFuture · allegro.tech

One of new features introduced by JAX-RS 2.0 is asynchronous processing in Server and Client APIs. We use these APIs together with CompletableFutur…


javaee

Thorntail Home Page

Thorntail provides a mechanism for building applications as uber jars, with just enough of the WildFly application server wrapped around it to support each application’s use-case.


CDI Reference Implementation

CDI: Contexts and Dependency Injection for the Java EE platform


Mockito: Why You Should Not Use InjectMocks Annotation to Autowire Fields – Ted Vinke’s Blog

People like the way how Mockito is able to mock Spring’s auto-wired fields with the @InjectMocks annotation. When I read this post of Lubos Krnac last week, I thought I should explain why I think the use of InjectMocks is a bad signal and how you should avoid it. Hint: it’s about visibility.


Oliver Gierke - Why field injection is evil

I’m quite frequently getting pulled into discussions on Twitter about the different flavors of Dependency Injection. Also, I’ve repeatedly expressed my distaste for field injection but as Twitter is not the right communication channel to give an in-depth rational about my opinion. So here we go.

The comments section is also interesting.


Injection with CDI (Part I)

There are three parts:

  • Injection with CDI (Part I) - Focused on default injection and qualifiers
  • Injection with CDI (Part II) - This is the second post based on pure CDI Injection (see Part I) after having talked about how to bootstrap CDI in several environments and how to add CDI to an existing Java EE 6 application. In this post I quickly want to show the different injection points in CDI : field, constructor and setter.
  • Injection with CDI (Part III) - In this post I’ll explain producers or “how you can inject anything anywhere in a type safe manner“.

Asynchronous REST Services with JAX-RS and CompletableFuture · allegro.tech

One of new features introduced by JAX-RS 2.0 is asynchronous processing in Server and Client APIs. We use these APIs together with CompletableFutur…


javascript

Moment.js Home Page

A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

Documentation


express-validator

An express.js middleware for validator.js.


validator.js

String validation.


Jest · 🃏 Delightful JavaScript Testing

🃏 Delightful JavaScript Testing


CodeMirror

CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.


Marked.js Homepage

A markdown parser and compiler. Built for speed.


jersey

How To Use Jersey Client Efficiently

In this blog post, i would like to introduce some tips to avoid unnecessary memory allocation and also to save some CPU cycles to achieve better throughput.

  • Tip 1: Be careful when updating WebTarget config!
  • Tip 2: Avoid WebTarget.register()
  • Tip 3: Avoid WebTarget.property()
  • Tip 4: Use response.close() to release network connections!

json

GitHub - Keyang/node-csvtojson

Blazing fast and Comprehensive CSV Parser for Node.JS / Browser / Command Line. - Keyang/node-csvtojson


How To Serialize Enums as JSON Objects with Jackson

How to serialize an Enum as a JSON Object using Jackson 2.


linux

5 Commands for Checking Memory Usage in Linux

  • tags:   linux,   memory-management

  • free -m
  • egrep --color 'Mem|Cache|Swap' /proc/meminfo - This will produce an easy to read listing of all entries that contain Mem, Cache, and Swap … with a splash of color

markdown

Marked.js Homepage

A markdown parser and compiler. Built for speed.


memory-management

5 Commands for Checking Memory Usage in Linux

  • tags:   linux,   memory-management

  • free -m
  • egrep --color 'Mem|Cache|Swap' /proc/meminfo - This will produce an easy to read listing of all entries that contain Mem, Cache, and Swap … with a splash of color

microservices

Thorntail Home Page

Thorntail provides a mechanism for building applications as uber jars, with just enough of the WildFly application server wrapped around it to support each application’s use-case.


What We Got Wrong: Lessons from the Birth of Microservices - YouTube

Ben Sigelman talks about what Google got wrong about microservices, the lessons learned along the way and how to apply those lessons today.


Building Microservices with Node, Docker and Nginx pt 1 - What is a Microservice?

Building Microservices with Node, Docker and Nginx

  • Part 1 What is a Microservice?” I walk you through what a Microservice is and what this 3 part tutorial will show you.
  • Part 2 Making a microservice - shows you how to make a Microservices and some of the thoughts I have about them.
  • Part 3 Connecting the microservices - shows you how to use Docker compose and Nginx to connect your fleet of Microservices

mocking

Mockito: Why You Should Not Use InjectMocks Annotation to Autowire Fields – Ted Vinke’s Blog

People like the way how Mockito is able to mock Spring’s auto-wired fields with the @InjectMocks annotation. When I read this post of Lubos Krnac last week, I thought I should explain why I think the use of InjectMocks is a bad signal and how you should avoid it. Hint: it’s about visibility.


MockAPI docs

MockAPI is a simple tool that lets you easily mock up APIs, generate custom data, and preform operations on it using RESTful interface. MockAPI is meant to be used as a prototyping/testing/learning tool.


mockito

Mockito: Why You Should Not Use InjectMocks Annotation to Autowire Fields – Ted Vinke’s Blog

People like the way how Mockito is able to mock Spring’s auto-wired fields with the @InjectMocks annotation. When I read this post of Lubos Krnac last week, I thought I should explain why I think the use of InjectMocks is a bad signal and how you should avoid it. Hint: it’s about visibility.


mongodb

Generating Globally Unique Identifiers for Use with MongoDB

By default, MongoDB generates a unique identifier that is assigned to the _id field in a new document before writing that document to the database. In many cases the default unique identifiers assigned by MongoDB will meet application requirements. However, in some cases an application may need to create custom unique identifiers


Mongoose - SubDocuments

Subdocuments are documents embedded in other documents. In Mongoose, this means you can nest schemas in other schemas. Mongoose has two distinct notions of subdocuments: arrays of subdocuments and single nested subdocuments.

var childSchema = new Schema({ name: 'string' });

var parentSchema = new Schema({
  // Array of subdocuments
  children: [childSchema],
  // Single nested subdocuments. Caveat: single nested subdocs only work
  // in mongoose >= 4.2.0
  child: childSchema
});

Cleaner code in NodeJs with async-await - Mongoose calls example – CodingpediaOrg

Example showing migration of Mongoose calls from previously using callbacks to using the new async-await feature in NodeJs


mongoose

Mongoose - SubDocuments

Subdocuments are documents embedded in other documents. In Mongoose, this means you can nest schemas in other schemas. Mongoose has two distinct notions of subdocuments: arrays of subdocuments and single nested subdocuments.

var childSchema = new Schema({ name: 'string' });

var parentSchema = new Schema({
  // Array of subdocuments
  children: [childSchema],
  // Single nested subdocuments. Caveat: single nested subdocs only work
  // in mongoose >= 4.2.0
  child: childSchema
});

Cleaner code in NodeJs with async-await - Mongoose calls example – CodingpediaOrg

Example showing migration of Mongoose calls from previously using callbacks to using the new async-await feature in NodeJs


multithreading

Finally Getting the Most out of the Java Thread Pool

Finally understanding how thread pools really work in Java can be the difference between your application being a slog, or a clean and efficient system.


nginx

Building Microservices with Node, Docker and Nginx pt 1 - What is a Microservice?

Building Microservices with Node, Docker and Nginx

  • Part 1 What is a Microservice?” I walk you through what a Microservice is and what this 3 part tutorial will show you.
  • Part 2 Making a microservice - shows you how to make a Microservices and some of the thoughts I have about them.
  • Part 3 Connecting the microservices - shows you how to use Docker compose and Nginx to connect your fleet of Microservices

nodejs

GitHub - Keyang/node-csvtojson

Blazing fast and Comprehensive CSV Parser for Node.JS / Browser / Command Line. - Keyang/node-csvtojson


Claudia.js Home Page

Deploy Node.js projects to AWS Lambda and API Gateway easily.


Fastify Homepage

Fast and low overhead web framework, for Node.js


dotenv homepage

Loads environment variables from .env for nodejs projects.


Cleaner code in NodeJs with async-await - Mongoose calls example – CodingpediaOrg

Example showing migration of Mongoose calls from previously using callbacks to using the new async-await feature in NodeJs


Building Microservices with Node, Docker and Nginx pt 1 - What is a Microservice?

Building Microservices with Node, Docker and Nginx

  • Part 1 What is a Microservice?” I walk you through what a Microservice is and what this 3 part tutorial will show you.
  • Part 2 Making a microservice - shows you how to make a Microservices and some of the thoughts I have about them.
  • Part 3 Connecting the microservices - shows you how to use Docker compose and Nginx to connect your fleet of Microservices

npm

npm documentation

  • tags:   npm,   docs

  • About npm
  • Getting started
  • Packages and modules
  • Integrations
  • Orgs
  • npm Enterprise
  • CLI documentation

open-source

The Open Source Definition

Open source doesn’t just mean access to the source code. The distribution terms of open-source software must comply with the criteria listed in the link.


orm

ORM Is an Offensive Anti-Pattern

  • published on:  2014-12-01
  • tags:   orm,   java

TL;DR ORM is a terrible anti-pattern that violates all principles of object-oriented programming, tearing objects apart and turning them into dumb and passive data bags. There is no excuse for ORM existence in any application, be it a small web app or an enterprise-size system with thousands of tables and CRUD manipulations on them. What is the alternative? SQL-speaking objects.


programming

Coding bookmarks, aka #codingmarks

Efficiently manage and retrieve your coding bookmarks. Contribute by sharing and voting the worthy ones, so others can benefit


reactjs

Jest · 🃏 Delightful JavaScript Testing

🃏 Delightful JavaScript Testing


rest

Fastify Homepage

Fast and low overhead web framework, for Node.js


Architectural Styles and the Design of Network-based Software Architectures

This dissertation defines a framework for understanding software architecture via architectural styles and demonstrates how styles can be used to guide the architectural design of network-based application software. A survey of architectural styles for network-based applications is used to classify styles according to the architectural properties they induce on an architecture for distributed hypermedia. I then introduce the Representational State Transfer (REST) architectural style and describe how REST has been used to guide the design and development of the architecture for the modern Web.

REST emphasizes scalability of component interactions, generality of interfaces, independent deployment of components, and intermediary components to reduce interaction latency, enforce security, and encapsulate legacy systems. I describe the software engineering principles guiding REST and the interaction constraints chosen to retain those principles, contrasting them to the constraints of other architectural styles. Finally, I describe the lessons learned from applying REST to the design of the Hypertext Transfer Protocol and Uniform Resource Identifier standards, and from their subsequent deployment in Web client and server software.


RESTEasy Client API

A quick guide to building out a client for the REST API using RESTEasy.


Asynchronous REST Services with JAX-RS and CompletableFuture · allegro.tech

One of new features introduced by JAX-RS 2.0 is asynchronous processing in Server and Client APIs. We use these APIs together with CompletableFutur…


rest-client

How To Use Jersey Client Efficiently

In this blog post, i would like to introduce some tips to avoid unnecessary memory allocation and also to save some CPU cycles to achieve better throughput.

  • Tip 1: Be careful when updating WebTarget config!
  • Tip 2: Avoid WebTarget.register()
  • Tip 3: Avoid WebTarget.property()
  • Tip 4: Use response.close() to release network connections!

RESTEasy Client API

A quick guide to building out a client for the REST API using RESTEasy.


resteasy

RESTEasy Client API

A quick guide to building out a client for the REST API using RESTEasy.


rxjs

Advanced caching with RxJS by thoughtram

When building web applications, performance should always be a top priority. One very efficient way to optimize the performance of our applications and improve the experience of our site is to use caching mechanisms. In this post we’ll develop an advanced caching mechanism with RxJS and the tools provided by Angular to cache application data.


serialization

How To Serialize Enums as JSON Objects with Jackson

How to serialize an Enum as a JSON Object using Jackson 2.


serverless

Claudia.js Home Page

Deploy Node.js projects to AWS Lambda and API Gateway easily.


GitHub - anaibol/awesome-serverless

:cloud: A curated list of awesome services, solutions and resources for serverless / nobackend applications. - anaibol/awesome-serverless


software-architecture

What We Got Wrong: Lessons from the Birth of Microservices - YouTube

Ben Sigelman talks about what Google got wrong about microservices, the lessons learned along the way and how to apply those lessons today.


software-development

Coding bookmarks, aka #codingmarks

Efficiently manage and retrieve your coding bookmarks. Contribute by sharing and voting the worthy ones, so others can benefit


spring

Oliver Gierke - Why field injection is evil

I’m quite frequently getting pulled into discussions on Twitter about the different flavors of Dependency Injection. Also, I’ve repeatedly expressed my distaste for field injection but as Twitter is not the right communication channel to give an in-depth rational about my opinion. So here we go.

The comments section is also interesting.


supertest

Express Integration Testing with SuperTest · InVision Engineering Blog

Put down that REST Client (or, gasp, the browser!) you’re using to test that API you’re developing and back away slowly! There’s a better way! With SuperTest there’s no need to verify your API by hand. Plus, using it gives you virtually free integration tests. Now you can test and code new features at the same time.


test-coverage

Istanbul, a JavaScript test coverage tool.

Istanbul instruments your ES5 and ES2015+ JavaScript code with line counters, so that you can track how well your unit-tests exercise your codebase.


testing

Mockito: Why You Should Not Use InjectMocks Annotation to Autowire Fields – Ted Vinke’s Blog

People like the way how Mockito is able to mock Spring’s auto-wired fields with the @InjectMocks annotation. When I read this post of Lubos Krnac last week, I thought I should explain why I think the use of InjectMocks is a bad signal and how you should avoid it. Hint: it’s about visibility.


Should.js API Documentation

should is an expressive, readable, framework-agnostic assertion library. The main goals of this library are to be expressive and to be helpful. It keeps your test code clean, and your error messages helpful.


Istanbul, a JavaScript test coverage tool.

Istanbul instruments your ES5 and ES2015+ JavaScript code with line counters, so that you can track how well your unit-tests exercise your codebase.


Jest · 🃏 Delightful JavaScript Testing

🃏 Delightful JavaScript Testing


time

Moment.js Home Page

A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

Documentation


tools

MockAPI docs

MockAPI is a simple tool that lets you easily mock up APIs, generate custom data, and preform operations on it using RESTful interface. MockAPI is meant to be used as a prototyping/testing/learning tool.


dotenv homepage

Loads environment variables from .env for nodejs projects.


CodeMirror

CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.


weld

CDI Reference Implementation

CDI: Contexts and Dependency Injection for the Java EE platform


Adrian Matei

Adrian Matei
Life force expressing itself as a coding capable human being

Lots of exciting dev bookmarks added in march 2019

Lots of exciting dev #bookmarks added in march 2019. Keywords: alias, api, api-management, architecture, arquillian, async, asynchronous, awesome, awesome-list, aws, bash, bootstrap, c, chai, cheatsheet, circuit-breaker, css, devops, diagnostics, diagram, dns, docker, docker-compose, docs, documentation, domain-driven-design, dotfiles, email, error-handling, facebook, favicon, ffmpeg, free-programming-books, functional-programming, gif, git, gradle, graph, helm, homebrew, html, html5, immutable.js, install, integration-testing, istio, java, javascript, jenv, junit, jvm, kotlin, kubernetes, kubernetes-helm, latex, linux, macos, markdown, maven-plugin, microservices, middleware, mocha, mongodb, monitoring, nginx, nodejs, oidc, online-tools, open-source, openid-connect, osx, package-manager, pandoc, performance, podcast, promise, proxy, r, reactive, reactive-programming, reactjs, redis, resources, rest, rxjs, security, shell, spring, spring-boot, spring-cloud, spring-cloud-gateway, spring-security, spring-webflux, sql, testing, tools, user-experience, video-processing, vim, visualization, web, websocket, windows and zuul Continue reading