teleren/devto huggingface dataset:
Why React Hooks Exist?
Tags: react, webdev
Published: 2021-08-23 11:02:48


## Introduction
React.js is the most widely used JavaScript library for front-end developers at the moment. It is utilized by developers and corporations all around the world as an open-source project.

Hooks are one of the most useful features of react. When interacting with the state, hooks allowed us to employ functional components instead of class-based components. Aside from built-in hooks, React also allows us to create our own custom hooks.

In this post, We'll look at what React Hooks are and why they're important.
# Problem :
Before react 16.8 (16 Feb 2019) developers were limited to use class-based components if they want to maintain state in the component, and functional components were used for only those components, which don't require any state.

This results in inconsistency through the app and there were several issues with class-based components.

# Issues :
The use of two different types of components created these major issues:

1. Inconsistency through the app
2. If someone wants to add states in functional

the component that requires the whole state to be converted into the class-based component.

1. To use class-based components proper 'bind' has to be maintained.

# Hooks 
Hooks actually doesn't solve the problem related to class-based components.

I just give some extra power to a functional component that allows developers to do anything with a functional component that they were already doing with class-based components.

Hooks let you always use functional components instead of having to constantly switch between functions, classes, higher-order components, and render props.

# Result
Now most developer uses functional component with hooks because:

- They can add remove states as they require.
- Hooks simplifies the development process and maintains consistency through the app.
- You no longer need to struggle with 'bind'
- Functional components became more versatile than class-based.


