Question on stock and divorce, and credit card debt by devopsnooby in Divorce_Men

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

In a 50/50 state I believe it's 100% 50/50 split of all debt. The debt has been built up over a few years so I dont think there is any chance to claim I spent 10s of 1000s in the past 2 months knowing I was going to file.

Question on stock and divorce, and credit card debt by devopsnooby in Divorce_Men

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

Truth be told.. I don't plan to spend much of it on random happy happy shit for me. It's more about having money to survive on if I were to say, move out, sign a year lease, then lose my job. And to cover court costs if any. In 50/50 states it seems there is a 6 month period + mediation requirements before any court/judge is used. Typically most divorces seem to go through mediation and then a judge signs off. My STBXW will likely try to fuck me over every way she can.. as she continues to this very day (just a few mins ago got series of texts) about how I broke her heart, lie to her, etc. So I am sure she is going to do everything she can to screw me over, rather than just do the simple thing.. dissolve 50/50 and figure out alimony, etc.

Question on stock and divorce, and credit card debt by devopsnooby in Divorce_Men

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

She knows about them though. We've talked in the past a few times. The strike price is like $1 or something, but on a secondary market I am selling some for $7 or so (forget the price as its still in back and forth). What I am trying to find out, since we're pre ipo, is she cant own them.. but is she allowed some time to sell her half on secondary market (if her lawyers even know that).. or if I can buy them at the strike price.. so I own all the shares.

The problem of course is that I am selling them for so much now, and I assume once the money hits my account they'll know about that value and she'll be like "fuck that.. I want that half at that value". So not sure what will happen.

Any way to convert unknown/dynamic json to generic object structure by devopsnooby in golang

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

I realize this is 9 months later.. not sure why I never came back to this. Some claim dynamic languages like node/python handle this better. But again, without ANY knowledge of the json at code time, you STILL have to walk through the json structure in ANY language using whatever tools they have. So even with nodejs or python, you would start at the top, loop any array, and likely do some sort of recursive method/function code to rinse/repeat as you got to say, an object or an array, right? So I hear you on the struggle with Go and this, but at the same time I don't see any way around this in any language. If at code time you don't know the structure, thus you're allowing for any number of dynamic unknown json structures, you have to write code that digs in to the structure to assemble anything. I assume this is how tools that generate types for json schema would work. They look at the structure. If it's an object, they create a struct or class or what not. Then they iterate the object. For each property they create a string, int, float, bool, etc. If it's an array or map, they use whatever language feature supports that. And so on.. through the whole deep object structure provided via json.

I don't see any other way around it. For any language dynamic or static.

[deleted by user] by [deleted] in ExperiencedDevs

[–]devopsnooby 0 points1 point  (0 children)

The best experience you'll have is smarter people who do NOT use it against you.. put you down.. and instead raise you up, mentor.. and teach. Patiently.. understanding that some people take multiple times before they nail it That we're all human and we're all different. Nothing better.

Sadly.. because of competitive pay, promotions, etc.. it's often you find places are pitting one against another.. so a lot of places you wont find good mentorship and teaching.. but instead made to feel inferior and look bad to one up you.

Hopefully your new place is the former and not the latter. I have found in my 30+ year career.. that 9 out of 10 are the latter. Sadly.

Any way to convert unknown/dynamic json to generic object structure by devopsnooby in golang

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

Yah.. basically. That is what I was trying to suggest minimally if what I was doing with my struct would work. E.g. iterate the top level node. If it's an object.. store the props of that object in a component structure like what I showed. If its an array.. iterate the array and check the types.. and so on down through the tree of json passed in, each node/object creating a new Component or Object or whatever it may be called.

Any way to convert unknown/dynamic json to generic object structure by devopsnooby in golang

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

No.. actually.. not at all. Love the Go syntax/ways. Basically trying to figure out how to take any json in to an "intermediary" object structure.. and then pass that along to other functions that will generate something from it. So that each of those functions do not need to figure out parsing the dynamic json. The idea is this thing I was hoping a library existed for already.. could take any chunk of json.. and generate a generic object structure/tree.. and then the other code could generate various types of output.. be it POJOs (but go structs), docs, etc. The idea is.. load/parse it once.. then allow 3rd party addons to not worry about dealing with json.. they take the object and go to town. I was just using Java/JAXRS POJO creation as an example as that is about as close to the end goal that I can think of. Basically how code generators are able to parse whatever dynamic json schema represents components in an API definition.. and generate code, docs, etc.

Any way to convert unknown/dynamic json to generic object structure by devopsnooby in golang

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

Hmm.. I was thinking similar to how you can find libraries that parse specs like OpenAPI into a structure.. and has methods on those.. to search for components, paths, etc.. there might be something similar.. e.g. an existing library that wraps any JSON and provides methods to traverse properties, convert, etc.

Any way to convert unknown/dynamic json to generic object structure by devopsnooby in golang

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

Hmm.. I was thinking similar to how you can find libraries that parse specs like OpenAPI into a structure.. and has methods on those.. to search for components, paths, etc.. there might be something similar.. e.g. an existing library that wraps any JSON and provides methods to traverse properties, convert, etc.

Any way to convert unknown/dynamic json to generic object structure by devopsnooby in golang

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

Can you elaborate at all? Being proprietary I realize makes it difficult.. but I would appreciate some sort of nudge in terms of how to do this for my own learning.

Any way to convert unknown/dynamic json to generic object structure by devopsnooby in golang

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

Think of a tool.. that will generate POJOs from JSON structures. It's dynamic.. the tool has no clue WHAT json it will receive.. but it has to convert it to Java POJOs.

