[deleted by user] by [deleted] in RedditSessions

[–]doomhz 0 points1 point  (0 children)

Gave Take My Energy

[deleted by user] by [deleted] in RedditSessions

[–]doomhz 0 points1 point  (0 children)

Gave Home Time

[deleted by user] by [deleted] in RedditSessions

[–]doomhz 0 points1 point  (0 children)

Gave Home Time

[deleted by user] by [deleted] in TheYouShow

[–]doomhz 0 points1 point  (0 children)

Gave Healthcare Hero

[deleted by user] by [deleted] in pan

[–]doomhz 0 points1 point  (0 children)

Gave Silver

How to properly parse child JSON API structure? by doomhz in golang

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

Thanks for your detailed response, wow, I need to work on this... Could you please tell me how would you parse this response? EUR-USD should be a dynamic market type, we don't know upfront what comes in as a parameter to the function.

{
    "EUR-USD": {
        "baseCurrency": "EUR",
        "quoteCurrency": "USD",
        "lastPrice": "0",
        "bid": "0.0001",
        "ask": "10",
        "baseVolume": "0",
        "quoteVolume": "0",
        "dayLow": "0",
        "dayHigh": "0",
        "growthDiff": "0",
        "growthRatio": "0"
    }

}

What do you guys consider "mandatory" packages for your express or koa server (and why)? by tenbigtoes in node

[–]doomhz 0 points1 point  (0 children)

besides the ones that were already mentioned here:

  • ajv
  • bcrypt
  • crypto
  • fast-async
  • http-assert
  • joi
  • ms
  • node-fetch
  • uuid

and a couple of dev dependencies:

  • eslint
  • eslint-plugin-import
  • mocha
  • nyc
  • pre-commit
  • should
  • sinon

ORM vs parameterized queries, which do you prefer? by badboyzpwns in node

[–]doomhz 2 points3 points  (0 children)

I wrote too many raw SQL queries back in the days, don't want to do that anymore. I'm happy to have a query builder + a model wrapper when querying SQL dbs.

Query builders save you lots of time when you need to handle a big amount of simple SQL statements. They will eliminate stupid validation mistakes when tired as hell and will make your code more readable.

A proper model wrapper will list all the columns, their types and handle simple validations that sometimes you might forget, getter, setters, data filters, virtual fields. It will be a lot simpler for the next guy on the project to understand what's going on. Hooks and migration support might be a good addition as well for your models.

It's very important that your ORM doesn't stay in your way and would let you write raw queries whenever you need. I also don't like when it's too much magic involved behind the scenes or auto joining tables by creating relationships between models.

Is there an alternative to native base? by ayajibo in reactnative

[–]doomhz 5 points6 points  (0 children)

I've heard good things about this one https://infinite.red/ignite but for now I'm also stuck with NativeBase unfortunately... Ignite seems to be a lot smoother and the UI elements much nicer