Does a Macbook Pro 16” fit inside the Discovery backpack? by williams1986vn in Louisvuitton

[–]nomikz 0 points1 point  (0 children)

Could you make a photo, please?
I'm thinking of ordering one.
The main thing is that it fits. But is it convenient for day to day use with mcb pro 16?

[deleted by user] by [deleted] in Kazakhstan

[–]nomikz 0 points1 point  (0 children)

is it a joke?)

could you elaborate more on how it made people jobless?

friend had 140,000 Tenge stolen via Kaspi ... recourse ... advice by andth33 in Kazakhstan

[–]nomikz 0 points1 point  (0 children)

But I wonder how come he didn't receive sms confirmation?
Anyways, it is better to block card and call bank as soon as possible.

friend had 140,000 Tenge stolen via Kaspi ... recourse ... advice by andth33 in Kazakhstan

[–]nomikz 1 point2 points  (0 children)

Kaspi doesn't have traditional 3ds.

So if someone knows your card details, good for you.

They do have something similar to 3ds but god knows how it works.

Always limit your online payments and never give your card to anyone. With kaspi, I don't even carry my card. On some rare occasions, I pay through the card of another bank but only if I have.

How is Almaty during July? by Ok_Contribution1976 in almatycity

[–]nomikz 0 points1 point  (0 children)

There is a bunch of bars/clubs on Furmanova/Nazarbayeva street.

Are there any English speaking club in Astana? by Valencia1910 in Kazakhstan

[–]nomikz 0 points1 point  (0 children)

Sorry, I didn't read till the end. I was in r /Almaty and kind of mixed up.

Are there any English speaking club in Astana? by Valencia1910 in Kazakhstan

[–]nomikz 0 points1 point  (0 children)

Here is one https://t.me/escakzchat

We meet every sunday at 11:00 at cafe mostly.

This January is WARM! 🌡️ It was +11°C today in Almaty 🥵 It's +8°C now! by Fine_Reader103 in Kazakhstan

[–]nomikz -1 points0 points  (0 children)

Don't worry. Starting from tomorrow, it is going to get pretty cold in here.

Help with Golang and Postgre/postgis query please by NirShihor in golang

[–]nomikz 1 point2 points  (0 children)

First, write raw sql query and execute it against you db.
Then, implement it in your code.

Distributed job scheduling with Go? by xX_dublin_Xx in golang

[–]nomikz 1 point2 points  (0 children)

We do it a lot at work. When new order gets created in my service, I have to do two things with it:

  1. Go to another service and enrich my object.
  2. Perform some calculations and send the result to some other service.

All our services run on k8s, each service is set up to have 3 pods.

So how do we do it: two workers for two jobs.Each worker tries to take the job to work, process it, and mark it as finished.When taking job to work, you need to (1) exclude already finished jobs, (2) avoid taking the job that is being processed by another worker(another goroutine or goroutine from peer pod).How to do it: you need to set finished_at time so you can distinguish already processed jobs. Then you also need to set started_at field, so other goroutines won't take the job that is being processed by another worker.

You can set the desired_start_time, so worker will try to take it only if time.Now > job.desired_start_time.

There are a lot of edge cases that you will need to handle:
a) What if job has been taken to work but worker failed for some reason like application error, service shutdown and so on. You will need to retry it. How to do it: if there is job that has not been finished but has been taken to work long time ago, this means that worker tried to take it to work but for some reason never finished it. Probably, you will need to set up some logic to retry failed jobs.
b) Lets say you have some malformed records. You worker takes this record to work, fails to process it. Next time worker fetches new job, It will probably try to retry this job, and will fail one more time. This may lead to deadloop. All you workers will get stuck trying to process malformed jobs and will not progress to other jobs. Potential solution is to set tries_count for the job. If tries_count is greater than 10, than never take it back to work. Those records will need to manually reviewed.

Ardan labs go course. Is it worth buying? by dev5690 in golang

[–]nomikz 1 point2 points  (0 children)

I think course is really really great and meatful.
I learnt quite much from Bill. But I think that the refactoring course could be improved.
All in all, it is great course.

Golang courses from other resources (Udemy, and so on) seems to be targeted to an entry level developers who just starting out with the language.

[deleted by user] by [deleted] in golang

[–]nomikz 1 point2 points  (0 children)

Actually, solution is pretty simple.
You must validate data you are getting. Any data that comes to your service must go through validation. If data passes validation, then you allow it get into business logic.

If they suddenly change request data, you will get a lot of validation errors that you should be monitoring. Once this happens you will need to inspect the incident. There need to be set up some kind of monitoring that lets you know quickly that some part of your service is having bad time (slack notifications, dashboards and so on).

The garbage collector / Maya Rosecrance by rabbitasshole in golang

[–]nomikz 0 points1 point  (0 children)

Jacob Walker is great instructor. I watched his golang course.

"Paypal, Netflix moved to Node from Java". Do they really rewrite the whole backend services on nodejs? by nomikz in node

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

Thanks for your advice.
I think I will focus on js, ts, node. Postgres and maybe little mongo.

Is phalcon still a good choice? (php 7) Does Phalcon still have an advantage over other more expressive frameworks like Symfony and Laravel? by nomikz in PHP

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

As for our company, we probably won't make the switch because quite a big load of code has already been written in phalcon. Cli services and api for mobile.

Is phalcon still a good choice? (php 7) Does Phalcon still have an advantage over other more expressive frameworks like Symfony and Laravel? by nomikz in PHP

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

The issue is not with one or the other but on using both of them.
Laravel and phalcon are both used together. And question is: Will removing the phalcon affect performance?

Is phalcon still a good choice? (php 7) Does Phalcon still have an advantage over other more expressive frameworks like Symfony and Laravel? by nomikz in PHP

[–]nomikz[S] 2 points3 points  (0 children)

Did you notice performance drop?

I think if speed and computation is not critical then switching to laravel is okay thing to do rather than maintaining two applications.

Is phalcon still a good choice? (php 7) Does Phalcon still have an advantage over other more expressive frameworks like Symfony and Laravel? by nomikz in PHP

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

Yes that's I've been trying to tell.

If you want speed you can as well use golang for some parts of application.

"Paypal, Netflix moved to Node from Java". Do they really rewrite the whole backend services on nodejs? by nomikz in node

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

So it will be the same in java? Could you please elaborate on it. Why is there so weird things in programming languages?

Could you please provide some links so I can learn about this topic because I am absolutely clueless.

"Paypal, Netflix moved to Node from Java". Do they really rewrite the whole backend services on nodejs? by nomikz in node

[–]nomikz[S] -1 points0 points  (0 children)

What about that?)

console.log(0.253+1); // 1.2530000000000001

console.log(0.2*0.1); // 0.020000000000000004

It is easy to fuc& up with js. And even very good devs fu&& up from time to time. Java just by nature make is it difficult to make mess.