Activity
Mon
Wed
Fri
Sun
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

University of Code

Public β€’ 3.5k β€’ Free

ChatGPT Users

Public β€’ 11.4k β€’ Free

LM Millionaire Archives

Private β€’ 1.9k β€’ Free

Blank Napkin

Public β€’ 26 β€’ Free

23 contributions to University of Code
πŸ›€οΈ Relative vs. 🏷️ Alias Paths in JavaScript/TypeScript: Which One Should You Use?
In TypeScript or JavaScript, a common question when importing components is the difference between using relative paths or aliases. Today, we'll explore the difference between: ``` import SearchFormReset from "./SearchFormReset"; ``` and ``` import SearchFormReset from "@/components/SearchFormReset"; ``` ### Relative Paths (`./SearchFormReset`) The path `"./SearchFormReset"` is **relative** to the current file's location. This means it depends on the folder structure, the current directory's depth, and the relative position between the importing file (`SearchFormReset.tsx`) and the file being imported (`SearchFormReset.tsx`). This can impact readability and maintenance as the project structure becomes more nested. **Advantages:** - Easy to use in small projects and when files are very close to each other. **Disadvantages:** - As the project grows, relative paths become complex and hard to maintain, especially if you have to go up and down directories like `../../../`. This affects code readability. - If you change the project structure, you will need to modify the import paths in many places. ### Alias Paths (`@/components/SearchFormReset`) The path `"@/components/SearchFormReset"` uses an **alias**, which is generally configured to represent the project's base directory. The alias `@` is defined in files like `tsconfig.json` or `jsconfig.json` and points to the root directory. Alias paths are especially useful when working with monorepos or when sharing common components across multiple projects. **Advantages:** - **More readability**. With aliases, paths are clear and do not depend on the current file's location. You can immediately see that the component is in the `components` folder. - **Easy to maintain**. If you decide to reorganize files, most paths won't need changes, as they always reference the project base directory. **Disadvantages:** - Requires additional configuration (in `tsconfig.json`, which we will detail below), but it is worth it for medium or large projects.
3
0
πŸ›€οΈ Relative vs. 🏷️ Alias Paths in JavaScript/TypeScript: Which One Should You Use?
Roadmap: Backend Developer
Have a look on this amazing road map how to became a backend developer: Backend Developer Roadmap: What is Backend Development? You can build your own road map as well: Roadmap Editor
3
4
New comment 17d ago
1 like β€’ 20d
Learn the Path to Your Next Great Role in Development! πŸš€ If you're looking for guides to become a Backend Developer, DevOps Engineer, UX Designer, or any other role in the tech world, you can't miss the learning maps on roadmap.sh. These maps are designed to guide you step by step in acquiring the necessary skills and help you avoid getting lost in the sea of technologies and concepts. From Frontend and Full Stack to AI Engineering, DevOps, and Systems Design, there's something for every profile and level. Whether you're seeking a path with specific skills like JavaScript, Python, or AWS, or you want to delve into fields like Blockchain development, this site has something for you. A special thank you to Ermal Sylejmani for sharing this incredibly useful resource. πŸ™Œ Start charting your path: roadmap.sh 🌟
New Projects
Hello everyone! You have not seen me in the last few days! Because I was working on some projects. The new project is YC DIRECTORY (https://yc-directory-red.vercel.app/). It is made with React 19, Next.js 15, Sanity, TailwindCSS, ShadCN, TypeScript. I hope you like it. Please Star it on GitHub: https://github.com/ArhanAnsari/yc_directory
8
38
New comment 17d ago
0 likes β€’ 20d
πŸ™ Thank you very much for sharing the incredible project 'Next.js 15 Crash Course | Build and Deploy a Production-Ready Full Stack App'! https://www.youtube.com/watch?v=Zq5fmkH0T78 πŸš€ It is exactly what I needed to showcase my various projects, and it looks fantastic as well. 🌟 I was intrigued by the "Report a Bug" 🐞 feature. Is this something taught in the course, or did you, @ArhanAnsari, implement it in this project? πŸ€” Excellent work and thank you again for the contribution! πŸ‘
Chat GPT vs Claude AI
Hi floks, I currently have a monthly subscription to ChatGPT, but I've recently heard that Claude AI might be better. Do you have any suggestions on whether I should switch from ChatGPT to Claude? I mostly use ChatGPT for coding and writing. I've tried all of them, and I found Claude AI to be quite good, but the free version is quite limited in terms of usage.
Poll
4 members have voted
2
4
New comment 17d ago
1 like β€’ 20d
Comparison: ChatGPT vs Claude AI πŸ€–βœ¨ 1. Ease of Use: - ChatGPT: It has a very intuitive and user-friendly interface, facilitating adoption for both beginners and advanced users. Navigation is straightforward, and integration with various platforms is smooth. - Claude AI: Also offers a clean interface, but some users have reported that certain advanced functionalities may require an additional learning curve. 2. Performance in Programming: - ChatGPT: Excels in generating clean and functional code, with a broad understanding of multiple programming languages. Its ability to explain complex concepts makes it a valuable tool for developers. - Claude AI: Offers good performance in code generation, although some users have noted that in more complex projects, ChatGPT tends to be more precise and efficient in reducing errors. 3. Writing Skills: - ChatGPT: Recognized for producing natural, creative, and coherent texts. Its ability to adapt to different writing styles makes it ideal for a variety of tasks, from technical writing to creative content. - Claude AI: Also generates high-quality texts, but some users prefer ChatGPT's fluency and tone for certain types of content. 4. Limitations: - ChatGPT: Although very powerful, the free version may have limitations regarding the number of requests per day. Additionally, it can occasionally generate responses that require verification. - Claude AI: The free version is more limited in functionalities and capacity compared to ChatGPT. However, the paid versions offer significant improvements. Conclusion: Both tools have their strengths and limitations. ChatGPT stands out in versatility and overall performance, especially in programming and creative writing. Claude AI can be an excellent alternative depending on specific needs and the context of use.
How to handle Cookie Consent in any Next.js app the EASY way! (Cookiebot Tutorial for Beginners)
It is simply incredible and the best of all. Adding this functionality was very easy because, of course, with Sonny Sangha everything is possible; he makes the impossible possible. I already have it implemented on 🌐 https://quantumcodeai.com, and for hosting, I use a πŸ–₯️ KVM-2 VPS from Hostinger.com, although I purchased the domain from Namecheap.com. In these 18 days that I've had access to VPS, my world has changedβ€”all thanks to Sonny Sangha. On my website, I still need to make the πŸ“ form work and the 🌐 language switch buttons functional. I am considering creating separate domains for different audiences: - πŸ‡ͺπŸ‡Έ https://quantumcodeai.es for Spanish speakers - πŸ‡·πŸ‡Ί https://quantumcodeai.net for Russian speakers - πŸ‡ΊπŸ‡¦ https://quantumcodeai.eu for Ukrainian speakers Additionally, I need to get πŸ”„ "Transform PDFs into Conversations" working. While building the QuantumCodeAI Empire, I have learned to 🐞 debug errors and resolve other technical issues with the help of OpenAI's ChatGPT. As a result, these weeks have passed quickly and very productively. Thank you all.
6
6
New comment 29d ago
How to handle Cookie Consent in any Next.js app the EASY way! (Cookiebot Tutorial for Beginners)
1 like β€’ 30d
@Digitl-Alchemyst Steven-Watkins So I am not going to use it: Why to Avoid Using Query Strings in CSS Imports Adding a query string like ?v=2024.10.3 to the CSS import may seem like a quick solution to force the reloading of styles, but it presents several drawbacks: - πŸ—„οΈ Next.js Already Handles Cache Busting: Next.js automatically generates filenames with hashes based on the content, ensuring that changes in styles invalidate the cache without the need to manually add a query string. - βš™οΈ Potential Conflicts with Optimization: Altering import paths can interfere with Next.js and TailwindCSS optimizations, such as purging unused CSS. - πŸ”„ Resource Duplication: Some servers and CDNs might treat URLs with different query strings as separate files, which can increase bandwidth usage and slow down loading.
1 like β€’ 30d
πŸš€ Amazing Lighthouse results for QuantumCodeAI! 🌟 πŸ” We’ve achieved: - Performance: 86 ⚑ - Accessibility: 96 βœ… - Best Practices: 100 πŸ… - SEO: 100 πŸ“ˆ We’re proud of these scores that reflect our commitment to efficiency, accessibility, and quality. We continue to innovate to deliver top-notch digital experiences. ✨ Visit us and discover how AI can take your projects to the next level. 🌐
1-10 of 23
Artur Kadirov
3
12points to level up
@artur-kadirov-2617
Master in programming

Active 19h ago
Joined Aug 29, 2024
Spain
powered by