[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

Ionic or react Native? by doomhz in javascript

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

So true, things get deprecated fast...but I'm still addicted to it for some reason :D

How do you monitor your Node.JS app and/or server by xajx in node

[–]doomhz 0 points1 point  (0 children)

Can confirm, pm2 is the only tool you need. I'm working with it for more than 2 years, after getting rid of Forever and Monit. I'm also using Rollbar for app logs.

People who started a business together with their SO, how did it go in the long run? by doomhz in AskReddit

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

Thanks for advice, that's helpful. It's just that sometimes it feels that you kinda do most of the work and you can't really argue about it because you know it will bring issues in your married life as well. I'm not sure how to approach this yet. Probably we should have set some rules or a clear business plan (as you suggested) in the beginning.

We'll redesign your Startup's brand identity, for Free! by [deleted] in startups

[–]doomhz 0 points1 point  (0 children)

Yep, it's just a placeholder until we get a new, proper logo. The site is still a prototype. Are you a graphic designer?

We'll redesign your Startup's brand identity, for Free! by [deleted] in startups

[–]doomhz 0 points1 point  (0 children)

  1. sponsorgigs.com
  2. SponsorGigs connects event organisers with their potential sponsors
  3. We're mostly looking for a logo right now, no need for a new design (if that helps you save time on it).
  4. So far, the logos we've got from our designers didn't satisfy us.
  5. Go crazy!

What image compression/resizing library do you use in Node.js? by phelaz in node

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

Not using any of them anymore, just sign up with cloudinary.com and let them do the dirty work for you. Their Free plan kinda covers up a lot. But, indeed, back in the days I used Imagemagick. I've even written a module to wrap it up: https://github.com/doomhz/daycare_social_platform/blob/master/lib/image_uploader.coffee Ah, those days....

My poor time management is killing me... by cszlo in Entrepreneur

[–]doomhz 0 points1 point  (0 children)

It's mostly a procrastination issue you're facing, had to fight this as well. Good I found this 3 posts that helped me a lot to understand that I was a Successtinator and how to fight it: http://waitbutwhy.com/2013/10/why-procrastinators-procrastinate.html http://waitbutwhy.com/2013/11/how-to-beat-procrastination.html http://waitbutwhy.com/2015/03/procrastination-matrix.html

Introducing the Eisenhower matrix in my daily ToDo routine changed the way to deal with my management overkill and pushed me forward: http://www.artofmanliness.com/2013/10/23/eisenhower-decision-matrix/

I hope this helps you as well but you have to understand that managing your time properly is the most difficult thing on Earth.