[-] mfz@kbin.social 7 points 5 months ago

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

[-] mfz@kbin.social 3 points 5 months 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.

[-] mfz@kbin.social 2 points 1 year 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. :)

[-] mfz@kbin.social 5 points 1 year 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.

[-] mfz@kbin.social 2 points 1 year 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;) { ... }

[-] mfz@kbin.social 8 points 1 year ago

Well, not all languages allow for fun programming :)

[-] mfz@kbin.social 4 points 1 year 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.

[-] mfz@kbin.social 4 points 1 year 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.

[-] mfz@kbin.social 7 points 1 year 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

[-] mfz@kbin.social 1 points 1 year ago

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

[-] mfz@kbin.social 1 points 1 year ago

OMG! Some great quotes in there: "The real decease 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"!

[-] mfz@kbin.social 2 points 1 year ago

As a single developer taking on a passion project you go with what you know.

Also it must have been near impossible to have foreseen the insane explosion of popularity that has happened here the last few days.

Even then if you build something for passion you choose something that make you happy to use, however esoteric or impractical that may be to others, or how it would be perceived. Most probably it was never thought to be exposed in such a massive way, and certainly not as soon after the project was started (we're talking month(s) here).

Anyhow, for this project from the looks of it it is working fantastic.

Personally I've not used PHP for years but now I'm actually intrigued to take a new look at it.

view more: next ›

mfz

joined 1 year ago