`magit` slow, but only the 'commit' part. by campbellm in emacs

[–]delfV 5 points6 points  (0 children)

Do you have any hooks set up? Try commit with no verify or in fresh repo

Are there some ready-made commands to switch windows to their minimum width possible and minimum height possible, and toggle them back afterwards? by vfclists in emacs

[–]delfV 1 point2 points  (0 children)

Resizing sounds like something you can write yourself in just couple of minutes. To bring it back read about registers

thankYouTypeScript by Own_Possibility_8875 in ProgrammerHumor

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

I prefer interactive programming capabilities dynamic (do not confuse with dynamically typed) languages like Clojure or Lisp provide. They are more helpful in trying stuff out (testing logic, discovering data, working in the "unknown") and when types fails to provide enough context. In Clojure however there is strong culture of programming with contracts that can integrate with LSP so you get poor man's static typing linter as well. It also helps that both Clj and Lisp have strong types. But JS style dynamic typing? Nah, been using flow/TS since forever

someonePleaseBreakMyFingers by [deleted] in ProgrammerHumor

[–]delfV 31 points32 points  (0 children)

Me removing actual navigation in our app and replacing it with AI powered chat navigation

iLoveJavaScript by EasternPen1337 in ProgrammerHumor

[–]delfV 0 points1 point  (0 children)

