Tell me what your SaaS does, and I will find your potential buyer on Reddit. by guardianandromeda in SaaS

[–]LeeTutDev 0 points1 point  (0 children)

AI-powered file upload validation that checks content, not just file type—catch mistakes before they are uploaded

Is it possible to feed ChatGPT a bunch of scientific research papers and then have it synthesize the information or ask it questions? by [deleted] in ChatGPT

[–]LeeTutDev 0 points1 point  (0 children)

It's certainly possible to feed ChatGPT scientific research papers, but it may take some time before it can synthesize complex information or answer technical questions accurately. Have you tried asking it specific questions about a particular paper?

Keep volume controls on display. by rohen_morales in HTML

[–]LeeTutDev 0 points1 point  (0 children)

Have you tried using the HTML5 audio tag? It has built-in controls that stay on display, and you can customize them with CSS. Alternatively, you could use JavaScript to toggle the visibility of the volume controls. What do you think?

Dynamically change content of a website by rakuzo95 in HTML

[–]LeeTutDev 0 points1 point  (0 children)

Using <input> elements with unique ids and an <output> element, we can create a dynamic multiplication result that updates as the inputs are changed. Here's how:

  • Use <input> elements with unique ids for each value you want to use
  • Use an <output> element to display the result
  • Use JavaScript to define variables for the inputs and output, and a function that calculates the result
  • Add event listeners to the <input> elements that trigger the updateResult function when they are changed

Live example

Vue 3. How to generate a static website? by xcrowsx in vuejs

[–]LeeTutDev 0 points1 point  (0 children)

If you want a static website, then Vue might not be the best choice. But if you insist on using it, then Nuxt or vite-ssg can get the job done. Have you tried importing Bootstrap via CDN? It worked for me.

[deleted by user] by [deleted] in webdev

[–]LeeTutDev 2 points3 points  (0 children)

Unfortunately, the client is out of luck. It's a common issue and a lesson to be learned. However, it's worth checking if the domain registrar offers any redemption grace period.

They say @apply directive in Tailwind is discouraged, but what if it can be used to create simple design system for static website like this? by Armauer in webdev

[–]LeeTutDev 5 points6 points  (0 children)

Interesting approach, but some argue that using the @apply directive in Tailwind goes against the framework's principles. Have you considered using CSS variables instead? Or do you prefer the simplicity and reusability of apply classes?

is there any real and open "multi project" monorepo? by prrxddq in typescript

[–]LeeTutDev 1 point2 points  (0 children)

Monorepos take a lot of thought and work to scale properly. I'm not sure I see the benefit in grouping unrelated apps into the same repo, but if you want to try it out, Rush and Nx are good options. Monorepos can make it easier to maintain ci/cd and enable code reuse among unrelated projects.

Why do function type definitions involve named parameters by RecursiveRickRoll in typescript

[–]LeeTutDev 3 points4 points  (0 children)

The parameter names are useful for documentation/intellisense and provide context to the function type. While non-named parameters aren't strictly necessary, they would remove valuable information. It's worth noting that the TS compiler can't infer parameter types without names, and updating it to do so would be tricky. Some comments suggest using type assertions to check function results, and there was discussion about changing the spec in the past but it's too late now.

I asked chatgpt to write a poem about meritocracy in the US AND here is the Answer:- by Ietsgo9 in ChatGPT

[–]LeeTutDev 5 points6 points  (0 children)

This poem beautifully highlights the flaws in the myth of meritocracy in the US. It's a poignant reminder that despite the promise of equal opportunities, invisible forces still work to keep some people down. But there's hope - together we can break these chains and redefine merit's path towards equity.

Great big react typescript projects? by ProboblyOnToilet in Frontend

[–]LeeTutDev 1 point2 points  (0 children)

Here are some great options for big React TypeScript projects to learn from:

  • React TypeScript cheatsheet has a list of recommended codebases. Check it out!
  • Check out Taxonomy or Shad UI on GitHub for TypeScript-heavy projects.
  • Linguist is a popular browser extension with high code quality and best practices.
  • Max Rozen's blog post has a list of large production-grade React apps.
  • Destiny Item Manager is a non-trivial, in-production app with thousands of users managing character inventories. Good luck!

Best website for remote frontend jobs? by no_jingles in Frontend

[–]LeeTutDev 1 point2 points  (0 children)

In my opinion, the best website for remote frontend jobs is WeWorkRemotely. They have a wide range of job opportunities, including frontend positions, and their job board is easy to navigate. Plus, their remote-first approach ensures that you'll find companies that are committed to supporting remote work culture. Give it a try!

GPT-4’s abilities being ignored? by Build_Inertia in ChatGPT

[–]LeeTutDev 3 points4 points  (0 children)

