mfz
0
19
mfz

@kbin.social

My mission is to bridge the gap between innovation and liberty, crafting a future where technology empowers all. With a commitment to coding, software, and liberty, I strive for impactful innovation.

mfz 13 points 3 years ago

Isn't the evaluated value different from the expression? i++ returns the value of i before increasing. i-=-1 would return the value after it has been increased. Wouldn't it be more correct to make it equal to ++i

path: 0 345799, hotness: undefined, score: 13, children: 11
mfz 10 points 3 years ago

Well, not all languages allow for fun programming :)

path: 0 345799 355002 355209, hotness: undefined, score: 10, children: 1
mfz 8 points 3 years ago

If you're hell bend on achieving the goodness of i++ equivalent you could wrap it up like this:
(i-=-1,i-1)

We're talking C here of course.

path: 0 345799 353831, hotness: undefined, score: 8, children: 0
mfz 7 points 2 years ago

In some parallell universe this happened at the first try...

path: 0 9554719 9555333 9556031 9566384, hotness: undefined, score: 7, children: 0
mfz 6 points 3 years ago

It is a conversational tool that can generate decent code if properly prompted but it lacks for the most part enough context. For it to be really useful it has to be able to be trained on my entire project that I'm working with, not just a single file or function.

What I miss is the ability to "chat with my project". I.e. have the whole project in the trained context, and then reason about architectural changes, pros and cons, have suggestions for refactoring, help with complex renaming schemes and moving code, etc.

It would be super interesting to be able to give instructions like:

  • Organise my files by dependency and the logic they implement.
  • Or something like, create web components from common input elements in my html pages.
  • Where is the user auth code implemented?

Things like that.

path: 0 208345, hotness: undefined, score: 6, children: 1
mfz 5 points 3 years ago

It works the same because the value of the last expression in the for loop is not used for anything. It's the side effect of that statement that counts. Eg, the value of i is checked the next time the for loop is executed by the condition check. Try replacing i in the condition check instead with i++ or ++i and you would see different results.

Something like: for (int i = 0; ++i < 10;) { ... }

path: 0 345799 372242 374921, hotness: undefined, score: 5, children: 0
mfz 5 points 3 years ago

To add to all great comments here I have one that I’ve used for ages and not seen mentioned here: lftp

It supports many protocols for ftp like over ssh and allows for shaky connections with resume and back in the days when this was more common I used to just run it in the background to download huge files that took days to download and it would gracefully just reconnect/resume/retry until done.

path: 0 1117203, hotness: undefined, score: 5, children: 0
mfz 5 points 3 years ago

I think they're creating enough trouble for themselves anyway just by constantly shooting themselves in the head. Also moving on is probably the least good thing for them. Losing users gradually will bleed them to death.

path: 0 250091 251041, hotness: undefined, score: 5, children: 0
mfz 5 points 3 years ago

In C you can group expressions within ( and ) separated with ,. Expressions are evaluated in order and the last expression in the group is the returned value of the group.

path: 0 345799 354780 355175, hotness: undefined, score: 5, children: 0
mfz 4 points 3 years ago

As ActivityPub is just an underlying protocol, the question is similar to asking something like "Is it possible to make an Internet app for everything?".

There will be new ways to use the #fediverse in the future and new applications will be developed and adopted and it makes little sense in trying to provide every possible way to view the fediverse in an ever playing catch-up implementation of a view into it.

Try to look at it as the Internet itself.

It's an attempt at providing a finite and limited answer to an open ended question. Doesn't make a lot of sense.

path: 0 596616, hotness: undefined, score: 4, children: 4
mfz 3 points 3 years ago

Just smile and nod slowly..

path: 0 402780, hotness: undefined, score: 3, children: 1
mfz 3 points 3 years ago

OMG! Some great quotes in there: "The real disease is VIM" and "I spend more time customising my computer than actual using it" and of course "I treat my whole life as a text buffer"! (EDIT: Fixed spelling)

path: 0 246597, hotness: undefined, score: 3, children: 0
mfz 3 points 2 years ago

Don't worry too much about it if it doesn't make sense to you. It can be really valuable if you're deploying a substantial amount of IoT devices on the edge with no to little possibility to do over the air upgrades reliably or when the cost of failure is high (i.e. a technician has to be on site to fix it). So, sometimes you just want it to be running as stable as possible for as long as possible without management.

path: 0 9566220, hotness: undefined, score: 3, children: 0
mfz 2 points 3 years ago

I think it was about 1995. I was going to the university and was looking for something Unix compatible I could use at my home computer to perform assignments instead of needing to go into school computer lab. Remote work basically. Think I was using LessTif instead of Motif for some coding task.

Ahh. Those were the days. Used modem to connect to school and connect remotely to the network using Linux. :)

path: 0 1218982, hotness: undefined, score: 2, children: 0
mfz 2 points 3 years ago

Yes, yes, and someone else's problem will be your problem after the job hop! :)

path: 0 297080 298912, hotness: undefined, score: 2, children: 0
mfz 2 points 3 years ago

First rule of fediverse: Don’t talk about the fediverse.

path: 0 202774, hotness: undefined, score: 2, children: 0
mfz 2 points 3 years ago

I’ve been thinking a bit about this lately since the Reddit migration started. I believe it could be solved at the client level at least. Unifying magazines over instances and behind the scenes pull in and follows twin magazines at other instances and presents them in a single abstract magazine.

There are probably reasons why you at the server level or user level want the low level community access and behavior we have today but judging of all comments and how we typically behave as humans I would say that is rather the unusual case not the mainstream.

Such users could easily then opt in at the instance level and everyone else looking for a more “centralized” experience can still have that through the client app.

No doubt it would take some work but I believe it is very doable given my understanding of the Activity Pub protocol and how it works today.

path: 0 201570 202275 202999, hotness: undefined, score: 2, children: 0
mfz 1 point 3 years ago

The instance name is part of your handle. Think of it like an email address. With a domain part.

path: 0 223536 223537 223538 223539 223540 223541 223549, hotness: undefined, score: 1, children: 0
mfz 1 point 3 years ago
path: 0 596616 596617 608380, hotness: undefined, score: 1, children: 0
mfz 1 point 3 years ago

Signup and there is also an intangible more positive feeling here at kbin.

path: 0 190839 190840 191255, hotness: undefined, score: 1, children: 0

thanks for using Leebra!

go to feed...