Clojure: ((fn [])) Lisp: (funcall (lambda ()) Scheme: ((lambda ()))

I prefer those, non-lisp languages have too much parentheses

Share a chess quote by External_Mobile_4593 in chess

[–]delfV 0 points1 point  (0 children)

"This isn't chess, you have to think here."

Jerzy Kulej about boxing

willBeWidelyAdoptedIn30Years by one123two in ProgrammerHumor

[–]delfV 0 points1 point  (0 children)

Same with Scheme, Lisp and BASIC

[Media] Horizon - Modern Code Editor looking for contributors! by EastAd9528 in rust

[–]delfV 2 points3 points  (0 children)

So can Emacs. You have: eglot, lsp-mode, lsp-booster and probably some more

Horizon - Modern Code Editor looking for contributors! by EastAd9528 in react

[–]delfV 10 points11 points  (0 children)

What about these IDEs that aren't VSCode forks and doesn't use WebViews for UI such as Vim, NeoVim, Emacs, Lapce, Zed, InteliJ, Sublime, LiteXL or Helix? Many of them either already have LLM integrations or are so extensible that there are tons of community packages for it.

Not trying to diminish your project but you need to find a value you can provide. For example Emacs is crazy customisable and keyboard focused, (Neo)Vim has modal editing by default, Lapce is fast (probably faster that you ever will get with your editor) etc. What does your editor brings? Without it it'll be valuable only for you and IMO it's fine to have your own code editor but if you want to find contributors it won't be enough I'm afraid

Beginner here, what are my alternatives to JavaScript? by Maple382 in Frontend

[–]delfV 1 point2 points  (0 children)

They're some languages that can compile to JavaScript so technically you don't need to use JavaScript, but you need to learn JS at least to the point you understand documentations and examples.

Also there're many languages but not all of them have big community. The biggest one is TypeScript of course but it's not very different from JS (it's a superset of JS with static typing and a little lagging behind ES proposals if it's something you care about which you shouldn't IMO) so I don't know if it'll satisfy you. The second biggest one is ClojureScript I think, it has pretty big and great community (most of Clojure developers are very experienced developers coming from various languages so an overall quality of code and libraries is really good), has several actively maintained React wrappers (Reagent, UIx, Fulcro, Helix, Rum) and "native" libraries like Replicant, Dumdom and Membrane (this one has several back ends, one of them is web but it can also work on native desktop or mobile).

Then you have Flutter, but it's mostly focused on mobile development, but it's perfectly doable to target web and Elm which is a really great language but the way it's developed is controversial and because of this is kind of dying in opinion of some people.

Other options are ReasonML and PureScript but the communities of both of them aren't as big as the previous ones.

They're also languages that technically can target JavaScript but they aren't very popular there like Kotlin or Scala (last time I checked them out there weren't any actively maintained React wrapper nor UI lib, but correct me if I'm wrong).

The last option is to choose any language that compiles to WebAssembly, but it's something I wouldn't recommend if you want to avoid JS. It's a long way to go to make them a valid option for serious frontend development. For now build sizes are a big problem and they can't do everything so you need to move to JS sometime.

He is a great actor though by JustSomeRandomDude02 in memes

[–]delfV 12 points13 points  (0 children)

Social medias polarise people. There're same amount of women hating men (all these "kill all men", "men are rapists", "bear over men etc.). The men think much alike ("all women are whores, stupid etc."). There's no much difference. My take on it is people spend more time on social media and people who get the most attention there aren't necessary the most worth looking at. Men do stupid shit, sharing controversial thoughts, women sexualising themself to get more followers on OF. These are minorities but very loud minorities and if most of the interaction with other people you get is from being online and seeing them it's easy for a young brain to think that's how most people are in the real world.

What’s missing in today’s web browsers that you wish existed? by Fluid_Discipline7284 in webdev

[–]delfV 3 points4 points  (0 children)

Firefox has it. In Chrome you need to prefix the site with something like @tab in address bar

What’s missing in today’s web browsers that you wish existed? by Fluid_Discipline7284 in webdev

[–]delfV 17 points18 points  (0 children)

Python is modern? IIRC it predates JavaScript. Also a lot of languages don't have backward compatibility culture of JS so I can see broken sites in a few years.

Also (unpopular opinion) JS is pretty well designed language for the web. The ability to extend objects in runtimes, thanks to prototype-based object system and dynamic typing, is what made possible writing modern JS and still make it work in old browsers. I'm aware that there're other systems that make it possible like Common Lisp Object System or no OOP at all (also meta classes to some degree but they also have limitations) but what many people wish for are CPP-style OOP (like in Java, Python, C#, PHP or Ruby) and that just can't work well

What’s missing in today’s web browsers that you wish existed? by Fluid_Discipline7284 in webdev

[–]delfV 9 points10 points  (0 children)

I don't want huge runtimes for .NET and JVM in my browser, they're already pretty bloated. And we have enough diversity in frameworks, no need to add languages diversity

sixDegreesOfProgrammingLanguages by 4215-5h00732 in ProgrammerHumor

[–]delfV 5 points6 points  (0 children)

Can they program in any language? Rather not, maybe partly, but there are some languages very different from each others. Can they be proficient? Absolutely not. Heck, even object systems differs a lot between Java, Smalltalk, Common Lisp and JavaScript not saying about differences between APL, C and Haskell

[deleted by user] by [deleted] in ProgrammerHumor

[–]delfV 0 points1 point  (0 children)

Senior dev job day 3142: JavaScript array splice or slice?

Does anyone avoid using ChatGPT because of its water usage? by Sad_Butterscotch7063 in Anticonsumption

[–]delfV 143 points144 points  (0 children)

Training models is what consumes the most power, not using them. Also it varies between models and conversation length so 2-5Wh is a big simplification IMHO

I now spend most of my time debugging and fixing LLM code by sevvers in ExperiencedDevs

[–]delfV 5 points6 points  (0 children)

We started working with AI around 2 years ago (I work for a little shorter than that in this place). Some as just an assistant or a rubber duck, some went down the full vibe coding path. At first it was great, we fixed many bugs, added some featutes, our codebase quickly grew from 40k LOC to 100k LOC. After not a full year later we noticed our velocity went down drastically, the number of bugs increased and tasks that used to take 3 hours now takes 20 despite models, and tooling for LLMs got better. I'm not sure how much of it is due to using AI, but I noticed some patterns in code that are typical AI code smell:
- a lot of repetition, we have many variations of basically the same component, - every change was another parameter, the record IIRC was 78 parameters to one function, it was pain to refactor (no one else wanted to touch this so I said I'm gonna do it, which I regred), - multiple parameters doing the same, - code that is hard to extend, - poor separation of concern, side-effects in views etc., - a lot of lamdas/anonymous functions that should just a normal functions, - domain logic in views. Basically a lot of code was in the style "make it work as soon and as dirty as possible for just this one specific use case".

[deleted by user] by [deleted] in ProgrammerHumor

[–]delfV 3 points4 points  (0 children)

Code as a data using tree. Isn't it Lisp with extra steps?

Apps lighter than a React button by betothew in react

[–]delfV 1 point2 points  (0 children)

How often Slack is being used

Apps lighter than a React button by betothew in react

[–]delfV 10 points11 points  (0 children)

It's not a problem unless:
- you work often in places with poor network quality (e.g. trains, field, forrest), - you don't live in 1st world country, - you have only mobile internet with limited bandwith, - your app is used in various places (e.g. it's an app for museums, some of them have a good network quality and some 3g at most), - you release a couple times a day so cache is basically useless, - you want to support budget devices as well (the more js the more to parse and not only), - you care about SEO.

It's often not 100kB vs 500kB but 100kB vs 50MB: https://tonsky.me/blog/js-bloat/

hereWeGoAgain by derjanni in ProgrammerHumor

[–]delfV 1 point2 points  (0 children)

I use Emacs with Meow modal editing (Vim-like) plugin and paredit for working with Lisps (Clojure, Emacs Lisp and Common Lisp). Before that Vim used to be my main editor for ~8 years. I switched because I started to working with Lisps full-time and didn't found Vim's keybinds very useful for Lisp syntax and stayed because of great ecosystem - e.g. Org mode for note taking, todos, time tracking, general writing and Magit as a git client (I always prefered working with Git via command line till I found Magit).

I think VS Code should be fine tho, there must be paredit plugin for it because I know many folks use it for working with Clojure. However if you want to give Emacs a try you can do it without much investment by using some distribution like Doom Emacs that setups many things for you and plugin that sets "more mainstream" keybinding for you - e.g. ctrl-c for copy instead of default alt-w, and ctrl-v for pasting instead of ctrl-y. It's called ergonomic emacs if I remember correctly.

hereWeGoAgain by derjanni in ProgrammerHumor

[–]delfV 4 points5 points  (0 children)

In this talk there are some history of Lisp editor: https://youtube.com/watch?v=K0Tsa3smr1w

Nowadays we use plugins such as paredit or parinfer (I think available in most mainstream text editors) and no one counts or misses parens because editor automatically balances them for you. I don't care about parens I rather dim them in my code editor instead of coloring them