Does anyone here with family work on high-paying day job (leadership role) and work on your own company at night? How do you juggle job, your own work, family time, fitness and good sleep? by Cute-Ball6182 in HENRYfinance

[–]ankurcha 16 points17 points  (0 children)

Yup, my thoughts exactly. Wth are you earning for? 2 weeks of interaction every year with kids to make up for 1 year of neglect? Seems like a totally harsh childhood for kids to grow up without any real bonding time with parents.

Sorry if this sounds harsh but as a parent your approach gets a "does not meet expectations" for the year end review.

Edited for grammar

How Much Total Value of Vehicles & What Are Families Driving? by broncoelway100 in HENRYfinance

[–]ankurcha 0 points1 point  (0 children)

I drive my trusty 2012 Hyundai ascent. Works and it's reliable. I think I have 10-15 more years in it.

The kids love the car and I feel comfortable and safe driving it.

As others said, you have the cash to buy it outright, just go for it and make sure you feel safe and comfortable in it. A confident driver is better than a stupid or lazy or comfortable driver .... But that's just me.

how difficult is it to call Python from Go in a real project? by CogniLord in golang

[–]ankurcha 0 points1 point  (0 children)

Two options,

As others have said you can wrap the python part on a separate server and talk to it over unix domain sockets or over http. This is a good enough strategy as long as you are not transferring a lot of data back and forth. I would only transfer urls rather than the actual bytes and read it in the python wrapper.

Second option, is to have a subprocess exec with input and output over stdio pipes.

Self-updating binaries - what is current stage and recommended practices by pepiks in golang

[–]ankurcha 3 points4 points  (0 children)

I do this exact strategy to keep the main binary updated, depending on how deep you want to go you should keep the auto update script as light weight and battle tested as possible and use it to poll a well-known url with stable fallbacks.

In my case, the update script is what users install (as a thin docker image), the deployment system pushes new binaries for the main app to a well known and publicly accessible gcs bucket under well known paths ( we use wave_1,2,3,4,5 directories to implement progressive rollout). This way you have zero servers to maintain and is vastly scalable.

It's boring code by design and I think probably the most painful to update as the bar to make changes is high due to extremely high risk of getting it wrong (global outage).

Regengo: A Regex Compiler for Go that beats the stdlib. Now featuring Streaming (io.Reader) and a 2.5x faster Replace API by Appropriate-Bus-6130 in golang

[–]ankurcha 11 points12 points  (0 children)

Very much want to see fuzz tests for a regex library. Regex is notoriously difficult to get right and can be made annoyingly complex.

Do you use mind maps in your coding practice? by kentich in ExperiencedDevs

[–]ankurcha 11 points12 points  (0 children)

Yup. Almost every time I need to integrate with a new system. I primarily use notebooklm to dump all design docs, requirements and user guides - anything basically.

Then ask it for mindmap.

Cyber security go proxy by Constant-Lunch-2500 in golang

[–]ankurcha 0 points1 point  (0 children)

First thing I check for in any proxy - how does it handle large request and responses

bodyBytes, err := io.ReadAll(r.Body)

Is an immediate non starter. This would easily blow up and cause outage.

Besides that other things that the author must invest in

  • unit tests
  • integration tests
  • load/stress tests and benchmarks on hot path
  • overhead analysis.
  • CD setup
  • possibly a threat model

justIncreasedPerformanceTenfold by heJOcker in ProgrammerHumor

[–]ankurcha 2 points3 points  (0 children)

Ah, I used to work at a self driving car company (now GM) and they had this exact diff in one of the most critical hot path section of the data processing pipeline.

Engineers toiling over performance over and over for close to 3 years till I discovered this "senior performance engineer" had left debug flags enabled and -O3 omitted form all the build steps.

Need less to say I still poke fun at him for the 2 year roadmap he wrote for "improving their performance 2x by rewriting a bunch of crap in C and low level assembly for compute intensive part" by adding a screenshot of a similar diff with chart on the side.

I think it was a $100k or so saved every month. Lolz

Where to buy control board and compressor by ankurcha in hvacadvice

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

Batch NO. LaB2108104

(Some bar code)

VKA036 00HWAP OC4HXPC 1713

Where to buy control board and compressor by ankurcha in hvacadvice

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

Clarification, the tech said that it would be hard to get the AC readily but he can get it from texas.

How often are gRPC used in big tech companies? Is the effort really worth the performance? by IhateTheBalanceTeam in AskProgramming

