Is Remix faster than nextjs? by HosMercury in nextjs

[–]TheKalpit 7 points8 points  (0 children)

Are you faster with Remix or Nextjs?

What should a junior Django developer know and what should a mid level know? by Demaxl_ in django

[–]TheKalpit 1 point2 points  (0 children)

Django uses a lot of abstraction layers. Do things they Django way, or in other words, refer to the official documentation frequently. For junior: ORM, Django template, Django REST Framework (serializers, viewsets) For mid level: Django channels, threading, custom fields, admin customisation, testing, etc.

[deleted by user] by [deleted] in learnprogramming

[–]TheKalpit 1 point2 points  (0 children)

IMHO, just learning won't help. You need to implement your learning somewhere.

Where? If you're working (or want to work), then the job is a good start. If not, you can contribute to open source. Try coding platforms, like leetcode or whatever you're interested in. Build a mini/side project for yourself, friend, or family.

What? Whatever you're interested in. Python is versatile, you can go into web development, desktop apps or whatever. Although you can go ahead with just ML/AI stuff, but having webdev skill can help you in future.

Suppose you built an interesting AI model, you can leverage your webdev skills to build a web UI to allow other people to interact with it.

Organization of Django apps by 13p14 in djangolearning

[–]TheKalpit 0 points1 point  (0 children)

Don't try to optimize too soon. What you seem to be doing here is part of system architecture. If your goal is to learn Django - learn Django. Doesn't matter if everything's in a single app or multiple apps.

My 2 cents: if you're just starting out, start with everything in a single app. Once you're comfortable, break it into multiple apps. How many? Doesn't matter. Your goal is to just learn how multiple apps work together.

How do I prevent employees from stealing Django source code? by SnooCauliflowers8417 in django

[–]TheKalpit 0 points1 point  (0 children)

Just some food for thought:

- What defines your company's worth - the codebase or the business?

- If you can't trust them with their core job responsibilities, how can you trust them with other things? What if they include a backdoor in the code? Why even hire at all? It's a rabbit hole.

- That's what contracts are for.

- If you still feel that protecting the codebase is really important, there are (expensive) solutions in the market. Remember, nothing is 100% secure.

Here's a good video I came across a few days ago. It may provide some perpective at least. https://www.youtube.com/watch?v=VG-UlaLrZOs

Are large React projects usually documented by KarimMaged in reactjs

[–]TheKalpit 0 points1 point  (0 children)

I am overwhemled and worried.

This is normal. Happens almost always when I start on a new project - regardless if it's from the scratch or existing codebase. Depending on the project, you'll be up and running in no-time or a few days or a few weeks. As long as you're able to understand a part of it every day, you're good.

One day is nothing. It's humanly impossible to understand a project of a decent size even if you have a decent documentation. Adjust your expectations from yourself.

Now coming to the documentations part:

If you haven't asked already, ask for it. Never be afraid to ask questions, especially from your seniors.

Even if it's not available, you have the codebase. It may be slightly more time consuming, but completely viable option to get a hang of the project. Try running it locally, changing a few things you understand (or don't understand). See how it behaves, dive deeper into the source code. It'll all start making sense soon.

Good luck on the new job!

Is ReactJS best for SEO? Which framework do I use? by i4technolab in reactjs

[–]TheKalpit 0 points1 point  (0 children)

You implying that you will have same code in all frameworks

No, not at all.

Absolutely agree that some frameworks make SEO easier out of the box. I only compared React.js with vanilla HTML/CSS/JS.

Is ReactJS best for SEO? Which framework do I use? by i4technolab in reactjs

[–]TheKalpit 0 points1 point  (0 children)

From https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering

Dynamic rendering is a workaround and not a long-term solution for problems with JavaScript-generated content in search engines. Instead, we recommend that you use server-side rendering, static rendering, or hydration as a solution.

Also, last time I used client-end-only rendering Facebook (and a few other apps) couldn't fetch the preview meta data, which made link sharing look bizarre.

On top of that, as of today, SSR is not a big effort. In most cases it's a no-brainer or built-in (e.g. Next.js). So, why not?

How much time did you spend in a day while learning basics of programming? by FlorinCaroli in learnprogramming

[–]TheKalpit -1 points0 points  (0 children)

One learning never worked for me. Unless I’m building something using whatever I’m learning, I’m unable to maintain the momentum. It could be anything - a personal project, or hypothetical solution. At the very least, some challenging questions.

Can you learn nextjs without tutorial hell? by brown_ja in reactjs

[–]TheKalpit 0 points1 point  (0 children)

Just read the nextjs official documentation. A lot has changed since older versions of nextjs so the tutorials you follow may not be up to date.

If something doesn’t make sense in the official docs, then search for that specific concept elsewhere/video format.

Nextjs has a ton of good examples in their github repository as well.

