Object destructuring is a syntax in JavaScript that allows you to extract values from objects and assign them to variables in a straightforward way. This enables easy access to data stored in objects without having to reference the object’s properties each time.
Read More Object destructing in JavaScriptMidnight Commander (MC) and color customization in linux
Midnight Commander (MC) is a free and open-source file manager that provides a text-based user interface. It is available on numerous Unix-like systems, including Linux and macOS. It uses a two-panel layout, allowing users to view the contents of two directories simultaneously. This design makes it easy to move or copy files between directories. Due to its text-based user interface, MC functions exceptionally well on remote servers where graphical environments are unavailable, making it an indispensable tool for system administrators and developers.
Read More Midnight Commander (MC) and color customization in linuxMultiple sliders on one page with simple jQuery slider
If you’re reading this post then you probably have problem with slider, that don’t work correctly if occurs several times on the same page. I have a solution to you – simple jQuery slider, that you can put on page as many times, as you want and it will be work as it should.
Read More Multiple sliders on one page with simple jQuery sliderWordPress – how to display random posts without duplicates
To have full control over displaying posts in WordPress we can use WP_Query class and create our own query. According to documentation, if we want to to display posts in random order, we must pass suitable arguments to the query:
Read More WordPress – how to display random posts without duplicatesWordPress custom admin page
When you write your own plugin, you often want to add dedicated page for its settings. In this post I will show you how to do this.
Read More WordPress custom admin pageHow to use ajax in WordPress – on frontend and admin side
Ajax ( Asynchronous JavaScript and XML ) allows us do action in asynchronous way – without page reloading. It is very useful and has affect on better user experience. We can for example add, hide or delete some content from site and there’s no need to reload whole page.
Read More How to use ajax in WordPress – on frontend and admin sideHow to add custom link to the WordPress plugin in admin page
When you write your own plugin, you may want to send users to settings page after they activate the plugin. Here’s a simple tutorial of how to add additional links to your plugin on plugin page in wordpress.
Read More How to add custom link to the WordPress plugin in admin pagejQuery infinite scroll image gallery
Infinite scroll gallery is a simple and difficult task at the same time. It all depends on how you want to display it. For start, let’s write the basic assumptions:
Read More jQuery infinite scroll image galleryReact Hooks – useCallback hook example with React.memo higher-order component
UseCallback, same as useMemo hook, is useful in situation, when you want to improve performance of your app. Thanks to it, you can avoid useless renders, so app can works faster.
Read More React Hooks – useCallback hook example with React.memo higher-order componentReact Hooks – useMemo hook example
UseMemo hook returns memoized value. That’s why you can use it to optimize performance of your app. If you have large calculations to get value that you need, you can do it only once and use useMemo hook to remember this value.
Read More React Hooks – useMemo hook example