This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// was: `user_search.search_by_email(user_email)` | |
user_search.search_by_query(UserEmailQuery(user_email)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// was: `user_search.search(user_id)` | |
user_search.search_by_query(UserIdQuery(user_id)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserSearch { | |
func search(id : UserId): [User] { | |
warn("`UserSearch.search` is deprecated. Use `UserSearch.search_by_query` instead") | |
search_by_query(UserIdQuery(id)) | |
} | |
func search_by_email(email : Email): [User] { | |
warn("`UserSearch.search_by_email` is deprecated. Use `UserSearch.search_by_query` instead") | |
search_by_query(UserEmailQuery(email)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserSearch { | |
// ... | |
func search_by_query(query : Query): [User] { | |
// .. we somehow use the database gateway here to search | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserSearch { | |
// all other search_* methods were removed | |
func search(query : Query): [User] { | |
// .. we somehow use the database gateway here to search | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserSearch { | |
// ... | |
func search_by_nickname(nickname : Nickname): [User] { | |
// .. we somehow use the database gateway here to search .. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserSearch { | |
// ... | |
func search_by_email(email : Email): [User] { | |
// .. we somehow use the database gateway here to search .. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserSearch { | |
func search(id : UserId): [User] { | |
// .. we somehow use the database gateway here to search .. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xrandr --output DP2 --mode 1280x1024 --same-as eDP1 ; xrandr --output eDP1 --mode 1280x1024 --same-as DP2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; My idea of hierarchical Redux | |
;; ------------ | |
;; reducers | |
;; reducers for todos (todo list) | |
(defmulti todos-reducer (fn [state ty data] ty)) | |
(defmethod todos-reducer :todo-add [state ty {:keys [title done]}] | |
(let [state (update-in state [:counter] inc) |