Profile

Cover photo
Benjamin Winterberg
Lives in Hanover, Germany
299 followers|357,829 views
AboutPosts

Stream

Benjamin Winterberg

Shared publicly  - 
 
Expekt is a (work in progress) BDD assertion library for #Kotlin, inspired by Chai.js. It works with your favorite test runner such as #JUnit and Spek.
expekt - BDD assertion library for Kotlin
1
Benjamin Gudehus's profile photoBenjamin Winterberg's profile photo
2 comments
 
Cheers! :) You can extend one of ExpectAny, ExpectComparable or ExpectCollection to add expectations for your own specialized types.

https://github.com/winterbe/expekt/tree/master/src/main/kotlin/com/winterbe/expekt

You also have to provide expect and should for your type, see:

https://github.com/winterbe/expekt/blob/master/src/main/kotlin/com/winterbe/expekt/Expekt.kt
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
Blogged: Integrating React.js into Existing jQuery Web Applications
This article describes a few techniques how to integrate React.js into traditional jQuery single-page-applications.
1
Stella Martin's profile photoBenjamin Winterberg's profile photo
2 comments
 
Hi Stella, I'm using Jekyll with a self-made theme, I've built entirely from scratch.
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
Stream.js 1.6.0 released with #ES6  support:

function* fibonacci() {
    let [prev, cur] = [0, 1];
    while (true) {
        [prev, cur] = [cur, prev + cur];
        yield cur;
    }
}

Stream(fibonacci())
    .filter(n => n % 2)
    .takeWhile(n => n < 50)
    .toArray();      // 1, 3, 5, 13, 21
1
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
Blogged: Java 8 Concurrency Tutorial: Atomic Variables and ConcurrentMap
Learn multi-threaded programming with Java 8 by example: This tutorial covers atomic variables and concurrent maps.
2
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
Learn concurrent and parallel programming with #Java 8 by Example: This first tutorial covers Threads, Tasks and Executors.
Learn concurrent and parallel programming with Java 8 by Example: This first tutorial covers Threads, Tasks and Executors.
3
3
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
This post describes technics how to prevent null checks and NullPointerExceptions in #Java 8 in order to improve null safety and code readability.
This post describes technics how to prevent null checks and NullPointerExceptions in Java 8 in order to improve null safety and code readability.
1
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
A filterable and sortable #ReactJS table component example: 

https://github.com/winterbe/react-samples
5
Soner Hax's profile photo
 
Hi Mr. Winterberg, I'm following your blog with pleasure. I think to make a blog website with jekyll. But, I wonder what is your theme on your website? I know your articles are prepared with GitHub. If I can get an opportunity with your help about it, I'll be grateful.
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
Stream.js 1.6.2 adds support for streaming #Java 8 lists from #JavaScript via #Nashorn

Example:

load('./stream.js');

var list = new java.util.ArrayList();
list.add(1);
list.add(2);
list.add(3);

Stream(list)
    .filter(function (num) {
        return num % 2 === 1;
    })
    .forEach(function (num) {
        print(num);    // 1, 3
    });
1
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
Stream.js 1.4.0 is available... #JavaScript 
1
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
Java 8 Concurrency Tutorial: Synchronization, Locks and Semaphores
Learn multi-threaded programming with Java 8 by example: This tutorial covers Synchronization, Locks and Semaphores.
4
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
This article covers some of the smaller changes in the Java 8 API - each described with easily understood code samples. Let's take a deeper look into Strings, Numbers, Math and Files.
Learn new Java 8 API features by example. This post covers Strings, Numbers, Math and Files.
1
Add a comment...

Benjamin Winterberg

Shared publicly  - 
 
How to really learn #Programming 
This is the story how I've really learned programming back in 2001. A summary of do's and don'ts for beginners who want to become a decent programmer.
4
1
Marouane H.'s profile photoGanesh Pandian's profile photoBenjamin Winterberg's profile photo
5 comments
 
You're welcome!
Add a comment...
Story
Tagline
I love coding
Introduction
I tweet and blog about Java and Web Development
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Hanover, Germany
Links
Other profiles
Contributor to
Work
Occupation
Software Engineer
Skills
Computer Science, Web Development, Java, Javascript
Basic Information
Gender
Male