Service Workers at Cloudflare
- Cloudflare Workers run on the Edge of the Cloudflare infrastructure, right between your clients and your servers, but they have the same API as Service Workers.
- This can be used to write static front-ends and route the requests through the Worker, for example to add API secrets that would normally need to set up a whole server.
- Since it runs on the Edge the code is in geographical proximity to the client and not the server, which reduces latency.
- While [email protected] is a similar offering, the Workers adhere to the Service Worker standard, which could bring benefits on porting it to another provider or moving code between client and Edge when needed.
Are you an introvert, extrovert, or somewhere in between?
- After a long day of being with people I don't feel exhausted and usually want to hang out more ASAP.
- I used to have to play in the middle but now that i'm unemployed/self-employed I've realized that I absolutely don't like people 99% of the time.
- I used to think I was more extroverted because I was so at my previous job but i've been home 95% of the time for about 6 months now only seeing my wife and my dog and i've had very little desire to interact with people outside of the occasional internet posts and my mom.
- Like a meetup with new people in a place I know.
- Introvert although I've been trying to get out of my comfort zone more and meet more people, so far it's going pretty good surprisingly.
Introduction to MobX 4 for React/Redux Developers
- This not only has a learning curve but is a different programming paradigm altogether, and there is not a lot of up-to-date training material on how to use React with Mobx, while there is far, far more content on using React with Redux.
- You might have observed that I have been annotating the code examples above with // reaction, // action, and // observable state, and they mean what they normally mean in English.
- I decided to do this because public class fields are so widespread in React (for example, it comes with create-react-app) that you likely already have it set up or can figure out how to set it up in Babel if you need to).
- In our examples above we've already used observable states as well as defined actions that modify those states, and we have used mobx-react's @observer to help bind our React components to react to changes in state.
TIP - Import Vuejs Modules at once.
- Hey in this Post We will see how can we add multiple Vuejs modules at once.
- We all needed to import modules each time we create one on our modules folder like this (is from a real world project).
- Like you see in the example above we have a 10 extra lines in our code.
- 5 lines to import the modules and 5 others to declare them on modules object.
- Let's see now how can we reduce this 10 lines to 1 line So to do that we need to create an index.js file on modules folder that can listen to all the .js files inside modules folder and import them one by one.
- You can see now how our store/index.js is clean.
- For more informations check chris vfritz repo.
- We’ll never post without your permission.
What I Learned This Week (March 16, 2018)
- One of the things I value highly where I work is that, each week, our Director emails out a "What I Learned This Week".
- Imagine my excitement at learning that a tool, minikube, exists that allows you to play with Kubernetes locally on your development machine!
- Seriously, go install it and start playing with Kubernetes.
- The major win with these tools is they are modular and modularly adopt-able.
- This week I also rediscovered Ansible.
- By rediscovered, I mean I delved more into how it works and fell in love with it all over again.
- We are already using this tool at my job, but up until now, it has mostly had major wins on our Systems Support team.
- This week, it finally "clicked" how Ansible configuration works, and it is now no longer such a (great) mystery.
Changelog: Richer (and Smarter) Suggested Posts Beneath Articles
- They include mostly the really good from the site's history.
- We plan to increasingly make use of that space for other types of content going forward.
- For instance, we’ll have content tips about how to use the site, notices about new features, suggestions on members to follow, etc.
- We’ll also be allowing sponsoring organizations in our community to promote posts from their own engineering team.
- Alongside our plans for supporting promoted org posts, you now have the ability to opt out of seeing any sponsor material across the site, as well as the option to control whether these blocks can show up near your own posts.
- This is just the first version, and we’ll constantly be improving the new area and adding useful functionality.
- Thanks for being along for the journey as we try to improve the experience for everyone and grow a sustainable business.
How I Created my First Plugin-System
- To keep your code organized, it is a good idea to create a new folder called "events" to collect all event definitions in a central place.
- Now the event dispatcher uses the internal register and calls all plugin-methods, that have subscribed to this event.
- And this array looks exactly the same: The name of the event is on the left side and the name of the plugin-method is on the right side.
- The Symfony EventDispatcher will simply check all classes for the existence of this method and use the array to build the internal register of events and subscribers.
- But even if you don't want to create your own plugin system, then this kind of event driven programming is still a great way to decouple your code and to bring a bit more order into the chaos of a new code-project.
About “Difficult Conversations” (book recommended by Phil Haack)
- In this episode, Phil Haack tells us why we need to be prepared to have difficult conversations and why this can help your career.
- Phil also talks about the importance of taking care when writing code and why you should test your code carefully.
- What amazing show!
- In this interview, Phil recommended an excellent book: Difficult Conversations: How to Discuss What Matters Most.
- I listened to the audio version of the book, and it is impressive.
- I strongly recommend it.
- I wish I had the opportunity to read (or listen) it some years ago.
- For sure I would have less stressful moments.
- Thanks Phil!
- O post About “Difficult Conversations” (book recommended by Phil Haack) apareceu primeiro em Elemar JR.
- I work in organizations, helping programmers, architects, and executives develop software that meets business needs.
The #1 Rule for .NET Performance
- Design your objects to be collected on gen #0 or not at all.
- Naturally, following this recommendation demands you to know, at least the basics, of how the garbage collection works.
- But, if you are interested in improving the performance of your applications, this is necessary at all.
- In fact, the garbage collector was explicitly designed to be very efficient performing gen #0.
- Ideally, every object you allocate goes out of scope by the time next gen #0 comes around.
- It will inform nearly every aspect of your application (I strongly recommend you this Ayende’s talk about this topic).
- In the next weeks, I will share in-depth information about how you could follow these recommendations to get improved .NET applications performance.
- If the performance of your application is not that good, chances are you missing opportunities to deliver business value.
"Azure vs GCP part 12: Virtual Machine - Scaling (GCP)"
- In previous article, I use GCP VM (GCE) to host my application, as single instance.
- I look into scaling options like I did for Azure for GCP.
- A group contains identical VMs and offer auto-scale.
- It uses instance template as seed image to add additional VM when load exceeds threshold.
- GCP also offers load balancer but it gives more option than Azure.
- Next, create instance template from the custom image.
- Now, as I have template image, I go ahead to create instance group.
- The way it auto scale is similar to Azure, such as creating seed image and set auto scale, with load balancer in front.
- However there are several differences how each cloud platform treats VMs. As a developer, I feel Azure gives me better documentation, but GCP gives me better experience to configure scaling environment especially when using custom image.