teleren/devto huggingface dataset:
Complex auth - micro-services & test isolation
Tags: testing, microservices, aws, postgres
Published: 2020-10-29 23:43:01

I wrote about how we reworked our internal authorization code in [types & tests](https://vaclavhodek.com/complex-auth-types-and-test-importance) and [the biggest issue: cache invalidation](https://vaclavhodek.com/complex-auth-the-biggest-issue-cache-invalidation).

And the story continues because these two topics are closely related to each other. For integration tests, it's necessary to have them isolated. Why? Because your tests may:

- **fail** due to an uncertain state from the previous test
- **succeed** even if they should not - and **this is a way bigger problem**

Let's imagine the situation. You want to test your micro-services in a production-like environment with all its parts - **PostgreSQL**, **Memcached**, **Minio** (*S3-compatible storage*), **ActiveMQ** (*what Amazon MQ is built on top*), etc.

You want to be sure that the API request stores data, queues messages, and that the messages are correctly handled. You want to be sure that the whole process, all its parts, is working as desired. 

For tests, you can generate randomized data to prevent collisions. However, it becomes complicated to validate the results. But it's great as you can run tests in parallel; they do not affect each other. 

They can still, to some extent, interfere by overflowing the message broker, etc. And not only that, imagine that you reuse the testing set for just a slightly different case and forget to randomize data (or there is an internal state you can't affect). This can easily happen for very complex situations with many relations where randomizing data makes the test extremely complicated. The first test populates the cache (remember, we are doing an integration test on a production-like setup). The second test may not even run the critical code because the required data is taken from the cache. Oops. 

So, for the integration tests for [Localazy](https://localazy.com), I have a helper that is run before the test to:

- truncate all tables in the database
- wait for all unprocessed messages in the message broker
- invalidate all caches
- removes all files from the storage

With this, I can be sure that each of the tests runs on a completely clean setup and is not affected by other tests. 

And even better, I can maintain the whole stack independently and don't need it to be recreated for tests. Actually, I have the stack launched on a different computer. It's always ready, so I can, without any consequences, run one or all tests anytime I want without waiting for the testing environment to be created. And those saved seconds can quickly sum up. 

Btw, I also have a helper for ActiveMQ that stops the processing and waits for the queue to be empty. This helps me synchronize integration tests across several independent micro-services to be sure that the action has the full and complete expected reaction. 

There is an issue about this: You can't run tests in parallel. But I can live with it as I don't need to run all tests during the development. **I run test and go rest.**
Four pull Requests
Tags: hacktoberfest
Published: 2020-10-29 23:30:44

### Review of my first four pull requests to GitHub opensource projects

[repo](https://github.com/Road-of-CODEr/computer-science)

I started being so involved in learning Javascript's fundamentals. And luckily I got an opportunity to take an online course for junior-level programmers in South Korea, by Woowahan Delivery. Through the course, I met some nice people who were already very active in doing open-source projects. 

I started studying with them weekly and they had an opensource project for summarizing computer science knowledge. I thought 'maybe, I can contribute to this project?"

Yes, I was really able to. I summarized several chapters of a database book that I used in my class back in college. I assumed it would be easy but it wasn't. I guess I was smarter back in school!!

Anyway, I successfully made several pull requests. It is really exciting that I accomplished this Hactoberfest! Hopefully next year, I make better PR.
HacktoberFest, My First Experience.
Tags: hacktoberfest
Published: 2020-10-29 23:25:19

<!-- ✨With all the happenings in 2020, I am glad to apply what I have learned during this period to HacktobertFest open source projects. This is my first experience time with open-source projects as I had always wanted to contribute but haven't been able to do it right till now. I am so excited to get it right this time and most have something to show for it.✨ -->


### About me
<!-- I am Peculiar C Umeh, an Android Developer(Kotlin/Java). I started my tech journey with Google Africa Developers Scholarship 2019. Learned a lot then and still learning.   --> 

### The Journey

<!-- I heard about open source at She Code Africa last year. Then sometime this year, I had this desire to contribute to open source projects but I felt I needed someone to mentor me. That faithful day I got on to my community (Ken Saro Wiwa Initiative Hub, Port Harcourt, Nigeria) Whatsapp group. I send in a post asking someone to please mentor me on how to contribute to open-source projects. Not quite long the hub manager of KSWI Hub, Gino Osaharo sent in Samson... contact, that he will help me. I ran with a passion to search for him. I send him a message on Twitter but got no reply after 2 days. I followed him to GitHub and got his email address then emailed him. The next days I got a reply with enough materials on how to go about contributing to open source projects, I was happy. Without wasting time after reading most of the materials, I started looking for a project to contribute to. I was on that when another senior dev(Uchenna ) sent me a link(https://movi.hashnode.dev/10-ways-you-can-contribute-to-open-source-ckfljitve00cspds1d0cmbzv2) of an article on how to contribute to open-source projects. Woo! that was the end of my search for the project to contribute to because in that article I saw HacktoberFest. Immediately I jumped in, the rest was a smooth ride. →

### Progress

<!-- At Hacktoberfest, I successfully submitted 4 PR and more. I was awarded a T-shirt, though still waiting for its arrival.  -->

### Contributions

<!-- Don't forget it is my first time, so I looked out for projects I understood their codebase and I found 3 of them.

First, Add-lunching-icon -https://github.com/forfireonly/PartyParrot/pull/6

Second- Improving_text_view-https://github.com/forfireonly/PartyParrot/pull/10 

Third- Implement-scrollView-in-xml-files- https://github.com/anantcodes/Coding-Guide/pull/5

Fourth- Optimise profile chooser fragment.xml-https://github.com/oppia/oppia-android/pull/1997 -->


### Reflections
<!-- Hacktoberfest 2020 is amazing, it has added to my tech journey and made me see that I can achieve great goals in my career. Moving forward, I am present with one of the above-mentioned projects, still contributing to it, and will continue to do so. I can't wait for the next HacktoberFest. Thanks, HacktoberFest!!!-->
How to change desktop wallpaper using Python
Tags: python, linux, windows, beginners
Published: 2020-10-29 23:11:05

Checkout my latest post on how to change desktop wallpaper using Python. The tutorial supports both windows and Linux operating system.
Please do checkout the below link

Tutorial link : [https://shaikhu.com/how-to-auto-change-desktop-wallpaper-every-minute-using-python](https://shaikhu.com/how-to-auto-change-desktop-wallpaper-every-minute-using-python)
Thank's Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-29 23:10:06

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
Magento Development Best Practices (KMSS)
Published: 2020-10-29 22:49:33

Keep Magneto simple stupid (KMSS). Once you get into Magento you're going to find that there are hundreds if not millions of ways to get things done you can write a piece of code in a hundred different ways. You can refactor it a ton of different ways and then things become unmanageable. Magento guys like to over-engineer their code they like to show off how smart they are and then they try to make things so complicated and so twisted, that nobody else can read the code except them and then they feel some sort of pride about that. However, over time, as you gain experience you start to understand that Magento code. ALL that is working against you you need to keep code as simple and consistent as possible and that's what's going to help you be able to avoid crashes, avoid bugs quickly.

Be able to read and understand your code or other people's code. Refactor things quickly, make changes debug code faster and it's just going to help you build your Magento much more quickly. Use NodeJS, vanilla PHP SPL. Use modern languages Rust and Go. Use Cloud Technologies (Serverless, Kubernetes, managed services). Use ReactJS, Vue Storefront instead of outdated and slow Magento frontend. Don't use Magento bloated libraries and extensions. They are outdated and overcomplicated. Build business logic, not code complexity. Avoid as many frameworks as possible, just use plain vanilla language features, and not over-engineer things. Just keep things as simple and basic as possible, not using a bunch of frameworks and abstractions.
Day 245 : The Recipe
Tags: hiphop, code, coding, lifelongdev
Published: 2020-10-29 22:17:16

_liner notes_:
- Professional : Got to demo my sample app at the meeting. Everything worked so that was cool. We do a quiz to the end the meeting. The topic was the Internet. And I won! First time ever! Proof I spend way too much time on the Internet, haha. Had another meeting with my manager on a future project. Other than that, I did some online training. Demo worked and won a quiz, the recipe for a good day.

- Personal : Spent some time to finish up the demo app I showed today and got the radio show edited and submitted to the station. Then went to sleep. haha.

![Sand dunes of Canary Islands, Spain at sunset](https://dev-to-uploads.s3.amazonaws.com/i/0qlygaaglzbjtwli6trm.png)

Can't believe the week is over. While at the park and on WiFi, I'm going to download some tracks. When I get to my spot for the night, I'll be putting together the radio show. I may watch some more online training videos and go to sleep early.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube rRbOeYUp6WY %}
Node v15, Hacktoberfest Controversy, Tech Issues on U.S. Ballots, & more on the DevNews podcast!
Tags: news, podcast
Published: 2020-10-29 21:50:28

---
title: Node v15, Hacktoberfest Controversy, Tech Issues on U.S. Ballots, & more on the DevNews podcast!
published: true
description: Kicking off the premiere episode of season two of DevNews!
tags: news, podcast
series: DevNews Season 2
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/zoxvbu0494gq3sxtjp4v.png
---

### **Season two of the DevNews podcast is finally here!** 

{% podcast https://dev.to/devnews/s2-e1-hacktoberfest-node-v15-edge-mcbroken-and-tech-related-issues-on-u-s-ballots %}

**A quick refresher:** We're a DEV original podcast and news show for developers by developers. I'm Josh Puetz, Principal Engineer at Forem and DevNews co-host alongside @saronyitbarek, Founder of CodeNewbie and Disco. Each week, we strive to cut through the noise of software development news to bring you the most relevant stories for folks just like you in this always-interesting industry we call home. 

I'll be previewing the episodes in weekly posts here on DEV.

_Hint: You can [follow DevNews](dev.to/devnews) to get episode notifications right in your feed._

### In the premiere episode of season two, Saron and I discuss a variety of topics including...
- Oculus Quest 2
- A fun use of the McDonald's API
- Microsoft Edge
- a _liiiitle_ something you might have heard of called the U.S. election. More specifically, some tech-related issues on ballots across the country. 

We were also joined by Senior Software Engineer and Node.js TSC Member at Red Hat, [Beth Griggs](twitter.com/BethGriggs_), and [Michael Dawson](https://twitter.com/mhdawson1), Node.js lead for Red Hat and IBM. They were kind enough to chat with us about the release of Node v15 🎉 

Catch the first episode of DevNews season two right here on DEV — or subscribe on your platform of choice! Plus, if you leave us a review, we'll send you a free pack of thank-you stickers. Details [here](https://airtable.com/shr8oKAIMZgdYnBxx). 

## Quick Listening Links
- [Apple Podcasts](https://podcasts.apple.com/us/podcast/s2-e1-hacktoberfest-node-v15-edge-mcbroken-tech-related/id1525581923?i=1000496512267)
- [Spotify](https://open.spotify.com/episode/0uqAAj4nz3gywKlo3TQAtE)
- [Google](https://podcasts.google.com/feed/aHR0cDovL2ZlZWRzLmNvZGVuZXdiaWUub3JnL2Rldm5ld3NfcG9kY2FzdC54bWw/episode/aHR0cHM6Ly9kZXZwb2RzLmRldi9wb2RjYXN0cy9kZXZkaXNjdXNzLzk?sa=X&ved=0CAQQkfYCahcKEwiI4LTH59rsAhUAAAAAHQAAAAAQAQ)
- [Stitcher](https://www.stitcher.com/podcast/devnews/e/78961564?autoplay=true)
- [Listen Notes](https://www.listennotes.com/podcasts/devnews-dev-fH8hvsClkWp/)
- [TuneIn](https://tunein.com/podcasts/Technology-Podcasts/DevNews-p1352512/?topicId=158372713)
- [RSS Feed](http://feeds.codenewbie.org/devnews_podcast.xml)
- [DevNews Website](https://devpods.herokuapp.com/podcasts/devnews/episodes/29)
- [PocketCasts](https://pca.st/sb53vvwv)

---
_Acknowledgements_ 
- _@levisharpe for producing & mixing the show_
- Our season two sponsors, [Triplebyte](https://triplebyte.com/a/YU8fSn0/d) and [Vonage](https://nexmo.dev/devnews2)!

# 🗞️🗞️🗞️
Summon The JSON status update
Tags: javascript, html, css, webdev
Published: 2020-10-29 21:40:37

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/al2412x0nsxahvszb776.jpg)

As you may know a year ago I have started to work on a card game / flashcards for programmers. It took a quite of a while to finish it.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/vbfm0vxzdazk0kyup6hk.png)

The design, proofreading of the deck. Than testing with family and friends with the first prototype.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7orkswikcrjqxjpnk0oj.jpg)

After Javascript, another deck for Python. I am proud of it, because it allowed me to make more popular culture connections and add even more humour into the deck.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7fo0076zj0d7r4kj6ozx.jpg)

Of it comes to other activities these took also a lots of time: setting up a online store, finding out how to set it up, how to deliver decks worldwide and have the highest quality.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/9yj77pf1k4nhodxpaexj.jpg)

Later on I have sent some decks to famous programmers that tested them. And everyone was amazed. So it was a good sign.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/nwrv7a8up2t7r5dzeden.jpg)

Up until now there is still no official campaign of the deck, so to day. So sales mostly come from word of mouth. Results are very promising.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rnx6tcm3b0ypp8vj7k3w.jpg)

It is very exciting. Still have some things to do around the store and other stuff. It all takes so much time, never thought of that. With 0,5 hour a day it is hard to do more. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0o2neivuvflfzipwjg39.jpg)

But luckily a manufacture in Wisconsin takes care of production and delivery. They have years of experience and it's great working with them. They can ship a deck in one day, what is a great result!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/9m59dy2bov3m5xx4guv1.jpg)

Btw. There is a new series of JS tips shared here. So stay tuned for more.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/euz2p1xse6whvveou497.jpg)

You can check it out available decks here: https://summonthejson.com/products/summon-the-json-javascript-deck

Thank you for your support ❤️
EC2 Instance Storage 
Tags: aws
Published: 2020-10-29 21:34:24

This week I learned about the different storage types for AWS EC2 Instances. I thought it would be great to do a short summary of each type, however, I do encourage you to dive deeper!

Up first we have EBS Volumes. An EBS (Elastic Block Store) volume is a network drive you can attach to instances while they run. This allows instances to persist data, even after an instance is terminated! EBS are bound to a specific availability zone.
 
The next type of storage I’d like to mention is an AMI. AMI stands for Amazon Machine Image and is simply a customization of an EC2 Instance. An AMI allows you to add your own software, configuration and operating system. AMI are built for a specific region but can be copied across regions. 

For high-performance hardware disk storage it is best to use EC2 Instance Store. However, when using this form of storage be careful because there is a risk for data loss if the hardware fails. EC2 Instance Store is great for buffer/ cache/ scratch data scenarios. 

Last but certainly not least, is the Elastic File System (EFS). The EFS is a managed network file system that can be mounted onto 100’s of EC2 instances! Pretty cool!! EFS works with Linux EC2 instances across multiple  availability zones. EFS is highly scalable but can turn out to be very expensive as it does follow the pay per use system!
 
I hope you enjoyed a quick summary of EC2 Instance Storage, see you next week to go over Elastic Load Balancing & Auto Scaling Groups.
Dealing with rejections!
Tags: beginners, devops, help
Published: 2020-10-29 21:31:20

I'm sharing my experience with the community, I don't know if it's the right place to share this but I can't think of other alternative, It's been almost two months now, but this is my only post here, please someone help answer this questions please!?

1. What it means to be a developer!?
2. Can I consider myself a developer by developing businesses of others around me!?
3. How long will it take for me to master all this with no one to share working experience!? 

Thanks In Advance🙌
Experienced Blockchain Developer
Tags: python, django
Published: 2020-10-29 21:23:02

Hello, I am seeking an experienced cryptocurrency trading bot developer.
We have been developing the cryptocurrency trading bot which supports 10 exchanges and 10 strategies.
It currently covers all the functionalities and it is in a testing phase.
However, due to the lack of time of the current developer, the project is wrapping up slowly. (He has a full-time job already.)
Hence, I need someone who can replace the current developer's position, and fix the issues, finish the project asap. (You will be available to communicate to the current developer during the development to seize the current code.)
The current project is written in Python Django and you also need to have cryptocurrency trading bot development experience before.
To make sure that you are the right candidate, please, explain what is MACD while you are making a big.
And also, please, include your previous works.
Thanks
Your thoughts on a SaaS development kit
Tags: webdev, angular, kubernetes
Published: 2020-10-29 20:53:59

Hi,
we are currently working on a SaaS development kit. The goal is to speed up starting new SaaS projects by providing a solid foundation. During 13 years of developing SaaS projects we recognized that there are so many patterns which most SaaS projects have in common (user management, testing, deployment, payment, etc.). Because of this we decided to build Carrot Seed (https://www.cnc.io/en/seed).

We keep the technologies updated and provide this updates to our users, so that they can save time on the update process.

My question: what are your general thoughts? Would you use it? Why not? What are your concerns?

PS: we got hunted on product hunt - if you like the concept I'd appreciate an upvote or comment (Carrot Seed SaaS Kit) :-) -> https://www.producthunt.com/posts/carrot-seed-saas-kit
RandoPHP and Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-29 20:43:41

It was an amazing month!

For my side "night" project [RandoPHP](https://github.com/Hi-Folks/rando-php), I received a lot of __High Quality Pull Request__. At the end, just for this project, **I merged 40 Pull Request during Hacktoberfest**!!! So, I would like to say thank you to all the contributors from the Open Source PHP Community.
I think that it was an amzing opportunity to meet and know new developers, with different skill (from learner to "pro").
On my side, apart of improve the project with new features, it was a great opportunity to learn more from community, specially for "best practices" and go deeper with Design Patterns etc. We are just at the begin, I think that the project could be improved a lot in "code quality" perspective and I can learn more. I love all of this!
PS: while I'm writing this post, the Unit Test for the mentioned project reaches the code coverage at 100%!!! ;)
Top 5 DEV Comments from the Past Week
Tags: bestofdev
Published: 2020-10-29 20:34:52

---
title: Top 5 DEV Comments from the Past Week
published: true
description: Highlighting some of the best DEV comments from the past week.
tags: bestofdev
cover_image: https://res.cloudinary.com/practicaldev/image/fetch/s--7VrAA2ln--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/qmb5wkoeywj06pd7p8ku.png
---

This is a weekly roundup of awesome DEV comments that you may have missed.  You are welcome and encouraged to boost posts and comments yourself using the **[#bestofdev](/t/bestofdev)** tag.

WARNING: VERY hot take from @jfbrennan on [laptop stickers](https://dev.to/isarisariver/a-laptop-without-stickers-looks-naked-4o56)! Are you a sticker person or a minimalist person? I'm the latter, but I love collecting laptop stickers for notebooks and water bottles. 
{% devcomment 1767m %}

Great password storing tip, @yoursunny 🤣🤣🤣. Shared in [this](https://dev.to/ben/president-trump-s-twitter-accessed-by-security-expert-who-guessed-password-maga2020-2dbj) post on Donald Trump's recently revealed Twitter password. 
{% devcomment 1755k %}

Sound advice on achieving greatness as a developer from @isarisariver. 
{% devcomment 177be %}

Great perspective on the importance of happiness and satisfaction for developers from engineering manager, @trashhalo. Shared in [this thread](https://dev.to/ben/how-much-of-a-role-should-enthusiasm-play-in-the-software-development-process-23eh) about the role of enthusiasm in the software development process.
{% devcomment 1793h %}

Thanks for sharing a pic of your clean workstation, @ibonkonesa. You have an even _cleaner_ guitar if I do say so myself 👌 
{% devcomment 17713 %}

See you next week for more great comments ✌