This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-03
Channels
- # beginners (446)
- # boot (16)
- # cljs-dev (2)
- # cljsrn (30)
- # clojars (2)
- # clojure (143)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-nl (1)
- # clojure-russia (2)
- # clojure-spec (20)
- # clojure-uk (7)
- # clojurescript (167)
- # code-reviews (1)
- # community-development (12)
- # core-async (27)
- # cursive (3)
- # data-science (9)
- # datascript (2)
- # emacs (1)
- # graphql (46)
- # immutant (5)
- # jobs (2)
- # leiningen (1)
- # luminus (1)
- # lumo (76)
- # off-topic (79)
- # perun (2)
- # protorepl (33)
- # re-frame (21)
- # reagent (62)
- # ring-swagger (1)
- # rum (18)
- # spacemacs (6)
- # specter (4)
- # test-check (4)
- # unrepl (9)
- # untangled (2)
- # vim (4)
- # yada (1)
how should I get the whole path that I should follow to go from source to destination (in latitude and longitude). Any API which would let me do so?
@tasdikrahman Dijkstra, A* and Contraction Hierarchies. See GraphHopper: https://github.com/graphhopper/graphhopper
at which point, should I switch from "develop directly against production db" to "have a production db and a dev db" ?
before starting your project
it's not a good idea to just develop until it's basically working, then worry about prod vs test db ?
develop directly against dev db, and eventually make a prod db
but never develop directly against prod
if you need to be sure that works early on, put dev there too
don't, just make a dev environment on aws
what you shouldn't ever be doing is having a "prod db" that you apply untested code to
okay, so there's dev-rds and prod-rds // even when developing locallhy, I'm ioperating with dev-rds
right - and I like a "staging" for verification too
can you explain what you mean by staging? I'm literarlly going from "building hobby projects" to "oh shit, I'jm taking credit card payments now, so I need to be serious"
you must have a qa env that faithfully mimics prod, but never uses prod data. never go directly from dev to prod; stage to qa first, then promote to prod. so you need at least 3 environments.
treat qa the same way you treat prod. dev is for farting around, trying crazy ideas.
a good qa env will tell you if you've added something in dev that won't fly in prod. you don't want to discover that after you've pushed to prod.
in practice, I'm probably goign to dev on prod, do something stupid, get hit with chargebacks, then decide, okay, time to invest in fixing this
qqq: one vital reason to have a qa staging environment is to test the very process of a "release"
in dev you fart around, do things to the db you might have forgotten etc.
but if you push up to the qa environment and forget the migration, things will fail
that's your reminder to write a proper migration and run it when deploying to prod
qqq: NO! never! treat all prod data as sensitive, never ever let it leak. otoh, you could write some code to xform prod data in a way that is guaranteed to to be immune to disclosure analysis - impossible to recover the original data - but that is not easy.
qqq: it's not just chargebacks, your reputation is not immutable, and it's finite. People leave services and don't come back if they think the devs are just fucking around
@qqq yeah, a snapshot is a good place to start with staging (but without sensitive customer details if such things exist)
if I launch an RDS with Aurora, MySQL, or Postgres, is there an easy way to "copy this prod over to dev" ?
with postgres I honestly usually use pg_dump directly, because I've always used it
I don't have experience with the others
alright, I'm convinced this is not too hard to do, and may be even scriped, i.e. dump prod, restore to dev
I just learned this stuff at work where we had a wiki...
qqq: NO! never! treat all prod data as sensitive, never ever let it leak. otoh, you could write some code to xform prod data in a way that is guaranteed to to be immune to disclosure analysis - impossible to recover the original data - but that is not easy.
it's all schemas. your prod dbs have schemas. use the schemas for qa. esp. now that we have spec generators.
btw, you'd be amazed at what a sophisticated attacker can do with seemingly innocuous data. where i work we have PhDs whose job is to do "disclojure analysis".
though I'm already suspecting, that if you're willing to pay, there are places where you can type in someone's name and it'll dig through gov records to find brand of first car, elementary/middle/highschool attended, list of previous addresses, parent's name, etc ...
@mobileink I've been thinking about this lately (re the spec thing). The problem is that spec doesn't necessarily hold the right proportions that the real data does, or the relationships that is really there.
dominicm: yeah, i haven't looked into it too deeply. would probably work for simple stuff. for more complicated stuff - well, that's a business opportunity, heh.
oh man, wish i had the time! not hard to imagine a spec-based tool like that; everybody would buy it.
@stathissideris is working on https://github.com/stathissideris/spec-provider which does statistical analysis to infer the spec. But I'm not sure it could do occurrence count into the resulting generators.
@mobileink @stathissideris reveals to me that he's got some stats things he's working on, so you can tweak it manually if you feel the need to, and they're put in with comments.
until a website hits 1M dailya ctive users, does the choice of mysql vs postgresql matter ?
Is it more likely, in a clojure shop, for things to be done "right" the first time, or is it just a given in our industry that things are rushed out the door?
I've definitely seen things rushed - but we can get closer to right when rushing than some competitors for sure
I feel maybe I've been doing startups too long. We're re-doing something because it was rushed out the door the first time, and now it seems we're cutting corners and rushing this one also.
@nikki What's that from?