<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/devgenius/best-of/2022/08" -->

---
title: Best Dev Genius posts — August 2022 | daily.dev
description: The most upvoted Dev Genius posts from August 2022, curated by the daily.dev community.
canonical: https://daily.dev/sources/devgenius/best-of/2022/08
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/devgenius/best-of/2022/08
og:type: website
og:site_name: daily.dev
og:title: Best Dev Genius posts — August 2022 | daily.dev
og:description: The most upvoted Dev Genius posts from August 2022, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Dev Genius — August 2022

1. 1  
[](https://daily.dev/posts/the-css-hack-you-need-to-know--sbyq2um5f "The CSS Hack You Need To Know!")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
The CSS Hack You Need To Know!  
The Attr() selector allows our CSS style sheet code to communicate with our HTML. The selector allows us to read in attribute values specific to the targeted HTML tag or element. A common practice implementation for this type of feature would be to use an additional span within an element. The span value is updated as required.  
267  
11
2. 2  
[](https://daily.dev/posts/concurrency-in-go-is-hard-nl62xkptr "Concurrency in Go is hard")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
Concurrency in Go is hard  
Go is generally known for having good built-in support for concurrency in Go. The solution was fixed in #2171 by using sync. It could also have been fixed without using the sync package by using an init function to set the variable v once. When the doSomething function is evaluated, running RLock / RUnlock will not affect the original lock in the User struct rendering it useless. The solution uses a pointer.  
47  
1
3. 3  
[](https://daily.dev/posts/jwt-common-attacks-u-fatuzqz "JWT Common Attacks")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
JWT Common Attacks  
JWT doesn’t use the good old cookies and sessions in authorization, instead it utilizes JSON web tokens cookies vs tokens JWT Structure JWT consists of 3 main parts. The Header is the top most part of the JWT token and it specifies which algorithm will be used in the signature part to generate the signature.  
30
4. 4  
[](https://daily.dev/posts/is-java-pass-by-value-or-pass-by-reference-rgfse-lge "Is Java Pass By Value or Pass By Reference")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
Is Java Pass By Value or Pass By Reference  
The above diagram shows how the first code block is put together. S generates two variables and an object. The first one has the heading Sting object, the second one is about the Course Object. The refereeing address is the only item that has changed here.  
25  
1
5. 5  
[](https://daily.dev/posts/how-the-dns-domain-name-system-works--tyr2iu5rl "How the DNS (Domain Name System) works?")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
How the DNS (Domain Name System) works?  
DNS is the Domain Name Server whose job is to translate website names to an IP address. Every second there are trillions of requests sent by the client. A single server wouldn’t be able to handle these many requests. An outage at the DNS level would bring any website down. The system is made up of different components that are distributed around the globe.  
23  
2
6. 6  
[](https://daily.dev/posts/nodejs-gateway-part-1-initial-setup-sjs8iibvp "NodeJS Gateway — Part 1: Initial Setup")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
NodeJS Gateway — Part 1: Initial Setup  
NodeJS Gateway is part of a series of how to build a payment gateway or solution using Javascript. The Gateway will be using TypeScript which I believe is an advantage over using just JavaScript to avoid errors that may have sneaked through to the runtime. It all comes to which one you’re well conversant about.  
18
7. 7  
[](https://daily.dev/posts/chrono-the-git-time-machine-kggkaqigq "Chrono: the git time machine")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
Chrono: the git time machine  
Chrono is a tool specifically to solve this problem, it’s called Chrono. It automatically commits in a temporary branch in your git repository every time an event occurs. When you’re done, you can squash all the temporary commits into one.  
18
8. 8  
[](https://daily.dev/posts/10-useful-tricks-tips-in-python-y85nijskz "10 useful tricks & tips in Python")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
10 useful tricks & tips in Python  
The join string method joins elements of a string, list or tuple with a string separator of our choice. Reversing a String is an extremely easy way to reverse strings in Python using slicing. Open a URL’s in Python easily with the webbrowser module 6.  
16
9. 9  
[](https://daily.dev/posts/kotlin-multiplatform-vs-flutter-jfwxkfuhl "Kotlin Multiplatform vs Flutter")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
Kotlin Multiplatform vs Flutter  
Kotlin Multiplatform (KMM) is an excellent choice for creating mobile apps. Flutter is a cross-platform framework to target iOS and Android with a single codebase. Dart is a C/J Javascript-like programming language that may be very familiar with some of these languages.  
15
10. 10  
[](https://daily.dev/posts/building-a-go-rest-client-in-2022-e1ovcgxvf "Building a Go REST client in 2022")  
Article  
![Avatar of devgenius](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df)Dev Genius · 4y  
Building a Go REST client in 2022  
The introduction of Generics in Go simplifies the REST API integration. Building a Go REST client in 2022 will be a type-safe client with Go.com, from unsplash It’s 2022\. So, I’ll walk through those 2 processes. I'll also need to convert my type into a byte array. The next step will be to tackle posting data.  
10

[See all Dev Genius archives](/sources/devgenius/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/devgenius/best-of/2022/08#page","url":"https://daily.dev/sources/devgenius/best-of/2022/08","name":"Best Dev Genius Posts — August 2022","description":"The most upvoted Dev Genius posts from August 2022, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/devgenius/best-of/2022/08#items","numberOfItems":10,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/the-css-hack-you-need-to-know--sbyq2um5f","name":"The CSS Hack You Need To Know!"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/concurrency-in-go-is-hard-nl62xkptr","name":"Concurrency in Go is hard"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/jwt-common-attacks-u-fatuzqz","name":"JWT Common Attacks"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/is-java-pass-by-value-or-pass-by-reference-rgfse-lge","name":"Is Java Pass By Value or Pass By Reference"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/how-the-dns-domain-name-system-works--tyr2iu5rl","name":"How the DNS (Domain Name System) works?"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/nodejs-gateway-part-1-initial-setup-sjs8iibvp","name":"NodeJS Gateway — Part 1: Initial Setup"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/chrono-the-git-time-machine-kggkaqigq","name":"Chrono: the git time machine"},{"@type":"ListItem","position":8,"url":"https://daily.dev/posts/10-useful-tricks-tips-in-python-y85nijskz","name":"10 useful tricks & tips in Python"},{"@type":"ListItem","position":9,"url":"https://daily.dev/posts/kotlin-multiplatform-vs-flutter-jfwxkfuhl","name":"Kotlin Multiplatform vs Flutter"},{"@type":"ListItem","position":10,"url":"https://daily.dev/posts/building-a-go-rest-client-in-2022-e1ovcgxvf","name":"Building a Go REST client in 2022"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Dev Genius","item":"https://daily.dev/sources/devgenius"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/devgenius/best-of"},{"@type":"ListItem","position":5,"name":"August 2022"}]}]}
```