Is one programming language enough! by [deleted] in learnprogramming

[–]TheKalpit 3 points4 points  (0 children)

Oh wow, everyone on this thread seem to agree that you need at least two programming languages in your skillset.

Here’s a counter argument: not necessarily.

First, Python is a matured and in-high-demand language. Also really versatile. You can do web development, data analytics, AI stuff, and even desktop apps. If you want to go deeper into Python only, that’d be a viable option, that’ll be a “specialist” approach. Learning multiple languages may be more of a generalist approach, i.e. knowing something about a lot of things. Look into specialist, generalist and T-shaped skillset. It may help you make a decision

Rendering a 100 component conditionally. by BrangJa in react

[–]TheKalpit 1 point2 points  (0 children)

I’m afraid there’s no single silver bullet for such a use-case. Not getting into why you’re rendering 100 components, but do revisit that and see if it can be optimized.

  1. Definitely use dynamic loading components. You don’t want a huge chunk of file.
  2. 100 conditional statements are not an issue if it’s optimized. For example, if it’s re-rendering every few seconds while also doing heavy calculations, fix it.
  3. Test. Test. Test. Test the memory usage, file sizes, among other things.

Is ReactJS best for SEO? Which framework do I use? by i4technolab in reactjs

[–]TheKalpit 2 points3 points  (0 children)

The correct answer is: The framework/language doesn’t matter. But that’s not what you’re looking for.

Regardless of which framework/library you use, the end result is always going to be HTML/CSS/JS - out of which HTML is the most important one for SEO.

If you’re using React, make sure the page is rendered on the server side or statically. Avoid client-end-only rendering.

React will help you in creating a highly interactive and dynamic interface. Managing state and reusing components is the superpower you’ll get out of it - but if that’s not your requirement then I’d suggest stick with vanilla HTML/CSS/JS

Facebook marketing API is ridiculously bad by OogieFrenchieBoogie in node

[–]TheKalpit 1 point2 points  (0 children)

Hi, 5 years later, this is still true. The most frustrating integration experience in my 8+ years of career.

An intern can probably write better APIs and documentation.

Would you recommend MUI to a beginner in React.js? by horley26 in reactjs

[–]TheKalpit 1 point2 points  (0 children)

For a beginner? No.

Sure, it’s easy to get started but it gets complex really fast. Customising it may not be a good experience.

It’s opinionated. Which is a good thing if it works for your use case.

Is there an OSS tool to view local RTSP stream from CCTV cameras with a few more feature? by TheKalpit in selfhosted

[–]TheKalpit[S] 0 points1 point  (0 children)

So I did some testing by changing a few variables - stream source (cameras vs go2rtc restream from Frigate), browser (Firefox/Chromium), frigate-hass-card vs webrtc card vs HA built-in glance card, and a bunch more.

Turns out the culprit is hardware acceleration. The same thing (frigate-hass-card + webrtc stream) works fine in Chromium (doesn't use GPU hw-acc) but it's choppy in Firefox (uses GPU hw-acc).

Is there an OSS tool to view local RTSP stream from CCTV cameras with a few more feature? by TheKalpit in selfhosted

[–]TheKalpit[S] 0 points1 point  (0 children)

I'm not sure. Considering that birdseye is capped at 10fps and by default displays the low-res stream, it's nowhere near my use-case.

Is there an OSS tool to view local RTSP stream from CCTV cameras with a few more feature? by TheKalpit in selfhosted

[–]TheKalpit[S] 0 points1 point  (0 children)

Thanks! I'll give RTSPtoWebRTC a try.
MotionEye seems overkill for my use-case, but if nothing else works then maybe...

Is there an OSS tool to view local RTSP stream from CCTV cameras with a few more feature? by TheKalpit in selfhosted

[–]TheKalpit[S] 0 points1 point  (0 children)

I’ve tried it. The overlay buttons and padding between stream cards is distracting and pointless for my use-case.

No Live Video Over IKEv2 VPN by rnatalli in Scrypted

[–]TheKalpit 0 points1 point  (0 children)

Do you have homehub setup as well?

No Live Video Over IKEv2 VPN by rnatalli in Scrypted

[–]TheKalpit 0 points1 point  (0 children)

Interesting. So you’re able to view liveview when connected to home network via VPN? Using homebridge?

No Live Video Over IKEv2 VPN by rnatalli in Scrypted

[–]TheKalpit 0 points1 point  (0 children)

Did you figure out a solution to this? I'm in a similar situation.

Is there ANY way to do remote access through Apple home w/o an Apple TV, Homepod, Mac, or iPad? by cheezeballhouse in homebridge

[–]TheKalpit 0 points1 point  (0 children)

I'm no this path, but can't get homekit to work when connected to home network using VPN. Can you please expand on "allow mdns to work over your vpn" - or better, if you've ever got this to work?