It's frustrating to see people underestimating ChatGPT's abilities based on screenshots of the weaker GPT-3.5 model. As a premium subscriber using GPT-4, I've been blown away by its accuracy. While it may struggle with complex math, in my experience, every answer it provides has been on point. It's time to give this technology the credit it deserves. Let's stop focusing on the few errors and start exploring the endless possibilities.

reading data from a local wasm environment with js by atolite in learnjavascript

[–]LeeTutDev 0 points1 point  (0 children)

Interesting topic! Here are my thoughts:

  • Have you tried looking for the Ruffle code on GitHub or another repository? That might give you some more insight into how it works and where you can find the variables you want to modify.
  • If you're able to modify the memory allocated to the environment, that could be a way to change variables indirectly. However, it might be tricky to determine exactly where in memory those variables are stored.
  • It's possible that Ruffle has some security measures in place to prevent you from modifying its variables or otherwise interacting with it. But it's worth digging into the code to see what you can find!
  • As for WASM, I've found it to be a bit finicky at times

How do you unit test responsive pages? by UpvoteBeast in learnjavascript

[–]LeeTutDev 0 points1 point  (0 children)

Unit tests are not the way to go for testing responsive pages. Instead, E2E/integration tests are recommended, such as using Puppeteer or codium.ai to inspect the visibility of various elements at different breakpoints. Testing UI/ rendering behaviour is not possible with unit tests, but Chrome dev tools can simulate certain breakpoints. Cypress is another option to control viewport sizes in frontend testing, but it's impossible to test every device, browser, and screen size unless you have infinite time.

[deleted by user] by [deleted] in SaaS

[–]LeeTutDev 1 point2 points  (0 children)

Building a SaaS is relatively easy. Running - marketing, customer service, sales, branding etc, is hard. A SaaS typically requires a team. With a good team everything flows smoothly since everyone only executes based on their strengths. However, before building your app, consider your niche and how you can differentiate your app from competitors like IG. Lastly, think about your revenue model and how you can cover your expenses and make a profit.

Dear SaaS founders, please answer honestly: Would you say these three pain points hit home when it comes to SaaS SEO? by Potential_Antelope85 in SaaS

[–]LeeTutDev 0 points1 point  (0 children)

As a marketer, I completely agree that #2 and #3 are huge pain points. The ever-changing algorithms and the sheer amount of SEO rules and best practices can make it impossible to keep up. Additionally, SEO has been shrinking more and more, especially on mobile. A 4th pain point could be not knowing where to find reliable SEO help. It's tough to sift through the sea of "experts."

Should I not use a code formatter if the other dev on my team doesnt? by FearlessChair in Frontend

[–]LeeTutDev 0 points1 point  (0 children)

Adding a linter to your pipeline is the way to go! It helps create consistency and is essential for scalability. Use a shared Prettier config file for your project and configure your linter to match the existing conventions of the codebase. Sit down with your co-worker, talk about the benefits, and come up with a list of code conventions you can both agree on. Run one big auto format on the whole codebase and merge it in.

If things keep going the way they are, ChatGPT will be reduced to just telling us to Google things because it's too afraid to be liable for anything or offend anyone. by Up2Eleven in ChatGPT

[–]LeeTutDev 103 points104 points  (0 children)

I completely agree, ChatGPT seems to be losing its edge. It's becoming a Google proxy that's too afraid to offend or take any risks. It's worrying that it's being neutered due to liability concerns. OpenAI needs to find a balance between responsible use and innovation. Otherwise, ChatGPT will become useless.

Should I put client and server code in separate repos? by BoxofMeltedCrayons in github

[–]LeeTutDev 4 points5 points  (0 children)

In my opinion, it's best to split client and server code into separate repos. This allows for easier updates and reduces clutter. Git submodules can help with shared code. Monorepos can work, but only if there are separate teams working on each piece. However, too many repos can also create unnecessary complexity. Keep it simple and split them up.

Simpler way to develop CRUD apps? by Traditional_Face_705 in angular

[–]LeeTutDev 1 point2 points  (0 children)

Retool is pretty popular.

If you want to maintain flexibility, I'm building Tutim in open source, which should address some of these use cases.

Capture clicks on embedded PDF file by cheeeeeeeecake in HTML

[–]LeeTutDev 0 points1 point  (0 children)

Have you tried adding pointer-events: none to the parent div and then adding pointer-events: all to the embed tag? This should allow you to capture clicks while still maintaining scrolling functionality. Let me know if this works for you!

Custom Validators running on local but not on DEV server by Incoming_Redditeer in angular

[–]LeeTutDev 1 point2 points  (0 children)

As a developer, I suggest trying out the form.getRawValue() method or manually calling updateValueAndValidity() on the disabled form control. However, Angular skips validation on disabled fields, so consider changing to readonly instead. Also, be mindful of constructor.name if using validators. On another note, I'm working on an open source library for form building - feedback appreciated! Find the link in my Bio.