In production!
I kid I kid.
In production!
I kid I kid.
if you are reasonably confident your input dates match your format, you could just return date1 if date1>date2 else date2
and call it a day.
Why be pro any *ism or *ist? Why not be pro *ance?
Write Lemmy.world and see if it is the same
Lemmy is way more fun for me. I am done with Reddit.
That is a very decent lib! It seems pretty mature and strikes a nice balance between ease of use and performant power.
sqlite_utils is the missing command line, in many ways
SQLite is an underused platform imo. More RDBMS would benefit from using it as an import / export format vs csv / json.
Personally I prefer functional architectures + callbacks (better) / closures (tolerable),they tend to scale a bit better.
If a a dog needs to eat, then invoke the eat function with dog data and the dog eat function.
Explicit (this data is dog so I feed it with the dog eat function) vs implicit (I have no idea, I ask my data to eat as it pleases).
Explicit design tends to have fewer bugs my conjecture. Protocols are a halfway point, at least you know “hey this thing eats … uh … something.”
However, if doing that, just take it all the way - systems are better explicitly linking a verb to a noun vs assuming the noun knows how to verb.
It is also easier to test and debug.
That is really awesome. Well done!!!
Depends on the use case; the question is, do you need to construct and destroy the connection inside each method, or can you do it once, at the start of the program, and exit at the end?
db = Db(DB_FILE)
post_id = insert_post(db,"hello")
comment_id = insert_comment(db,post_id)
db.close()
json schema + json allows you to extend beyond key/value pairs & the input validation is “free”.
lemmy_comment_id=1
if prod:
lemmy_comment_id = lemmy.comment.create(post_id, comment_body)["comment"]["id"]
Etc. not particularly graceful but perhaps enough to tease out what is happening. Remember to branch!
Yes, I have yet to have a zero-config experience even on vertical (but open) platforms like RasberryPi. What has been your experience?
GPU, Sound, WiFi Day 0 / 1 / 365 are not yet on par with MacOS or Win11, for me, anyway.
For me, it is important to recognize there is a larger time investment, otherwise how does it get better?
I agree. Linux is great when one has the time but not the money.
However for a system that just works - MacOS is one of the best bsd distros of all time esp on arm.
Sadly MacOS also comes with the downfalls of a closed and proprietary ecosystem.
Wonder what dent the 40M rasberry pi’s make, not to mention virtual desktops and the like! The number may be higher than 3%!
Why is that a good or better thing?
For media, a state platform in order of goodness:
non state (open) platform > non state (closed) platform > State owned platform
most times when the state takes an action it deprives it’s citizens of the beneficial outcomes of that action (skill, monetary).
Which would be better - open instances in each country where the state ( country and regional/s) is a participant along with its citizens?
Or instances where the state and its infinite power is private and above the people the state would govern?
My reaction is not to a state using mastodon nor twitter for that matter. My reaction is to a state running mastodon separate from the people.
It looks like a state government was creating their own mastodon instance which, when plugged into the rest, would give them surveillance and digital wire tapping powers that today they do not have?
lol! yes, we likely agree. A free market refers to a market free from all forms of economic privilege, monopolies, and artificial scarcity.
Precisely why I left