Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ovid, to random
@ovid@fosstodon.org avatar

Building a new system? Need it to scale massively? Don't start with

https://ovid.github.io/articles/dont-start-with-microservices.html

ovid, to python
@ovid@fosstodon.org avatar

A little quirk in that I can't wrap my head around. Rounding seems to round up or down depending on whether or not the int() value is odd or even. Anyone know why?

>>> [{n+.5: round(n+.5) for n in range(0,10)}]
[{0.5: 0, 1.5: 2, 2.5: 2, 3.5: 4, 4.5: 4, 5.5: 6, 6.5: 6, 7.5: 8, 8.5: 8, 9.5: 10}]

This is Python 3.11.5.

ovid,
@ovid@fosstodon.org avatar

@sldrant Because floor() isn't the same thing as rounding. I wouldn't want to call that on 9.99, for example.

sldrant,
@sldrant@mastodon.social avatar

@ovid ah true.
Was mostly wondering if other languages also do the same and I've never noticed. I don't use round() often at all, but do use floor()

ovid, to programming
@ovid@fosstodon.org avatar

Whenever I post about , I get detractors pointing out problems with them, or I get people cheering them on.

I decided to write a full article explaining many of the pros and cons you should consider if you're thinking about microservices. It's a bit of a longer read, but it's an important topic that a small toot won't cover.

https://ovid.github.io/articles/microservices-pros-and-cons.html

ovid, to PostgreSQL
@ovid@fosstodon.org avatar

Ever struggle with design? Do you just not get it?

I have a talk, "how to fake a database design", that will explain the basics to you. You can't learn all of it in an hour, but if you watch it a few times and let it sink in, it will help you tremendously.

This talk was in Bulgaria, but it I gave the same talk at OSCON and got 5/5 stars for it.

https://www.youtube.com/watch?v=y1tcbhWLiUM&ab_channel=yapceu

ovid, to animals
@ovid@fosstodon.org avatar

The brothers have decided to take my side of the bed. Again.

garius,
@garius@mastodon.me.uk avatar

@ovid "the human thinks this is his bed, again."

ovid, to programming
@ovid@fosstodon.org avatar

Though have their downsides (robustness is achieved via greater complexity), perhaps their single greatest benefit is simple. When designed well, they send and receive data. No shared memory.

That's an entire class of bugs wiped out (except inside the service, of course).

enobacon,
@enobacon@urbanists.social avatar

@ovid and then shared memcached introduces another class of bugs

ovid, to apple
@ovid@fosstodon.org avatar

Updated my Pro and it again replaced my backticks with the useless § symbol. I've also lost my tilde. Really, really ticked off that keeps doing this.

Doesn't help that I'm using a French keyboard remapped to a US one and system settings doesn't seem to let me actually set the damned things.

barubary,

@ovid Mine seems to be in some sort of "split brain" mode where on the external keyboard, the backtick symbol is on the key left of "1" (above tab), but the built-in keyboard has it on the lower left, between left shift and "z".

ovid, to random
@ovid@fosstodon.org avatar

Anyone in the UK know how to look up court records? Are they public?

I worked with this man briefly, before he was accused of industrial espionage. One day he just stopped showing up to work. I can't find anything else on the web about it.

https://www.thetimes.co.uk/article/web-intrigue-in-spy-case-3cr60lwjlgf

ovid, to webdev
@ovid@fosstodon.org avatar

Just spotted this in some for some relatively new code: <p class="color-red font-small">

At that rate, why even bother? HTML 3.2 all the way, baby! Bring back the <style> tags! Or HTML 4 <font> tags. Who needs ?

mjgardner,
@mjgardner@social.sdf.org avatar

@ovid Even the most orthodox semantics have to translate to presentation eventually

barubary,

@ovid Oh, is that the Tailwind stuff?

ovid, to Cats
@ovid@fosstodon.org avatar
ovid, to Cats
@ovid@fosstodon.org avatar

Draw me like one of your French cats.

ovid, to Cats
@ovid@fosstodon.org avatar

When you can’t sleep because your cat is hogging your side of the bed.

ovid, to random
@ovid@fosstodon.org avatar

Out of curiosity, I tried a service which scans your CV and makes recommendations for tailoring it. Those recommendations are based on popular CV scanning tools used by recruiters/HR.

I was kind of impressed with the quality of results. I was less impressed that the results it presented to me were for someone else's CV. I then found them on LinkedIn.

I'll be contacting the company to let them know about the security issue, so I'm not naming them here.

ovid, to programming
@ovid@fosstodon.org avatar

If wasn't dying out, I'd want to learn more and seek work. The world's largest telephony over ATM network ran on Erlang and had 9 nines (!) of availability. That's 31 milliseconds of downtime per year.

Part of why it was so reliable is that it's a language which basically makes you write for all functionality, but with much of the infrastructure support built in. What an amazing technology.

, and are written in Erlang.

https://en.wikipedia.org/wiki/Erlang_(programming_language)

wordshaper,
@wordshaper@weatherishappening.network avatar

@ovid Erlang is amazing. I remember it from way back in the day when I was still doing language panels and stuff -- they made some fundamentally different choices that lead to building a lot more reliable systems.

I also remember at the time thinking the choices they made doomed the language for general use, because the choices that lead to reliability are almost universally loathed by programmers because they required you to do things properly and people hate that.

ovid, to Cats
@ovid@fosstodon.org avatar

A friend’s mother was an artist and she used to write obituaries for her cats. They are amazing.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • provamag3
  • ethstaker
  • GTA5RPClips
  • modclub
  • tester
  • Leos
  • osvaldo12
  • cisconetworking
  • everett
  • cubers
  • normalnudes
  • anitta
  • megavids
  • lostlight
  • All magazines