DEV Community

Cover image for What was your win this week?
Michael Tharrington Subscriber for The DEV Team

Posted on

12 2

What was your win this week?

Heyo πŸ‘‹

Have a wonderful weekend. πŸ˜€

Looking back on this past week, what was something you were proud of accomplishing?

All wins count β€” big or small πŸŽ‰

Examples of 'wins' include:

  • Starting a new project
  • Fixing a tricky bug
  • Gardening 🌿

Edward Scissorhands is deep in focus while furiously trimming away at a bush... the camera is pointed up at Edward's face and upper body whil he flails his scissory hands wildly and little bits of shrubbery go flying. We're unable to see what he's cutting which builds suspense.

Top comments (32)

Collapse
 
bobbyiliev profile image
Bobby Iliev β€’

Published a new book over the weekend! I've been planning to publish this one for a very long time now!

Collapse
 
wraith profile image
Jake Lundberg β€’

Congrats!

Collapse
 
codenameone profile image
Shai Almog β€’

Finally got my new "JVM" to compile and run the first application (a prime number calculator). A lot of work remains and the execution doesn't go smoothly but it's finally compiling after ~3 months of work!

Collapse
 
emmysteven profile image
Emmy Steven β€’ β€’ Edited

I'm converting a spring boot application from package-by-layer to package-by-feature architecture.

However, I'm trying to remove the dependency between features; for example, I want to remove the direct reference of the Member entity in the User entity.

public class User extends BaseEntity {

    @Column(nullable = false, unique = true, length = 50)
    private String username;

    @Column(nullable = false, unique = true)
    private String email;

   @OneToOne(mappedBy = "user", cascade = CascadeType.ALL)
    private Member member;
}
Enter fullscreen mode Exit fullscreen mode
public class Member extends BaseEntity {

    @Column(nullable = false, length = 50)
    private String firstName;

    @Column(length = 50)
    private String middleName;

    @Column(nullable = false, length = 50)
    private String lastName;

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_id", referencedColumnName = "id")
    private User user;
}
Enter fullscreen mode Exit fullscreen mode

I'm trying to figure out how I can return memberId for a User every time I fetch the user entity without referencing the member entity in the User entity or creating a relationship between both

Collapse
 
codenameone profile image
Shai Almog β€’

You can use an interface there but I would keep that dependency. The goal is to minimize dependencies for clear separation but since the entity layer maps to the DB and the DB has a relation I think it's legitimate to have some relation in place.

Thread Thread
 
emmysteven profile image
Emmy Steven β€’

Thanks a lot, I really appreciate the feedback.

Collapse
 
thecheapaudiophile profile image
Griff Polk β€’

Posted my first design of Mac 40th anniversary art!
Check it out here, pretty basic.

Collapse
 
sadeedpv profile image
SadeedpvπŸ₯‡ β€’ β€’ Edited

My Vscode Extension finally crossed 100 installations

Collapse
 
_eduard26 profile image
Eduard Constantin β€’

I managed to publish an npm package for my doticons collection

Collapse
 
mateusabelli profile image
Mateus Abelli β€’

I fixed a bug on Forem github.com/forem/forem/pull/20218

Collapse
 
carlarjenkins profile image
Carlarjenkins β€’

Got my Medium blog post published in AWS in Plain English Medium publication. aws.plainenglish.io/aws-she-builds...

Collapse
 
wraith profile image
Jake Lundberg β€’

Started the new job (event though I got sick the night before my first day 😷) and earned the Top 7 Badge!

Collapse
 
tony972 profile image
Taxman972 β€’

I finished one of my side project.

Collapse
 
lukeskw profile image
Lucas Porfirio β€’

Getting up from bed everyday was what I managed to do, and it was good enough for me this week. Finished another chapter from a frontend course that I left aside too

Collapse
 
integerman profile image
Matt Eland β€’

I've definitely had seasons in life where that was enough. Kudos to you and hang in there.

Collapse
 
dumebii profile image
Dumebi Okolo β€’

You did so good! I'm proud of you. πŸ€—

Image of Docusign

πŸ› οΈ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more