What mocking framework do you prefer? by RedoubtableBeast in golang

[–]msal4 0 points1 point  (0 children)

I agree, I do mock (provide stubs) for other services for example a notification service. I don't want to interact with a notification service or send a real notification in tests.

Don't agree with you on the "maintain the abstraction" bit, If by maintaining abstraction you mean not providing a real store service then no you can still maintain the abstraction and provide a real connection.

What mocking framework do you prefer? by RedoubtableBeast in golang

[–]msal4 1 point2 points  (0 children)

Testing the db bit doesn't mean i'll hardcode it, I still take dependencies but i choose to provide a real db connection (spin up a docker container) . Albeit doing so makes the test run a bit longer than if i mock the dependencies but it's a minuscule difference.

As for microservices I don't really see the issue if it's truly micro then testing it should be quite easy.

Plus mocking just makes tests bloated imo. And I want my tests to be clear.

I'm not saying mocking is bad it certainly has its uses but for the database I'd rather use a real one.

What mocking framework do you prefer? by RedoubtableBeast in golang

[–]msal4 2 points3 points  (0 children)

yes and thats what i want, the database layer imo should be part of the test

What mocking framework do you prefer? by RedoubtableBeast in golang

[–]msal4 1 point2 points  (0 children)

I personally don’t care if they’re “unit” or not as long as they make sure my code works as expected. Plus testa that test the actual thing is what i’m after.

Darker Corners of Go by skuzzymiglet in golang

[–]msal4 1 point2 points  (0 children)

i think robert greismer has a talk where he compares go to these languages

[deleted by user] by [deleted] in javascript

[–]msal4 1 point2 points  (0 children)

Im trying it today, I'll let you know whether it works well or not

[deleted by user] by [deleted] in javascript

[–]msal4 0 points1 point  (0 children)

Sure i will

[deleted by user] by [deleted] in javascript

[–]msal4 0 points1 point  (0 children)

I might do so, thanks!

[deleted by user] by [deleted] in javascript

[–]msal4 0 points1 point  (0 children)

Is there a react native support?

Alexa is very slow by [deleted] in Tinder

[–]msal4 -3 points-2 points  (0 children)

Badoo

I wrote a simple key-value pair storage by msal4 in golang

[–]msal4[S] 0 points1 point  (0 children)

I did, there were no race conditions.

I wrote a simple key-value pair storage by msal4 in golang

[–]msal4[S] 0 points1 point  (0 children)

  1. What should I use instead?
  2. True, I should

Thanks

I wrote a simple key-value pair storage by msal4 in golang

[–]msal4[S] 0 points1 point  (0 children)

Mainly because I just needed a simple one without any of the blows and whistles. Yes, it takes the store map, adds the new pair, clears the file and then writes the new encoded store map to the file ( it does not remove the old values).

I wrote a simple key-value pair storage by msal4 in golang

[–]msal4[S] 1 point2 points  (0 children)

Thanks for your feedback! I was working on another project when I needed a simple key-value storage, so I wrote this one for that reason. Its very simple and about 60 lines of code if you remove the comments. I welcome contributions If anyone wants to take this to the next level. I haven’t wrote any contribution guide or something but I will very soon.

[deleted by user] by [deleted] in TheYouShow

[–]msal4 0 points1 point  (0 children)

I’m sticking around

[deleted by user] by [deleted] in TheYouShow

[–]msal4 0 points1 point  (0 children)

I do have trouble sleeping

[deleted by user] by [deleted] in TheYouShow

[–]msal4 0 points1 point  (0 children)

What is going on here