Christos Litras
149 posts

Christos Litras
@ChristosLitras
Senior software engineer with 16+ years of professional experience. Very passionate for Computer Science and Software Development.
California, US Katılım Nisan 2011
749 Takip Edilen97 Takipçiler

@valigo well, the more node_modules you have - worse it works
many people abuse it, adding tons of uneeded libs and big frameworks, while in fact they could've achieve it with just plain JS and few libs
English

I often post about "Electron slop" and "Electron slop" that, and I always get replies and qrts that Electron is not the problem. And it is true, PARTIALLY.
I remember when VSCode first shipped in 2016, it was super light on resources and pretty much natively fast. It was literally only losing (not by a lot!) to Sublime Text in its performance, a state of the art carefully crafted native code editor. At the time I couldn't believe that it's Electron. Same with early versions of Slack - it was fast and snappy, a joy to use compared to its competitors at the time that nobody remembers today because Slack [rightfully] killed them all.
So yes, I KNOW it is possible to ship reasonably fast and efficient Electron apps. The issue is that for some reason all Electron apps become sluggish and resource-hungry real fast, and their maintainers lose whatever control they had over them, while there are plenty of native desktop apps that are decade(s) old, that gain features, but stay fast and efficient.
So there's clearly something about it that leads to this rot, even when very smart programmers work on apps built with it.
English

@bleuonbase Because with Electron they have a full customizable browser that can do whatever they want with it, Tauri and all Webview solutions using system Webview which has limited functionality and constraints. And that's why these are small... they don't pack a full browser.
English

@bruvimtired If an app is able to call native OS API then it is by definition native. UI layer doesn't matter. I have a triplet C++ app that compiles to macOS, Linux and Windows that uses a Webview for the UI, like Tauri does, it's still a native application and it has abstractions for all OS
English

@TheAhmadOsman What about power consumption of what that local GPU will burn to do what my Claude Max does each month? I have an RTX 4500 ADA and still I am very hesitate utilizing it for everyday AI local usage due to power consumption.
English

@kabster @BasedMikeLee The metaphor is invalid. I can choose whether I have a Facebook account or not and even if I have I can delete it, people cannot choose socialism if they are in a socialism system. Facebook won't force me to use it for 8 hours everyday, like I'm forced to work in socialism.
English

@theodorvaryag Another troll trying to seek for attention. "Lemons are evil, stop eating them"
English

@tekbog It's because the language and its' ecosystem sucks, unless you are making good money, make yourself a favor and invest in an enterprise stack.
English

@Justin__NC @dario_xz @elonmusk @AfD You need to study some history and regarding the "evil" EU know that Germany is one of the most favorable countries in the EU; they make a lot of profit due to the union policies and status. The EU is not some bureaucrats in Brussels, EU is 450M people electing EU politicians
English

An attack by the legacy media is Germany is exactly what I expected and wanted to happen.
It will only help the @AfD win🥇for 🇩🇪
x.com/elonmusk/statu…
English

Cybertruck can beat a Porsche 911 while towing a Porsche 911!
Mario Nawfal@MarioNawfal
CYBERTRUCK SMOKES LAMBO… Dang…
English

RT @jarredsumner: In the next version of Bun
You can compile and run C in JavaScript
English

@olivierliberte @hayat_taym @historyinmemes It's not stupid, it's very clever actually.
Look at the coke can open stays attached and that have saved millions of tons of aluminum that was disposed separately. Same goes for the plastic bottle caps.

English

@ChristosLitras @hayat_taym @historyinmemes Do sincerely believe we will solve our society's challenges with this stupid pilling of regulations?
English

@tylerlwsmith @kentcdodds Well, I'm pretty sure that if such syntax would ever make to ES, there would be a lint rule to enforce destructuring the error, but there are cases that the error is ignored by desing, i.e. cache miss repositories.
English


@Hasen_Judi Clean and simple using Array.prototype.reduce:
const chunks = arr.reduce((acc, cur) => {
if (cur === null) {
acc.push([])
} else {
acc[acc.length - 1].push(cur)
}
return acc
}, [[]])
English

Back in 2015 I was the interviewer side in for a programmer position.
Many people could talk the talk, some of them had "impressive" looking resume.
Most of them could not answer this simple question:
Given an array with numbers and nulls, split it to multiple arrays, with null as the separator.
I think it's a very basic question, and I think anyone who could not even begin to formulate an answer doesn't know how to program.
I understand it's not always easy to program under pressure, so I would always ask the candidate first to just describe in words what the process is generally like.
Most candidates just had a stunned look on their face and they would try to mumble some non-sense.
English

@tylerlwsmith @kentcdodds It can be ignored even when first `const [, response] = ...`
English

@kentcdodds At first glance I hated the error being returned first, then I immediately realized its first because it would be ignored 99% of the time if it wasn’t 🙃
English

@leonautan @kentcdodds Endorced naming does not give the flexibility and freedom on naming things. Naming is dev's job. Object destructuring props can be renamed but it's not a goog pattern. Imagine you have 5 fetch calls in the same scope, then you'd need to do at least 4 object destructure renaming.
English

@kentcdodds Just curious, what is driven the need of using arrays as return values for these cases?. I get it if it's an array of items that are equals in composition, but for this (error and response) I think a better approach would be to use an object.
English

@teej_dv abandon ye false gods people of the 3 germanic tribes and kneel before odin the allfather
English



















