cake-pattern Questions
2
I tried to use cake pattern in my project and liked it very much, but there is one problem which bothers me.
Cake pattern is easy to use when all your components have the same lifetime. You just d...
Coben asked 8/7, 2013 at 11:53
1
Solved
I am trying to learn about the cake pattern.
I am reading this blog about it.
The example code from that blog is:
case class User (name:String,email:String,supervisorId:Int,firstName:String,last...
Missioner asked 7/1, 2017 at 9:32
3
Solved
I have started learning scala for a while now and now looking at cake pattern. I got the example from here
trait UserRepositoryComponent {
def userLocator: UserLocator
trait UserLocator {
def ...
Neoteric asked 12/10, 2015 at 14:28
1
I have a top level trait that contains a number of classes and traits like:
trait Trees { self: Types =>
trait Tree
trait IdentifiedTree extends Tree
trait Empty extends Tree
/** The facto...
Seda asked 28/5, 2015 at 15:50
2
Solved
I'm developing a Play! 2.2 application in Scala with Slick 2.0 and I'm now tackling the data access aspect, trying to use the Cake Pattern.
It seems promising but I really feel like I need to write...
Wanids asked 4/4, 2014 at 15:2
1
Solved
I'm trying to do dependency injection using the cake pattern like so:
trait FooComponent {
val foo: Foo
trait Foo;
}
trait AlsoNeedsFoo {
this: FooComponent =>
}
trait RequiresFoo {
this...
Reprimand asked 24/2, 2014 at 12:14
2
Solved
I'm currently baking my first cake pattern, so please bear with me.
I took my working monolithic app and I cutted it into functional layers. The cut looks clean but resulted in two of the layers t...
Lachus asked 30/1, 2014 at 18:7
5
Solved
I'm trying to implement dependency injection in Scala with the Cake Pattern, but am running into dependency collisions. Since I could not find a detailed example with such dependencies, here's my p...
Malpractice asked 8/12, 2013 at 22:18
4
I have been reading about doing Dependency Injection in scala via the cake pattern. I think I understand it but I must have missed something because I still can't see the point in it! Why is it pre...
Salesin asked 10/8, 2011 at 13:59
2
Solved
I'm confused how to ensure that my Actors have the appropriate dependencies using the cake pattern. I'm still getting to grips with this, and I can't find any examples anywhere. I'm basically just ...
Eulogy asked 14/4, 2013 at 5:28
2
Solved
I have the following class:
class LinkUserService() {
//** cake pattern **
oauthProvider: OAuthProvider =>
//******************
def isUserLinked(userId: String, service: String) = {
val ...
Triphibious asked 13/9, 2013 at 16:39
2
Solved
I'm currently currently using the Cake Pattern to implement some optimization algorithms. I often hit name collision problems. For instance:
trait Add[T] { this: Foo[T] =>
def constant: T
def...
Kareykari asked 13/5, 2013 at 10:19
1
Solved
This question may help you understand my needs.
Cake pattern: one component per implementation, or one component per trait?
I have a Scala application using multiple UserService implementations wh...
Moan asked 26/1, 2013 at 0:24
1
Solved
I'm currently working to use the cake pattern on my application.
On exemples I have found across the web the exemples are kind of basic but doesn't involve more complex needs. What I'd like to do ...
Azotobacter asked 26/1, 2013 at 0:16
5
Solved
I just wonder: with Java 8, and the possibility to add implementation in interfaces (a bit like Scala traits), will it be possible to implement the cake pattern, like we can do in Scala?
If it is,...
Spirant asked 10/1, 2013 at 0:12
3
Solved
Using a number of newer language features in Scala it's possible to implement a composable component system and create components using the so called Cake Pattern, described by Martin Odersky in th...
Kinnard asked 18/10, 2012 at 4:34
2
Solved
It seems that the most common use of Scala's explicitly-typed self references is in the "Cake pattern," in which a module's dependencies are declared like:
class Foo { this: A with B with C =>
...
Boric asked 13/7, 2012 at 0:57
1
Solved
I'd like to use the Cake Pattern for splitting parts of some software system into components to make it completely modular as proposed in this article. In the simplest case I'd like to have some mo...
Farnsworth asked 20/4, 2012 at 18:51
1
Solved
I want to override abstract type in trait with <: and not with = (like answer here Scala Upper Bounds : value is not a member of type parameter).
I want to use cake pattern, but this doesn't w...
Liard asked 18/4, 2012 at 16:5
1
Solved
I'm still trying to learn Scala's Cake Pattern. It seems to me that it gives you the advantage of centralizing your configuration of "Components" as well as the ability to provide default implement...
Hawking asked 8/3, 2012 at 16:30
1
My development makes extensive use of the robot legs binding problem. I know how to solve it with PrivateModule in Guice, but it isn't clear how this would be done with Scala's cake pattern.
Coul...
Gilbertgilberta asked 27/1, 2012 at 14:52
1
© 2022 - 2024 — McMap. All rights reserved.