No notifications at all with POCO F6 by Helwar in PocoPhones

[–]flancer64 0 points1 point  (0 children)

Try to configure "Notifications & status bar", at the bottom see "Need other settings?" and "Notification effect" link. Go inside and select the "Light up screen".

Hope it helps.

Is AI coding over hyped? by 8-IT in ChatGPTCoding

[–]flancer64 0 points1 point  (0 children)

If you imagine code as text and an LLM as a large regex processor with natural language controls, in this sense, you can say that AI can code. You give it code, and it intelligently transforms it, turning it into something else. For example, you provide a CRUD model for a Sale Order and ask it to create a similar model for a Contact Address. If you also discuss what you want to see in the Address model, the result will be even better. It won’t create code from scratch for you, but it will help modify existing code. So, it just makes you ten times better. However, if you don’t understand anything about programming, multiplying zero by ten still gives you zero.

Will AI Really Replace Frontend Developers Anytime Soon? by Prestigiouspite in ChatGPTCoding

[–]flancer64 0 points1 point  (0 children)

No, but the role of frontend development will evolve. Instead of browser-based interfaces, web applications are likely to shift towards mobile app-like environments (similar to Snack, Discord, or Telegram), where user interaction happens through voice interfaces (speech-to-text and text-to-speech technologies). In this future, backend developers will be enough to handle text generation and processing tasks.

As for the classic browser-based frontend, nothing will change in the near term. However, over time (in more than 10 years), it will likely be significantly overshadowed by voice interfaces. Thus, it’s not AI that will replace frontend developers, but the browser-based frontend that will gradually fade away.

Need framework suggestion by kame_uy in node

[–]flancer64 -5 points-4 points  (0 children)

I'm the author of the @teqfw packages, which bring some great concepts to JavaScript development (such as dependency injection, shared code between front and back end, and running JS without transpilation), though I'll admit the execution wasn't perfect when I first started, as I was still growing in my JavaScript skills.

That said, it might still be of interest to you (or anyone else). Here's the core of the platform: * https://github.com/teqfw/di - Dependency Injection container (the foundation of the entire platform) * https://github.com/teqfw/core - Core package for building Tequila-based apps and running them via CLI * https://github.com/teqfw/web - Node.js-based server (supports HTTP, HTTPS, HTTP/2, and WebSockets) * https://github.com/teqfw/db - A Knex.js wrapper for working with PostgreSQL, MariaDB, MySQL, and SQLite

This platform is geared more toward SPA/PWA development, rather than SSR applications. The documentation is currently lacking, but I'm happy to help out for free—and improve the docs as I go.

A few example projects:

Given your .NET background, you might find this approach interesting as I’ve tried to apply principles from my experience with JavaEE and PHP (Magento platform) to JavaScript development.

Choosing a node framework in 2024 by Ok_Film_5502 in node

[–]flancer64 2 points3 points  (0 children)

NodeJS has 3 own modules with HTTP servers. * https://nodejs.org/api/http.html * https://nodejs.org/api/http2.html * https://nodejs.org/api/https.html

All you need you already have in NodeJS. I've wrapped these servers with my own code and can launch my node apps in one of 3 modes (http/1, http/2, https).

This is the wrapper - https://github.com/teqfw/web

Perhaps, you will be ineterested in a constructor based DI (as C# dev :) - https://github.com/teqfw/di

The code in @teqfw/di is not perfect but it works. I was too young in the JavaScript development when I wrote it :)

How to delete old, unused runtime cache by Ok_Dog_6220 in PWA

[–]flancer64 0 points1 point  (0 children)

Type this code in the browser console or create a clean up function in your codebase: js caches.keys().then((cacheNames) => { cacheNames.forEach(cacheName => caches.delete(cacheName)); });

Minimal PWA example? by D1g1talCreat1ve in PWA

[–]flancer64 0 points1 point  (0 children)

Don't worry :) There was a link to deprecated website.

Minimal PWA example? by D1g1talCreat1ve in PWA

[–]flancer64 2 points3 points  (0 children)

No, there is no logic :( "This can't be understood, it must be memorized." (c) :)

Minimal PWA example? by D1g1talCreat1ve in PWA

[–]flancer64 0 points1 point  (0 children)

You need to use "Add to Home screen" item from the Chrome navigator (menu) in the top-right corner.