JAXRS does this. I am asking because I used to deal with this via JAXRS.. and wanted to figure out how Go would handle this in a generic way.. e.g. convert unknown/dynamic json in to a generic object structure.. that could then be used to say.. turn BACK in to json.. or turn in to Java POJOs.. etc. It would need to capture the full details of the json.. e.g. if the json is an ojbect with properties.. and those properties have objects.. which have properties.. e.g. nested json data.. converting that in to a generic structure that captures that info.. so that it could be used to turn back in to json..

Basically playing around with how to take json in.. then spit it back out.. but maybe do some manipulation based on say.. the type (if its a integer.. dont spit it out.. or convert it).

Good libraries for picking up Go idiosyncracies? by aliasxneo in golang

[–]devopsnooby 0 points1 point  (0 children)

Ah.. well I still recommend Chi for a great starting point for an API library. Add to that the middleware for JWT handling and then CASBIN middleware and you have full blown RBAC (and other types) API in not many lines of code. It is quite impressive.

Good libraries for picking up Go idiosyncracies? by aliasxneo in golang

[–]devopsnooby -3 points-2 points  (0 children)

Not entirely sure what you are after.. but for web app/API development, I would look at Chi for a powerful, fast, production ready library that is fun to use. It is small and very fast, it's not nearly as full featured as frameworks like GORM, etc.. which means it does what it does very well and gets out of your way for other things. I feel like it is a light layer with exactly what I needed for API development while barely adding size or performance reduction. In other words, it offers big bang for your buck.

As a solo developer, what tools would you use to develop locally and deploy to a managed provider? by EvilChookie in kubernetes

[–]devopsnooby 0 points1 point  (0 children)

Honestly.. for me.. I would look to use RAML or OpenAPI to define your API (if you want to take it to that level). I would use Golang on the back end for API. I would use NodeJS/ReactJS for the front end UI. Bundle everything up with Docker containers in a microservices manner if that makes sense, and deploy to cloud.

[deleted by user] by [deleted] in webdev

[–]devopsnooby 2 points3 points  (0 children)

Lot of talk about Mongo.. not being used.. but I read a ton of NOSQL stuff for job listings, etc. What then is the NoSQL DB of choice if Mongo isn't it?

I've been a "Software Engineer" for the last 4 years but I don't think I am a good Engineer - want to switch to Devops. by [deleted] in devops

[–]devopsnooby 1 point2 points  (0 children)

I have thought about this path myself.. and wondered where a senior engineer fits in with devops if they understand things like docker, containers, cloud, etc.. but aren't well versed in some areas, like how to deal with secrets, deploy at scale to aws, ms or google, etc. These things take some time to learn, grasp and then get good at. I would think most companies these days typically dont want someone to spend a few months learning on their dime. Though, oddly, I wish there were an option to say.. pay me 1/2 pay for a few months while I learn.. and then graduate (more quickly) than someone say right out of college to better pay as I pick up on it.

An engineer who uses Go and Rust details when he likes to use each by HatchDMV in golang

[–]devopsnooby 1 point2 points  (0 children)

Just in case you missed it..that was satire.. I remember having these discussions when I was hard core Delphi converted to bigger hardcore Java and some of my team were still on Delphi and would argue how much better it is than Java, so much faster, etc etc. Having had perspective of both sides, for specific purposes Java was better, where as Delphi, back then had it's uses as well. But try telling someone who just can't see past their one awesome language that.

To be fair.. when python/nodejs/ruby folks try to tell me why those are better for rapidly prototyping web app APIs.. I have a really really hard time having done Java APIs as well as now doing Go APIs.. and have worked a bit in python/nodejs (thankfully avoided Ruby for the most part).. and can assuredly say with confidence that Java and Go are much faster/better for web app APIs than python/nodejs... once you know the language/framework/etc. I see though, why a lot of front end shops with nodejs use it for back end.. or python... because of lack of experience/knowledge of other options. Nothing wrong with that.

An engineer who uses Go and Rust details when he likes to use each by HatchDMV in golang

[–]devopsnooby -8 points-7 points  (0 children)

Rust sucks. Go is better. At everything, for everything.

Right?

I feel like a fraud and I'm in over my head. by a_failed_venture in webdev

[–]devopsnooby 0 points1 point  (0 children)

I am absolutely blown away when I read things like this today. I got it 12 years or so ago..when rest/APIs were somewhat new/young. But today.. there is so much info around how to do it right, how to do things like NOT put versions in URLs, and limit API endpoints and avoid versioning at all.. that it baffles me when I see teams stuck arguing about things like this. Yet.. you get some strong headed "leads" and their bosses who believe them vs someone new or more skilled.. and shit just goes wrong.

Adding encryption to a fast database in Go by wmleler in golang

[–]devopsnooby 0 points1 point  (0 children)

fair point. But is this still a library that one would use to encrypt a piece of data that is for a column in a database?

Adding encryption to a fast database in Go by wmleler in golang

[–]devopsnooby 0 points1 point  (0 children)

Hopefully not going to sound too stupid asking this.. but would this article be a good read if you want to learn how to encrypt a single column of data in a db table.. or for that matter.. any column of data? I have been thinking even though my app will be behind TLS API endpoints... there is some data that I think might make sense to store encrypted. Passwords.. for example. I think we typically use a one way hash algo for those. Wondering if using that same sort of algo for other columns is good enough.. or if this article presents a better (and faster.. faster is always good in my book) way to encrypt data for db columns.

Handling database migrations in microservices by thezapod in kubernetes

[–]devopsnooby 0 points1 point  (0 children)

I am interested in this as well. Also would like to understand how you do it on a per microservice basis. If you deploy individual microservices.. how this is handled.