Skip to main content
2 votes
1 answer
76 views

I am doing some unit testing with PHP. I got stuck on an error that the fluent interface of PHPUnit requires an intermediate variable. What is the reason for this behavior? See MyTests::works vs. ...
Sven Eppler's user avatar
  • 1,796
1 vote
1 answer
108 views

I've created a small library called StreamX, which acts like a type-safe, index-aware zipper to enable parallel streaming over multiple lists. It supports functional operations like forEach, map, ...
M S's user avatar
  • 19
0 votes
0 answers
36 views

I have a collection with objects of different types, each of them inheriting from a class named Component. I then want to modify the collections by my needs nicely, with use of kind of declarative and ...
codymanix's user avatar
  • 29.7k
1 vote
0 answers
62 views

Good time of the day! I have a generic interface which has a self-reference: public interface IBuilder<TObject, TBuilder> where TBuilder : IBuilder<TObject, TBuilder> { public ...
Ruafel's user avatar
  • 33
0 votes
1 answer
70 views

in some sources such as the original article of Martin Fowler aren't written that methods would return the same object, and methods in examples return different objects but in some sources(newer) such ...
Gor Madatyan's user avatar
1 vote
1 answer
117 views

When I read about it on Wikipedia, it seemed to me that these two are almost the same, but the same article says that they differ not only in the use of DSL. Note that a "fluent interface" ...
Gor Madatyan's user avatar
1 vote
2 answers
244 views

Why should I use fluent interface in Delphi instead of using 'with command'? I heard about both, but I haven't found the difference. I'm trying to find the best one for my project. ​It seems to work ...
Guilherme Goncalves's user avatar
0 votes
3 answers
470 views

I'm developing .NET core app that using selenium, so I've designed the logic using fluent interface that make the code more readable and maintained. I have a problem which is how to make a conditional ...
Karim Fahmy's user avatar
0 votes
1 answer
78 views

I'm implementing a Fluent Builder Interface and instead of having null, empty or whitespace checks, I force the developer to fill in the following mandatory fields: firstName, prefix and facultyNumber....
nop's user avatar
  • 6,617
0 votes
0 answers
25 views

Most of the time, we can replace a fluent interface with named parameters. class Cart { fun withItems(vararg items: Item) = this } fun aCart(): Cart { TODO() } class Item fun anItem(): Item ...
ibrahim koz's user avatar
0 votes
1 answer
68 views

I got some problem and I don't know how to fix it. this is sample for the problem class DancingClass { private static $associate = []; private static $first; public static function first($...
lucky's user avatar
  • 1
0 votes
1 answer
2k views

What are the benefits (or drawbacks) of returning a reference to 'this' object in a method that modifies itself? When should returning a 'this' be used as apposed to void? When looking at an answer on ...
Lazy Turtle's user avatar
0 votes
1 answer
137 views

I'm trying to create an object-configurator using a fluent interface. Code: class Configurator { public: Configurator() { printf("Constructor.\n"); } ~Configurator() { ...
user1562's user avatar
-1 votes
1 answer
117 views

I want to create a class only for setting params for function. I'm using a fluent interface for that. Some function returns the object to setting params and real code will execute in the destructor of ...
User98's user avatar
  • 51
0 votes
2 answers
7k views

I'm working on java selenium tests and I am trying to setup a fluent/method-chaining design code: I have a generic button class that allows navigating from a page class to the other. Buttons are ...
Batou's user avatar
  • 120

15 30 50 per page
1
2 3 4 5
30