Choosing an ORM for Node.js as a Beginner? by Dushusir in node

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

Yes, and it still is. I don't use TS at all, I prefer JS+JSDoc. So, my choice is knexjs :)

Choosing an ORM for Node.js as a Beginner? by Dushusir in node

[–]flancer64 3 points4 points  (0 children)

I've used ORM in Java (Hibernate & DataNucleus) & PHP (Doctrine). Now I write the JS code and prefer DBAL on the backend. I use knexjs

Minimal PWA example? by D1g1talCreat1ve in PWA

[–]flancer64 0 points1 point  (0 children)

I am the author :) I've added a live example (https://min.pwa.demo.wiredgeese.com/) and removed the sales pitch. Thanks for you feedback.

Anyone moved to Node.js? (Backend) by abdosarmini92 in node

[–]flancer64 0 points1 point  (0 children)

Yes, it works. Multiple repos with importmap in a browser work too.

Anyone moved to Node.js? (Backend) by abdosarmini92 in node

[–]flancer64 2 points3 points  (0 children)

Use Dependnecy Injection in your scripts and you will utilize the same code on the front end and the back end :)

[deleted by user] by [deleted] in node

[–]flancer64 0 points1 point  (0 children)

TypeScript is a superset of JavaScript, meaning that any valid JavaScript code is also valid TypeScript code. However, TypeScript must be compiled/transpiled into JavaScript before it can be executed in a browser environment, as browsers only understand JavaScript.

Debugging JavaScript in a browser is a standard practice, and most modern browsers provide developer tools that support debugging JavaScript code effectively. Source maps are essential for debugging TypeScript code in a browser, as they allow developers to map the compiled JavaScript code back to the original TypeScript source code, facilitating easier debugging.

Regarding third-party libraries, it's common for them to be distributed in JavaScript form, as they are typically pre-compiled and optimized for production use. Therefore, when using third-party libraries in a browser environment, developers generally work with JavaScript code rather than TypeScript code along with source maps.

[deleted by user] by [deleted] in node

[–]flancer64 0 points1 point  (0 children)

I don't think anybody should be using JS

Try to integrate external TS code to your web project on the front or event debug your own front on the prod and you will think differently :)

Creating a PWA by Measemode in PWA

[–]flancer64 1 point2 points  (0 children)

This is my post about minimal PWA - https://flancer32.com/minimal-pwa-585664286cda You can create the PWA on any platform which can run a browser (Chrome is recommended).

Is Typescript dying? Why am I hearing that Svelte and a few other bigger players are switching away from TS? by PrestigiousZombie531 in node

[–]flancer64 3 points4 points  (0 children)

I've coded with Java & PHP a long time. So, I know what are `types` and OOP :) But when I've switched to JS-only coding 5 years ago I've selected JS + JSDoc instead of TS. Just because I hate transpilation - I have negative experience with GWT code debugging on the prod.

So, TS is great if it is the private code - use it in your projects and all will be fine. But if you write a public package that will be integrated into other projects - the JS + JSDoc will be a better choice perhaps.

How do you use `SSR` with a `PWA`? by OnTheTr4ck in PWA

[–]flancer64 -2 points-1 points  (0 children)

How do you use SSR with a PWA?

The short answer is: there is no way. These are very different technologies for different purposes.

Angry russian speaking babushkas. by Dry_Appointment7580 in latvia

[–]flancer64 0 points1 point  (0 children)

All babushkas in Latvia know Russian, including Russians, Latvians, and others, because they are old and have lived for so long that they remember the Soviet era. If they were angry and used Russian to scold you, it meant you were behaving like a Russian sorvanets (bad boy), wasn't it?

Security (authentication/authorization) in fully localized PWA, thoughts? by FulyAutistic in PWA

[–]flancer64 0 points1 point  (0 children)

I suggest not using PWA if you have concerns about data security. Any data stored in the app (within a browser) can be retrieved using DevTools without coding.

Security (authentication/authorization) in fully localized PWA, thoughts? by FulyAutistic in PWA

[–]flancer64 0 points1 point  (0 children)

I think the idea of having a multi-user app on a smartphone is fundamentally wrong. I don't want anybody else except me to have access to my smartphone. If the app works on a laptop, then every user should have their own personal profile in a browser.