Ethan826
Practical Microservices: DI suggestion (p. 37, etc.)
I’d suggest that since the code is using the dependency-injection pattern already, sources of impurity like uuid/v4  should be injected to allow testability and make the overall functions pure where possible. Thus the dependencies should include a function with signature () => string rather than the concrete function uuid/v4.
First Post!
ethangarofolo
									Author of Practical Microservices
			          
						I agree with you. With the concrete function being used, controlling the ID in test has to resort to unholy mocking practices. Thank you for pointing it out.
Popular Pragmatic Bookshelf topics
                        
                      
                      
                Page 28: It implements io.ReaderAt on the store type. 
Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt?
...
              
            
            
          
              New
                Hi @venkats, 
It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
              
            
            
          
              New
                I’m not quite sure what’s going on here, but I’m unable to have to containers successfully complete the Readiness/Liveness checks. I’m im...
              
            
            
          
              New
                Hi, 
I am getting an error I cannot figure out on my test. 
I have what I think is the exact code from the book, other than I changed “us...
              
            
            
          
              New
                The allprojects block listed on page 245 produces the following error when syncing gradle: 
“org.gradle.api.GradleScriptException: A prob...
              
            
            
          
              New
                Hi all, 
currently I wonder how the Tailwind colours work (or don’t work). 
For example, in app/views/layouts/application.html.erb I have...
              
            
            
          
              New
Modern front-end development for Rails, second edition - Struggling to get the first chapter to work
                After running /bin/setup, the first error was: The foreman' command exists in these Ruby versions: That was easy to fix: gem install fore...
              
            
            
          
              New
                root_layout: {PentoWeb.LayoutView, :root}, 
This results in the following following error: 
no “root” html template defined for PentoWeb...
              
            
            
          
              New
                Hello faithful readers!  If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
              
            
            
          
              New
                I’ve got to the end of Ch. 11, and the app runs, with all tabs displaying what they should – at first.  After switching around between St...
              
            
            
          
              New
Other popular topics
                        
                      
                      
                My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
              
            
            
          
              New
                poll
poll
Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
              
            
            
              
          
              New
                I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: 
The Ser...
              
            
            
          
              New
                Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
              
            
            
          
              New
                Create efficient, elegant software tests in pytest, Python's most powerful testing framework.
  
Brian Okken @brianokken
Edited by Kat...
              
            
            
              
          
              New
                Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
              
            
            
              
          
              New
                Will Swifties’ war on AI fakes spark a deepfake porn reckoning? 
              
            
            
              
          
              New
                Develop, deploy, and debug BEAM applications using BEAMOps: a new paradigm that focuses on scalability, fault tolerance, and owning each ...
              
            
            
              
          
              New
                Hello, 
I’m a beginner in Android development and I’m facing an issue with my project setup. In my build.gradle.kts file, I have the foll...
              
            
            
          
              New
                A concise guide to MySQL 9 database administration, covering fundamental concepts, techniques, and best practices.
  
Neil Smyth
MySQL...
              
            
            
              
          
              New
Categories:
Sub Categories:
Popular Portals
- /elixir
 - /rust
 - /ruby
 - /wasm
 - /erlang
 - /phoenix
 - /keyboards
 - /python
 - /rails
 - /js
 - /security
 - /go
 - /swift
 - /vim
 - /clojure
 - /emacs
 - /haskell
 - /java
 - /svelte
 - /onivim
 - /typescript
 - /kotlin
 - /c-plus-plus
 - /crystal
 - /tailwind
 - /react
 - /gleam
 - /ocaml
 - /flutter
 - /elm
 - /vscode
 - /ash
 - /html
 - /opensuse
 - /centos
 - /php
 - /zig
 - /deepseek
 - /scala
 - /lisp
 - /sublime-text
 - /textmate
 - /react-native
 - /nixos
 - /debian
 - /agda
 - /kubuntu
 - /arch-linux
 - /django
 - /deno
 - /revery
 - /ubuntu
 - /manjaro
 - /nodejs
 - /spring
 - /diversity
 - /lua
 - /julia
 - /slackware
 - /c
 
    