# Final Notes
Finally, I can guarantee you that learning React Hooks is not difficult. when I first started using react, I wasn't a big fan of hooks. But now I'm completely enamored with it. 
It may appear challenging at first, but as long as we focus on the fundamentals and learn how each component works, we will be able to incorporate this feature with ease. 
Wait a minute, if you want to learn the basics of react hooks, go through this  [documentation](https://reactjs.org/docs/hooks-overview.html) .

In the next article of this series, I'll go through some of my favorite instances of custom hooks and how to use them in your own apps. Until then, stay tuned.

# Thanks for reading!
As always, any questions or suggestions, please feel free to leave a response or  [tweet me](https://twitter.com/dewdropxD)  🐦! Good luck and happy coding!!
Permission denied for laravel 8 storage logs [solved] - 2022
Tags: laravel, webdev
Published: 2021-08-23 10:43:10

If you are a laravel developer you may run into the **laraval.log permission error that is **The stream or file "log file location" could not be opened: failed to open stream: Permission denied**. I found this error mostly while deploying laravel in VPS (virtual private network) in digitalocean droplet.

To solve this error there is only one command which is:
```
sudo chown -R www-data:www-data /var/www/{laravel_project_name}
```

Now your storage permission error must be solved by now.

Happy Coding!!

<!-- 
published in 2021-08-23
-->
45+ TypoScript Tips & Tricks
Published: 2021-08-23 10:41:21

Are you an intermediate or advanced-level TYPO3 integrator? And, looking for TypoScript tips and tricks? You’ve landed at the correct place; In this TYPO3 blog post, you will find a list of cool TypoScript snippets, which will help you to make better quality & productive TYPO3 websites.

TypoScript is just a configuration language - strictly speaking. The fact is that TypoScript has two types of audience 1st Haters; The beginner users who believe TYPO3 not getting popular because of the TypoScript language, 2nd Lovers; The experienced users who strongly believe, Using TypoScript TYPO3 is more flexible and powerful. It means, at the very initial stage, it will need your time and attention as learning curves; Once you get better hands-on TypoScript - you will feel the power of TypoScript.

Tips and Tricks of TypoScript 

Myths of TypoScript
.typoscript vs .ts - Use Correct File Extension
Is TypoScript Case-Sensitive?
TypoScript is Simple PHP Array
Naming Rules to Create TypoScript Objects
How to Include/Import TypoScript?
Never Store Your TypoScript Into Database and Fileadmin
Idle Files/Folders Structure of TypoScript
How to Get TypoScript in Extbase PHP?
How To Set Async & Defer JavaScript In TypoScript?
How To Enable Error Reporting In Typoscript?
How can you set TypoScript for AJAX Request?
How can you set TypoScript for JSON Requests?
Find and Replace in TypoScript
= vs := TypoScript Operator
Using {} Write Better Structured TypoScript Code
Copy TypoScript Object by Reference
How to Delete a TypoScript Object?
How to Create a One Page TYPO3 Site? (Using TypoScript)
How to Create Static Include TypoScript?
How to Enable the Frontend Admin Panel?
IF/ELSE/GLOBAL TypoScript Conditions
Custom Conditions with the Symfony Expression Language
How to Debug and Analyze TypoScript Errors?
How to Remove the DIV tag in the Header field?
How to Override TYPO3 Plugin Using Typoscript?
TYPO3 Caching Tips
How To Create Custom Categories in TypoScript Constants?
Multilingual Labels Using Typoscript
How to get TYPO3 extension configuration at TypoScript constants?
How to Add Wrap at All Text Elements?
Can We Add Inline CSS/JS Using TypoScript?
How to Get the Current Page URL & Title?
Switch/Case Condition Using TypoScript
Together CONTENT and COA Object In Typoscript
How to Get All Images from Folder Using TypoScript?
How To Render Images From Current Page?
How to Get Images From Particular Pages FAL?
How To Get Images From Content Elements?
`variables & settings` Object of FLUIDTEMPLATE
When TypoScript Collaborate with Fluid
How to Implement TypoScript Lint in TYPO3?
TypoScript Parser
ATOM + TypoScript
Innovative TYPO3 Constant Editor - 2.0
Useful TypoScript TYPO3 Extensions
TypoScript Cheat Sheet
TypoScript Books
TypoScript Plugins for IDEs
Closure!

Excited to learn more? Check the full blog here
https://t3terminal.com/blog/typoscript-tips/
TYPO3 Talk With Sybille: Configurability and Expendability Are TYPO3's Asset
Published: 2021-08-23 10:39:28

Welcome to the TYPO3 Interview Series - 23!

Dear TYPO3 People, this week we have Sybille Peters with us this week for interesting TYPO3 Talk! Sybille Peters works at the university Carl von Ossietzky Universität Oldenburg as developer. She joined the TYPO3 Documentation Team in 2018. Sybille is an open source enthusiast and a big fan of the TYPO3 community.

Grab that cup of coffee to explore Sybille's insights into her views, the history and potential of TYPO3 and the open source community, and how we can build a better TYPO3 ecosystem together!

Let's explore her journey with TYPO3 from then to now, and much more!
https://t3terminal.com/blog/typo3-talk-with-sybille-configurability-and-expendability-are-typo3s-asset/
Diving Into TYPO3 Fluid [50+ Tips]
Published: 2021-08-23 10:36:54

TYPO3 Fluid - One of the unique frontend template engine of TYPO3 CMS! As a TYPO3 integrator or developer, you should have mastery of the TYPO3 Fluid template engine. In this blog, I want to share helpful tips & tricks of TYPO3 Fluid. Get ready!

Fluid is a powerful Open Source template engine system used in TYPO3, Neos CMS, and Flow PHP Framework. If you are a beginner, I highly recommend you read one of my popular blogs, How to Use TYPO3 Fluid? (Basic to Advanced Guide). In this blog, you will find TYPO3 Fluid hints from my personal experience and includes valuable 24 Tips of TYPO3 Fluid by Claus Due (Developer and Maintainer of TYPO3 Fluid).

Tips & Tricks of TYPO3 Fluid

What/Why/How TYPO3 Fluid?
Responsive Image Rendering in TYPO3 Fluid
How to Disable the Cache of TYPO3 Fluid?
How to Create TYPO3 Fluid Variables?
How to Use Variables in TYPO3 Fluid?
{var1{var2}} Get Dynamic Variables in Fluid
How Get Data of Current Page in TYPO3 Fluid?
What is {_all} in TYPO3 Fluid?
5 Ways to Import Namespaces in TYPO3 Fluid
Declare and Use Multiple Namespaces
All-in-One to Know About Fluid’s Inline Notation
Backend Add/Edit Record Link
Display Style Infobox In Backend
Inline TYPO3 Fluid Rendering
Assign Default Value To Variables
Call Dynamic Sections Using Variables
Easy Math Operation of TYPO3 Fluid
Ternary Condition in TYPO3 Fluid
Else..If Nested Conditions in Fluid
Conditions for ViewHelper’s Output
What’s Grouped For Loop In Fluid?
Understand For-loop Iteration in TYPO3 Fluid
Display Records in Backend Module
How to Disable Parsing in TYPO3 Fluid?
Set Default Parameter in Fluid Partial
How to Dynamically Call Partials in Fluid?
A Whitespace Remover TYPO3 Fluid Helper
Passing rendered Fluid to a part as variable
Define & Use Namespaces (Globally)
AutoComplete TYPO3 Fluid Widget
Throw Flash Message in TYPO3 Fluid
Call TypoScript into TYPO3 Fluid
Localization in TYPO3 Fluid
Printf in TYPO3 Fluid
Disable HTML Entity Escape in Fluid
RenderingContextInterface - PHP to TYPO3 Fluid
data-* Attribute in ViewHelpers
How to Create Dynamic Layouts?
Formatting the Text in Fluid
Switch..Case To Avoid If..Else Complexity
Cache Warmer to Compile TYPO3 Fluid Templates
How to Avoid Escaping Quotes in Fluid?
Reference of EXT.fluid_styled_content
Do You Know Fluid Powered TYPO3?
Pattern Lab Fluid Engine: TYPO3 CMS export
Meet TYPO3 Fluid + Atom Design (EXT.fluid_styleguide)
Converter > Fluid Tags to Inline Notation
Fluid Page Cache
EXT.fluid_components - Encapsulated Frontend Components
EXT.fluid_fpdf - Automatically Create PDF from Fluid
IDEs Support TYPO3 Fluid
Popular TYPO3 Fluid Books
TYPO3 Fluid Cheat Sheet
Common TYPO3 Fluid Templates Method
Wrapping-up!

For more, Click the link below
https://t3terminal.com/blog/typo3-fluid-hints/
15+ New Features and Improvements in TYPO3 v11.2
Published: 2021-08-23 10:35:15

TYPO3v11 with TYPO3v11.2 has been released in beta state and all set ready to bring with it a host of new features. The latest release of TYPO3 v11.2 comes with some new features and improvements.

We’ve been waiting excitedly and so we have been following the TYPO3 version 11 development closely and trying out the new features on our test sites. For each TYPO3 version 11 update released, I will note and provide specific insights concerning any new features and functionality.

In this article, we will show you what’s coming in T3v11 with its new power packs added in the latest release.

TYPO3 v11 features 

Development Roadmap of TYPO3 v11
New TCA type “language”
Filterable Trees in Record Selectors and Link Pickers
Pagination for Form Management
Possibility to disable hreflang per page
FAL: Add getFile() to TYPO3CMSCoreResourceFolder
Allowing group id lookup in conditions with an array operator
Possibility to disable canonical per page
Providing a list of available system locales
Backend user’s preferred UI language stored as DB field
TCA description with TSconfig
Resizable navigation component for all element/record selectors
MFA for System Maintainers
Deep Linking in the TYPO3 Backend
Error Page Caching
PSR-14 Event on Site Configuration Import
Hidden-ViewHelper
Conclusion

Read the full blog here
https://t3terminal.com/blog/typo3-v11-2/
My first Python project - A text adventure game!
Tags: python, beginners
Published: 2021-08-23 10:26:50

![My game in action](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/guvb5wjnkdj4btj1yrcz.png)

This is my first big project made in Python - a text-based adventure game set in a mysterious house. This project is the result of a Codecademy assignment and as such, has to meet certain criteria like using multiple files, using Git version control, and getting input from the user.

I'm interested in furthering my Python and game development skills and welcome constructive criticism or tips. I also had a friend playtest it multiple times before I felt it was ready enough to post here, but if there are any bugs or issues, please let me know!

Anyway, I hope you enjoy this short game!

**Note:** I'm a horror fan, so I included some death scenes in some rooms of the house. My friend noted that they are rather graphic, so just be aware of that.

[Replit](https://replit.com/@MozzarellaMonst/My-Text-based-Adventure-Game#README.txt)
TYPO3 Talk with Alex : Pioneer of TYPO3 Powermail Extension
Published: 2021-08-23 10:32:59

Welcome to the TYPO3 Interview Series - 22!

Hi TYPO3 People, this week we have Alex Kellner with us this week for interesting TYPO3 Talk! Alex Kellner is a popular name in the development of interactive TYPO3 repositories. He is credited with the development of the repository known as Powermail. It is gaining steady popularity over the years as it has an editor-friendly and powerful interface. Alex Kellner is also an active member of the community forums of TYPO3. He has been an active contributor with his excellent skills in developing extensions and repositories.

Grab that cup of coffee to explore Alex's insights into his views, the history and potential of TYPO3 and the open source community, and how we can build a better TYPO3 ecosystem together!

Find out full blog at
https://t3terminal.com/blog/typo3-talk-with-alex-pioneer-of-typo3-powermail-extension/
TYPO3 Vs Wix - Which One is Better?
Published: 2021-08-23 10:31:32

Are you trying to decide between TYPO3 vs Wix to build your website? 

The main difference between Wix and TYPO3 is that Wix is a website builder while TYPO3 is an open-source content management system. Both platforms allow you to build websites and they share one common goal: enabling users to create amazing and usable websites in a simple manner.

With the spirit of healthy competition, we’ll be putting Wix vs TYPO3 to measure how they perform against each other against various factors. In the end, only one will remain, so let’s get the fight started!

TYPO3 Vs Wix 

The Key differences: TYPO3 vs Wix
Wix vs TYPO3 - Important Differences to Consider
TYPO3 Or Wix: Which one should you use?

Take a look at the blog here
https://t3terminal.com/blog/typo3-vs-wix/
LGMVIP- WebDev Intenship
Published: 2021-08-23 10:30:29

Hello, connections!!
I'm happy to say that I have successfully completed my Web Development internship at LetsGrowMore Community under the program.
I can say this program had enriched my knowledge and experience. I learned a lot of new things in my domain, increase my technical skillset.
I'm truly grateful to LetsGrowMore Community for providing me this opportunity.
I would also like to thank Aman Kesarwani sir and LetsGrowMore for making my August month filled with knowledge.
I recommend you guys do visit [letsgrowmore.in](letsgrowmore.in) and [letsgrowmore.in/vip](letsgrowmore.in/vip) for more details and opportunities to enhance future goals.
Thank you!!
Membuat CRUD dengan PHP dan MySQLi
Tags: php, mysql, tutorial, programming
Published: 2021-08-23 10:29:36

Pada artikel kali ini saya akan membahas tutorial PHP tentang bagaimana cara [membuat CRUD dengan PHP dan MySQLi](https://ruangkoding.id/tutorial-crud-dengan-pdo-dan-mysql/).  

Pada tutorial ini kita akan membuat sebuah studi kasus untuk membuat sebuah fitur Create Read Update Delete atau biasa disingkat [CRUD dengan PHP dan MySQLi](https://ruangkoding.id/tutorial-crud-dengan-pdo-dan-mysql/).

**Contact**
Website : [https://ruangkoding.id](https://ruangkoding.id)
Telegram : [https://t.me/s/ruangkoding](https://t.me/s/ruangkoding)
How to Setup TYPO3 Super Cache EXT.staticfilecache
Published: 2021-08-23 10:29:03

Do you want to increase the significant performance of your TYPO3 website? Are you looking to convert your TYPO3 instance to static HTML files? In this article, you will learn a step-by-step guide to integrate TYPO3 super cache.

One of the great ways to boost the TYPO3 speed of your TYPO3 website is “caching”. TYPO3 core already provided a fantastic TYPO3 cache system that boost-up your TYPO3 website. But, Do you know the power of static cache? I call it “TYPO3 Super Cache”, as WordPress has a WP super cache. Fortunately, the TYPO3 community has a fantastic extension, EXT.staticfilecache.

Guide to TYPO3 Static File Cache 

What/Why/How TYPO3 Super Cache?
Server Requirement of TYPO3 Cache
Installation of TYPO3 Static File Cache
Configuration and Settings of TYPO3 Cache
Backend Settings for TYPO3 Static File Cache
Tips & Tricks for TYPO3 Cache
Closure!

Deep dive in this article by clicking the link below,
https://t3terminal.com/blog/typo3-static-file-cache/
Top 10 Websites Built With TYPO3 CMS!
Published: 2021-08-23 10:25:17

Thinking of going for TYPO3 CMS and looking for some excellent TYPO3 website examples to get inspiration? TYPO3 has been used by many of the world’s top brands, designers, and developers who use it to build highly engaging websites. In this article, we will share some excellent TYPO3 website examples that you must check out for inspiration.

Back on May 29, 2001, Kasper Skårhøj released the first version of TYPO3, a platform that was to change the direction and trends of all websites.

TYPO3 has kept climbing higher and higher on the ranking lists of top CMS ever since. TYPO3 is one of the best and foremost suitable CMS to build large enterprise websites or applications to small blogs too! The leading CMS on the market. Small blogs and personal photography websites, startups, and the world’s top companies alike have decided on TYPO3 when creating their websites.

Best TYPO3 Websites 

Philips Dictation
Körber AG
Sachsen Anhalt
Pearson
Hitachi Medical Systems
Lufthansa Group
Thomas Cook Intranet
Logwin Logistics
United Internet
Minebea Intec
Rhein-Main-Verkehrsverbund
Tada! Something from our pockets!
Building a TYPO3 website is easy!
Wrapping Up!

Read the whole blog by clicking the link below
https://t3terminal.com/blog/top-typo3-websites/
15 TYPO3 Cheat Sheets For Everyone!
Published: 2021-08-23 10:22:58

Are you searching for collections of TYPO3 Cheat Sheets? You land in the correct place. In this micro TYPO3 blog, you will find a list of popular TYPO3 Cheat Sheets with TypoScript, Extbase/Fluid, Documentation, TYPO3 Core testing, etc. Keep reading!

The TYPO3 cheat sheet is a handy guide that helps during the TYPO3 development. Unfortunately, there is a minimal TYPO3 cheat sheet available in the community. Some people tried to create a TYPO3 cheat sheet a while ago. If a bunch of good TYPO3 Cheat Sheets will be available, then the TYPO3 developer doesn’t need to do Googling every time. Team T3Terminal is planning to create a few TYPO3 cheatsheets in the upcoming time.

List of TYPO3 Cheat Sheets 

TYPO3 Core Contribution + Git Workflow
TYPO3 Extbase Cheat Sheet
TYPO3 Fluid Cheat Sheet
TYPO3 Documentation Cheat Sheet
TYPO3 Git Cheat Sheet
TypoScript Page Includes
TypoScript Conditions Cheat Sheet
TypoScript stdWrap
TSConfig Cheat Sheet
PHPUnit + TYPO3 Cheat Sheet
Test-Driven Development TYPO3 Cheat Sheet
TYPO3: New Website Cheat
TYPO3 4.5 API Cheat Sheet
PHP Cheat Sheet
TYPO3 Social Media Cheat Sheet
Wrapping-up!


Check the whole blog to know more 
https://t3terminal.com/blog/typo3-cheat-sheets/
TYPO3 Talk with Daniel Siepmann: Member of Official Documentation Team
Published: 2021-08-23 10:20:41

Welcome to the TYPO3 Interview Series - 21!

Hi TYPO3 People, this week we have Daniel Siepmann with us this week for interesting TYPO3 Talk! Daniel is author of TYPO3 Blog channel called https://daniel-siepmann.de. Daniel is working with TYPO3 since 2012 and has been active part of TYPO3 Community with his contribution and participation at TYPO3 events. 

Grab that cup of coffee to explore Daniel's insights into his views, the history and potential of TYPO3 and the open source community, and how we can build a better TYPO3 ecosystem together!

Let's explore his journey with TYPO3 from then to now, and much more!
https://t3terminal.com/blog/typo3-talk-with-daniel-siepmann-member-of-official-documentation-team/
Perfmatters im Test: Minimales WordPress Performance Plugin mit maximalem Effekt
Tags: wordpress, performance, wordpressplugins
Published: 2021-08-23 11:21:11

---
title: Perfmatters im Test: Minimales WordPress Performance Plugin mit maximalem Effekt
published: true
date: 2021-08-23 10:14:18 UTC
tags: WordPress,performance,WordPressPlugins
canonical_url: https://bloggerpilot.com/perfmatters/
---

![](https://bloggerpilot.com/wp-content/uploads/2021/08/perfmatters.png)

Wir waren sehr beeindruckt von der Performance des Perfmatters https://bloggerpilot.com/perfmatters/ WordPress-Plugins. Es war rasend schnell, und das Support-Team war sehr freundlich und hilfsbereit.
How to Start a Blog with Vim
Tags: linux, webdev
Published: 2021-08-23 09:29:44

If Web technologies got out of the way, what would the Web be?

These days JavaScript frameworks are all the rage. Long term though, will this framework be around?

The answer is probably no (The Brutal Lifecycle of JavaScript Frameworks).  JavaScript frameworks come and go, who is still using ExtJS or MooTools? 

For a blog you want technology that lasts and you don't want your blog to turn into work. 

![tech deprecated](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jhlexdnd2tfpej98q5nz.jpeg)

If you use WordPress you'll quickly find it starts to become work: installing updates, updating the server, your plugins will be deprecated, (frameworks) plugins use will stop to be supported etc 

But what will be around in the next 10 years? Linux and bash scripting and plain HTML files.

## Create blog with vim

You can use [bashblog](https://github.com/cfenollosa/bashblog), a simple bash script that converts Markdown to HTML.

Simply download the script then edit your post in files. And finally upload your html files to your server.

I recommend using vim for text editing because it's a very powerful editor. This is an editor often used by [Linux](https://bsdnerds.org/what-is-linux-shell/) users.

To create your first post, first make the script executable:

```
chmod +x bb.sh
```

Then just run:

```
./bb.sh post
```

Be aware that vim has a steep learning curve. For now know that you can use `ZQ` to quit, learn vim first. There's a vim tutorial at [vim.is](https://vim.is/) 

Once you wrote your posts, upload them to your server. The neat thing is that this solution will work 10 years from now - zero work ;-)

![blogging in vim](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0szvmxjoq5adhe6zxlp8.png)

Another advantage besides that this will work for the next 10 (or 50?) years is the security benefit. 

* There is no database, the database cannot be hacked. 

* There is no login screen, nobody can hack your login (as opposed to the WordPress /wp-admin/ that's always under constant attack).
When validating JSON require parsing😕❓
Tags: programming, testing, http, java
Published: 2021-08-23 10:10:02

Use the utility given in the article and make it effortless.

https://medium.com/@prathore28647/apis-and-http-client-parse-json-object-8a394d8ef6e3

Don't forget to follow me on Medium for such interesting articles.

Prost 🍻
Translation System Requirements
Tags: translations
Published: 2021-08-23 10:09:59

---
title: Translation System Requirements
published: true
description: 
tags: translations
//cover_image: https://direct_url_to_image.jpg
---

Thank you so much to @perty for this handy list.

1. Translations are editable by non-developers (and thus have a different deploy cycle than development work).
2. Obvious when translations are missing.
3. Obvious when a text is no longer in use anywhere.
4. Some locales have their own messages.
5. Some locales may not have all messages so no translation is needed for those messages.
6. There is a single source of truth, i.e. only one place for the translations.
7. Optionally, history of changes. Who and when changed a translation.
8. Fallback to a default language when translation is missing.
9. Contextual UI that shows the translator where the translation is used.
10. Translation suggestions based on prior work (within the project, but also using translation services)