Daniel Opitz (@dopitz) header
Daniel Opitz (@dopitz) profile picture
Basel
Joined March 2009
Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)Photo by Daniel Opitz (@dopitz)
Daniel Opitz retweeted
Change my mind : Vibe coding only works well if you already know how to code.
135
19
1
335
17,269
Daniel Opitz retweeted
๐Ÿšจ Security vulnerabilities reported in a SINGLE day: PHP โ€” 2 CVEs Node.js โ€” 10 CVEs NGINX โ€” 5 CVEs Go โ€” 1 CVE GitLab โ€” 12 CVEs eMudhra โ€” CA certificate compromise
211
1,445
353
12,443
1,016,275
Daniel Opitz retweeted
JWT tokens vs cookies
61
42
18
689
119,740
๐—ช๐—ต๐˜† ๐—ฑ๐—ผ๐—ฒ๐˜€ ๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐—ฟ๐—ฒ๐—ฐ๐—ผ๐—บ๐—บ๐—ฒ๐—ป๐—ฑ ๐— ๐—ผ๐—ฑ๐˜‚๐—น๐—ฎ๐—ฟ ๐— ๐—ผ๐—ป๐—ผ๐—น๐—ถ๐˜๐—ต๐˜€ ๐—ถ๐—ป๐˜€๐˜๐—ฒ๐—ฎ๐—ฑ ๐—ผ๐—ณ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ๐˜€? Over the last decade, we have witnessed a significant trend of utilizing microservices across various industries. We were building systems for a few hundred or thousand users and wanted to know how to make a system for millions of users. This was over-engineering and needed to be corrected. Why was it wrong? Because the development lasted a long time, we created incredibly complex systems, which are hard to maintain. This is especially true for startups that must go fast and stay simple. A recent paper by authors from Google found that most of their developers split binaries for one of the following reasons: to improve performance, enhance fault tolerance, and establish abstraction boundaries, allowing for flexible rollouts. Yet, splitting applications into microservices has its challenges: ๐Ÿ”น ๐—œ๐˜ ๐—ต๐˜‚๐—ฟ๐˜๐˜€ ๐—ฝ๐—ฒ๐—ฟ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐—ป๐—ฐ๐—ฒ. The overhead of serializing data and sending it across the network is becoming an increasingly significant bottleneck. ๐Ÿ”น ๐—œ๐˜ ๐—ต๐˜‚๐—ฟ๐˜๐˜€ ๐—ฐ๐—ผ๐—ฟ๐—ฟ๐—ฒ๐—ฐ๐˜๐—ป๐—ฒ๐˜€๐˜€. It is incredibly challenging to reason about the interactions between every deployed version of every microservice. ๐Ÿ”น ๐—œ๐˜ ๐˜๐—ฎ๐—ธ๐—ฒ๐˜€ ๐˜„๐—ผ๐—ฟ๐—ธ ๐˜๐—ผ ๐—บ๐—ฎ๐—ป๐—ฎ๐—ด๐—ฒ. Rather than having a single binary to build, test, and deploy, developers must manage n different binaries, each on its release schedule. ๐Ÿ”น ๐—œ๐˜ ๐—ณ๐—ฟ๐—ฒ๐—ฒ๐˜‡๐—ฒ๐˜€ ๐—”๐—ฃ๐—œ๐˜€. Once a microservice establishes an API, it becomes easier to change by breaking the other services that consume the API. So, they proposed the following approach: ๐Ÿญ. ๐—ช๐—ฟ๐—ถ๐˜๐—ฒ ๐—บ๐—ผ๐—ป๐—ผ๐—น๐—ถ๐˜๐—ต๐—ถ๐—ฐ ๐—ฎ๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ that are modularized into logically distinct components. A component is a long-lived agent, similar to an actor. ๐Ÿฎ. ๐—Ÿ๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐—ฎ๐—ด๐—ฒ ๐—ฎ ๐—ฟ๐˜‚๐—ป๐˜๐—ถ๐—บ๐—ฒ ๐˜๐—ผ ๐—ฑ๐˜†๐—ป๐—ฎ๐—บ๐—ถ๐—ฐ๐—ฎ๐—น๐—น๐˜† and automatically assign logistical components to physical processes based on execution characteristics. Therefore, if both components are in the same OS process, they are referred to as regular method calls. However, if they are co-located, calls are executed as remote procedure calls (RPCs) over the network. Runtime decides whether these modules should be collocated or moved to different machines (and scaled, etc.). ๐Ÿฏ. ๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜† ๐—ฎ๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐—ฎ๐˜๐—ผ๐—บ๐—ถ๐—ฐ๐—ฎ๐—น๐—น๐˜†, preventing different versions of an application from interacting. This approach consists of two main parts: a programming model with abstraction that allows developers to write modularized applications and a runtime for building, deploying, and optimizing these applications. They claim that it reduces application latency by up to 15 times and costs by up to 9 times by simplifying application management and deployment. If you want to check the framework that implements the approach from the paper, please visit https:// serviceweaver. dev/. What do you think about this approach? Does it look like EJBs or CORBA?
22
165
11
1,008
83,422
Daniel Opitz retweeted
Unpopular opinion: Side projects will teach you more than certifications ever will. Build something. Break it. Repeat.
106
218
25
2,295
51,113
Contribute to open source, learn through self-education or courses, record educational podcasts, or grow your pet project easily with a FREE Rider subscription for non-commercial development. Download and start today ๐Ÿ‘‰ jb.gg/rd-free Spread the word! #dotnet #gamedev
72
585
209
2,154
580,816
Describe #microservices in 3 words or less...
123
6
5
28
16,377
Daniel Opitz retweeted
What ORMs have taught me: just learn SQL
26
70
14
677
34,868
Slim 4.14.0 is now out! It tidies the plain text error renderer and also adds template generics to the classes where we expose the PSR-11 container. #php #slimphp slimframework.com/2024/06/13โ€ฆ
1
3
27
1,057
You can have 100% code coverage with your tests and still have bugs in your code. You should test behavior, not lines of code. Quality > Quantity
8
13
3
117
12,290
Daniel Opitz retweeted
Developers can only contribute to business (not to the codebase only) when they understand what's going on in that problem space. Use-Case Driven Approach allows this type of development. A nice perspective by @davorminchorov ๐Ÿ“—
๐Ÿ“ฐ Building Maintainable PHP Applications: Thinking Data vs Thinking Business Processes Learn about the differences between thinking in terms of data (CRUD) vs thinking in terms of business processes (behaviour) and how it affects code maintainability. davorminchorov.com/articles/โ€ฆ
4
11
767
Be a programming language agnostic developer. Develop the ability to transcend specific programming languages and technologies. Focusing instead on understanding the underlying principles, practices and concepts that apply across programming language. Doing so cultivates a mindset that embraces change, continuous learning, and problem-solving.
4
34
2
173
13,168
Found it on LinkedIn. Canโ€™t express how important this is.
68
530
78
3,910
294,390
With 2023 coming to an end, Iโ€™m planning for 2024 and have availability left. If you need help with your PHP applications, packages, and teams in 2024 - schedule a call today. localheinz.com/services/
3
506
Daniel Opitz retweeted
Don't miss @akrabat talk "Building APIs with Slim framework" on Treblle #hacktoberfest2023 week Check out more details on hacked.treblle.com
1
4
10
1,122