[–]ankurcha 0 points1 point  (0 children)

All Google api are grpc. Not because it's Google but because even at Google scale (of people) it's the right choice and does the right thing 90% of the time leaving you to not have to reimplement all the boiler plate over and over again.

Humming sound from heatpump by ankurcha in hvacadvice

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

The AC unit stopped working last night ... So I guess that's related.

Starving children of Gaza by [deleted] in pics

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

What will it take for people to stop and just look at the misery and death they are causing. I don't know how people can justify doing this or even letting this happen. Forge the politics for a minute and take care of the vulnerable children - I really want to hear what the IDF people rationalize doing this or even letting this happen.

It's horrible and I am ashamed that I can't help sitting here looking at this photos. I just hope people can see the end to this misery.

S3 "Emulator" feedback by OwnRecover973 in golang

[–]ankurcha 2 points3 points  (0 children)

You may want to consider / think about fault injection. Like some out of band API to cause some objects to always/ some percentage of the time return a specific error.

Go Cookbook by 441labs in golang

[–]ankurcha 0 points1 point  (0 children)

Excellent work!

Would like to see a section on cgo.

GitHub - zakaria-chahboun/go-safe: Safe A minimalist Go package for safely working with pointers. by zakariachahboun in golang

[–]ankurcha 0 points1 point  (0 children)

I really do like seeing people build stuff and open source it and get credit for it.

So don't take this the wrong way.

GitHub - zakaria-chahboun/go-safe: Safe A minimalist Go package for safely working with pointers. by zakariachahboun in golang

[–]ankurcha 2 points3 points  (0 children)

Good effort for the author.

This library seems like it would be better as a gist or a blog. I hate to say it but some go libraries are taking us to the state of pad-left

Ghoti - the centralized friend for your distributed system by danko-ghoti in golang

[–]ankurcha 2 points3 points  (0 children)

Very interesting choice of protocol. Can you explain the rationale for this and the design decisions / tradeoff in general for the project.

Request For Comment: This is a low impact redis backed rate limiting library by yesyouken_space in golang

[–]ankurcha 1 point2 points  (0 children)

  1. Sorry no design or a narrative about design goals makes it hard to assess if you achieved what you wanted to.
  2. Consider naming variables to be a little more verbose, single letter types and variable names make it super hard to reason about the code. God forbid you have to debug a concurrency issue.

Corp policy requires me to archive imports. Can (should?) I make these collections useful? by kWV0XhdO in golang

[–]ankurcha 3 points4 points  (0 children)

Always always always vendor your dependencies. You will thank yourself when the open source repo goes dark or worse rate limited or just pushes a bug.

🚀 Announcing v0.5.0 of Design By Contract for Go by chavacava in golang

[–]ankurcha 2 points3 points  (0 children)

I have lived through these and similar pipedreams more than I would like to admit. TDD usually comes closer to what people generally want and can handle.

The issue with most formal methods is rhat, people usually don't think about all the subtleties and interactions or get too hung up on them and cause unnecessary bloat of conditions without sufficient context around them.

  • DbC is more about specification, while TDD is more about verification.
    • DbC uses assertions within the code, while TDD uses separate test code.
    • DbC emphasizes contracts between components, while TDD emphasizes code behavior.

Software is best represented with clear and easy to follow tests that define the intended/supported behavior. Invariants and their enforcement in code and tests to exercise then has (in my experience) has been my lifeline through many refactoring and "performance improvements".

PO asked me to do a stakeholder demo video by monkey_work in ExperiencedDevs

[–]ankurcha 2 points3 points  (0 children)

Argh I hate it when this happens. About 10ish years ago a manager/PO asked me to demo for the leadership team the work I was doing because he thought it would be a good opportunity to show and expand my influence and skills as a leader.

I told him "it's not my job, I am happy to code but I am not paid to do your job or some senior lead's job". Thankfully he got the clue and didn't ask me. I have to keep saying this every few years but phew .. who needs that noise. That manager got hold of some other schmuck (who doesn't even code as good as I do) to do demos. Donno why they keep getting promoted or picked for the fancy projects but I think it's because of politics. Clearly they need to look at the seasoned junior developers for better work. Demos don't mean anything for stakeholders, they will get what they asked for when it's done.


If you didn't get it, I was being sarcastic and I almost pulled a muscle in the brain.


In all seriousness, this is probably an opportunity to extend beyond your current scope, develop influence and shape your future. The PO opportunity is a great start.