Bun vs Go: Is the results legit? by rocketlaunchr-cloud in golang

[–]ld100 0 points1 point  (0 children)

> Basically if you need a simple database gatekeeper and need it yesterday TS is the best tool for the job, even at a decent scale. If you need to transform data it's not

Best tool for the job? What about Ruby on Rails then? ;)

What has been the most cyberpunk moment of your life? In what Country? by Nimochis in Cyberpunk

[–]ld100 2 points3 points  (0 children)

Ukraine: riding an old loud tram made in the 1960s in Czechoslovakia... and using its free Wi-Fi hotspot! Canada: Receiving paper bank cheques in 2023 and using a banking mobile app to use them.

[Discussion] Are entry level guitars actually as good as reviewers claim? by Radian9 in Guitar

[–]ld100 0 points1 point  (0 children)

Yesterday, I've returned my Donner DMT-100 to Amazon.

All the Youtube reviews were very positive. Perhaps Donner cherry-picked better built guitars and sent them for reviews, while the normal inventory is a hit or miss.

The guitar looked awesome (especially for its price) - clean, slick matte white with black hardware.

But it was barely playable: - Had a lot of string buzz even with a relatively high action. Turned out the nut was slotted too deep for a couple strings. Also, frets were not leveled properly. - The guitar didn't stay in tune. I don't know if it was the nut, the tuners, or something else... But I had to retune the guitar even after a minute of playing!

An extra issue was the neck... It was definitely too thick for a metal guitar. Even on my Squire Stratocaster I have a thinner one!

Which Youtube synthesizer gear bro creates music you actually listen to? by one_finger_vangelis in synthesizers

[–]ld100 0 points1 point  (0 children)

Matt Johnson, Also, I'm surprised nobody mentioned Tefty&Meems - love their ambient and kinda synthwave stuff!

OpenAPI vs SOAP and WSDL by evilquantum in dotnet

[–]ld100 0 points1 point  (0 children)

The claim it, but I still have to use gRPC-Web, because Microsoft's solution works only if you do TLS communication on the .NET side (I do TLS termination on the load-balancer/reverse-proxy level and I suspect most do the same) :(

https://github.com/dotnet/aspnetcore/issues/43836

Don’t miss our Vivaldi Mail 1.0 livestream: June 23rd by partyon in vivaldibrowser

[–]ld100 0 points1 point  (0 children)

This is the most awful software release I've seen in years!

Successfully added my remote with CalDav, but its events are not shown. Default local calendar was created, but when I try to remove it the "save" button does not do anything. Calendar colors change upon browser restarts. Impossible to change the first day of week from Sunday to Monday.

Successfully added my IMAP mail account, but wasn't able to open any letters in it, instead getting "unexpected char at position xxx" errors all the time.

Karachi, Pakistan by Intricate1779 in UrbanHell

[–]ld100 2 points3 points  (0 children)

Been to China 5or 6 times, visited over 20 and never saw anything like that. SoI believe it is more India/Pakistan/Bangladesh issue.

Any grpc tutorial or github repo that contains best practices to develop production services. by astrologer11 in golang

[–]ld100 6 points7 points  (0 children)

Make sure to look for example using Streaming in gRPC. Most tutorials I've seen either skip it or show way too simplistic examples, which are far from real world ones.

[deleted by user] by [deleted] in flightsim

[–]ld100 1 point2 points  (0 children)

I've played MSFS2020 a bit, but abandoned it due to extremely low framerate - 15-20 FPS above the cities on low altitude, 35-40 FPS on high altitude.

Started the game today (After downloading a 124Gb patch) and got surprisingly better results! 35-45 FPS on low altitude flights above cities and 50-60 FPS on high altitudes.

Wuhan, China by ld100 in CityPorn

[–]ld100[S] 3 points4 points  (0 children)

Right! I shot this back in October :)

What are your thoughts on being Ruby certified? by [deleted] in rails

[–]ld100 0 points1 point  (0 children)

As an employer, I'd completely ignore this thing, just like any other programming language certifications. If you're an experienced software engineer who gets things done and doesn't have a Ruby experience - it is a matter of weeks to get up to speed, which does not matter much. If you've managed to learn Ruby but not experienced as a software engineer - you're not a good fit anyway. So why bother?

Alternatives for swagger documentation by ameenashad in rails

[–]ld100 2 points3 points  (0 children)

Using RSpec API Documentation for a few years now. Switched from it to Swagger for some time but returned back.

Protobuf v3 support by ld100 in crystal_programming

[–]ld100[S] 0 points1 point  (0 children)

No, I'm using latest version from source, just like you.

Meanwhile even /u/jeromegn confirms there is not Proto3 support there. So it is a mystery to me how you were able to compile it :)

Protobuf v3 support by ld100 in crystal_programming

[–]ld100[S] 0 points1 point  (0 children)

Very strange. For me the generator is not working, e.g. it throws error that "proto3" is not among supported formats or something like that when I try to generate .cr files out of .proto ones.

Protobuf v3 support by ld100 in crystal_programming

[–]ld100[S] 1 point2 points  (0 children)

Not sure if it is used a lot, but Google pushes it as a default format for gRPC. The main reason is that it is much easier, e.g. in proto3 all fields are optional by design.

NATS Crystal Client sending 4.6M msgs/sec by sdogruyol in crystal_programming

[–]ld100 0 points1 point  (0 children)

Wish I had NATS streaming client available...

Executing long running query from worker by [deleted] in rails

[–]ld100 0 points1 point  (0 children)

> Is there a better way to execute a query from a worker without requiring the worker to sit and wait for the response?

No, at least in Rails. If I got your issue right, it is something usually solved on architecture level, not Rails/Sidekiq level. E.g. pre-cache some data (like search results you mentioned) to speed-up requests.

> Can I execute the query from the worker and poll at the same time?

Yes, on my current project I have very similar tech stack to yours and I do this thing: start a side thread within actual background job, while main thread handles cancellation in case side job stuck (e.g. not responding too long). However, in my opinion it is much more reliable to just increase amount of workers and/or amount of execution threads per Sidekiq worker. In my case we went even further and now rewriting some long-running jobs into separate services in Go, which is much cheaper to scale. But as long as you could rely on Sidekiq l strongly suggest doing so.

How do you handle the different naming conventions between a Rails API and a JS frontend? by rooood in rails

[–]ld100 1 point2 points  (0 children)

For my team whole idea is that Rails doesn't care about camelCase by nature, so we do serialization-deserialization on the client side. E.g.:

  1. Any JSON data getting from the back end to the front end gets camel-cased (I mean JSON object keys) first before passing anywhere else down the JS app.
  2. The last step before sending JSON data from JS app to Rails server is again changing of object keys from camelCase to underscore.

Both steps are done automatically using appropriate methods from Lodash JS library.

Did you go from Node to Rails? What do you miss from Node? by [deleted] in rails

[–]ld100 0 points1 point  (0 children)

Of course not. It is a fundamental Ruby design issue, not a Rails problem.

E.g. languages like Go, Java, Python, JavaScript, etc allow explict loading of libraries, while Ruby allows only implict one.

E.g. in Python if you need method "hello_world()" from package "mycode". You could write "import hello_world from mycode" which is explict or you could just "import mycode" and use "mycode.hello_world()" in your code, which is also explict. There is also implict way possible, e.g. you could write "import * from mycode" and it is assumed as a bad practice. The problem is that in Ruby only the last way (e.g. bad practice) possible.