|
gonadic io posted:A contains our view of the world based on user actions, and B gets populated daily by csvs from banks. It's quite important that we check each day that we haven't lost any customer's money, the FCA are sticklers about that. you should eliminate B and have the transactions from the banks loaded into A. the transactions from the banks and the users should look identical aside from type/source data.
|
# ? Apr 27, 2016 15:03 |
|
|
# ? May 23, 2024 18:42 |
|
Shaggar posted:you should eliminate B and have the transactions from the banks loaded into A. the transactions from the banks and the users should look identical aside from type/source data. assuming A is the production database that makes you money, don't do this. you want to be backing up/streaming A to a non-production analytics database where you are also uploading the fca junk. run your batch queries against that.
|
# ? Apr 27, 2016 15:28 |
|
if the stuff coming from the banks is transactional data that affects users need to see then it belongs in A.
|
# ? Apr 27, 2016 15:34 |
|
they said the result of this is an (internal?) email that comes out of a batch operation, which guessing from the release of the fca data happens daily.
|
# ? Apr 27, 2016 15:44 |
|
Users see data from A, which we maintain as the user clicks "buy this" or whatever. We just need to investigate if the bank either has information we don't have or vice versa. This goes out internally. The worst part is that these two dbs are actually on the same server but it's a different one to the one that the services are on. Having B be the only system that cares about individual banks and present a unified view is really nice and A is already big enough without putting all of that poo poo in. Microservices!!1
|
# ? Apr 27, 2016 16:10 |
|
Shaggar posted:also in vs 15 you can generate rest clients from swagger. goddamn swagger is good at this poo poo. swagger was right
|
# ? Apr 27, 2016 16:23 |
|
Looking at swagger right now... never heard of this... is it a viable replacement for Enterprise Library's Web Service Software Factory? Because if so, I need to inform some former co-workers.
|
# ? Apr 27, 2016 17:36 |
|
swagger is really 2 things. 1 is a standard for rest service definitions. basically a wsdl for rest. 2 is a basic client that can grab that service definition file and generate a test client for all the endpoints. if you're using webapi like you're supposed to you can install swashbuckle from nuget and it will automatically generate the swagger definition from your services including documentation from xmldoc.
|
# ? Apr 27, 2016 17:42 |
|
Why is swagger better/different from WADL?
|
# ? Apr 27, 2016 18:22 |
|
Shaggar posted:there is json schema now, but its external so you basically have to know what schema you want to enforce because you cant read it from the file. its supported in vs 2015+. also maybe 2013. Is that the Azure API Apps Tools for Visual Studio? I've been using Swagger for a year and its all in bits and pieces, Google even takes pieces in their pretty nice API Explorer dev site.
|
# ? Apr 27, 2016 18:28 |
|
more like dICK posted:Why is swagger better/different from WADL? they're functionally similar but swagger has wider adoption. that's about it. MrMoo posted:Is that the Azure API Apps Tools for Visual Studio? yeah looks like it. ive never used it but that looks the same. I wonder if they're going to put whatever generates the API definition for azure into webapi in asp.net core cause afaik its not in asp.net 4.6 (which is why you have to use swashbuckle).
|
# ? Apr 27, 2016 19:00 |
|
okay ada is starting to make some sense to me i guess subtypes seem very powerful! you can define an integer type with bounds and then subtypes of it with more stringent bounds code:
code:
|
# ? Apr 28, 2016 04:00 |
|
does that mean that it will implicitly coerce to those as needed?
|
# ? Apr 28, 2016 06:36 |
|
Bloody posted:i wish json had a schema so i could generate all of my types from it There's an f# thing which generates types from json samples
|
# ? Apr 28, 2016 07:13 |
|
pointsofdata posted:There's an f# thing which generates types from json samples f# type providers are one of those things that i've always wanted to have an excuse to use
|
# ? Apr 28, 2016 07:38 |
|
pointsofdata posted:There's an f# thing which generates types from json samples ooooh interesting! I've wanted to futz with f# but last time I tried I had no idea what the functional was going on but since then I learned me a haskell so maybe now it's easy
|
# ? Apr 28, 2016 12:25 |
|
Bloody posted:ooooh interesting! I've wanted to futz with f# but last time I tried I had no idea what the functional was going on but since then I learned me a haskell so maybe now it's easy once you get used to the syntax it'll be fine. no type classes, no records in ADTs (iirc you either have ADTs with no named fields, or record structs which don't have options), and it's generally strict except when you start using IEnumerate or whatever
|
# ? Apr 28, 2016 12:48 |
|
Corla Plankun posted:does that mean that it will implicitly coerce to those as needed? yes, you can pass a parent type to a function that expects a subtype and it will error out if it doesn't fit the constraint.
|
# ? Apr 28, 2016 13:14 |
|
oh hey https://hackage.haskell.org/package/json-autotype
|
# ? Apr 28, 2016 13:50 |
|
I like that it statically produces hs source files, I was having horrified visions of template haskell automatically producing these types at compile time which would be impossible to debug
|
# ? Apr 28, 2016 14:04 |
|
Luigi Thirty posted:
this is bothering me, not sure why also can you do suits as another subtype?
|
# ? Apr 28, 2016 14:07 |
|
also I totally forgot about this thread, I have 100 pages to catch up, did I miss anything special?
|
# ? Apr 28, 2016 14:09 |
|
Symbolic Butt posted:also I totally forgot about this thread, I have 100 pages to catch up, did I miss anything special? Shaggar shaggering Terrible programmers programming terribly Bloody learned haskell Maybe some people got some programming help?
|
# ? Apr 28, 2016 14:12 |
|
gonadic io posted:Shaggar shaggering #3 happened so #4 definitely happened
|
# ? Apr 28, 2016 14:21 |
|
Symbolic Butt posted:this is bothering me, not sure why things are 1-indexed in Ada I could declare another set of 4 subtypes that correspond to each group of 13 cards, create a function that takes a Card, checks which suit subtype it is and returns a letter to write to my display buffer. the object is always a Card, but it can also be one or more subtypes.
|
# ? Apr 28, 2016 14:24 |
|
i think i have a reason to use go
|
# ? Apr 28, 2016 14:25 |
|
sorry for your loss
|
# ? Apr 28, 2016 14:38 |
|
MALE SHOEGAZE posted:i think i have a reason to use go maybe you should go out of this thread lmao
|
# ? Apr 28, 2016 14:40 |
|
gonadic io posted:Shaggar shaggering Speaking of #4 haven't seen HoboMan in a while... hopefully he is okay and didn't commit seppuku via asp/vbscript
|
# ? Apr 28, 2016 15:21 |
|
This database has a column foreign keyed with itself. What? PS: Has anyone here had to model/map a DB they aren't familiar with? I would appreciate any sage advice I could get. PPS: no, not dead PPPs: on #4 I did, in fact, read a book HoboMan fucked around with this message at 15:46 on Apr 28, 2016 |
# ? Apr 28, 2016 15:38 |
|
Eve Online's data export has a column keyed to itself in a table of item groups so queries can get the parent group from the child group
|
# ? Apr 28, 2016 15:46 |
|
It's a pretty reasonable thing to do if you need to represent a tree structure in your database.
|
# ? Apr 28, 2016 15:51 |
|
no but like there's not a separate fk column in this table. the fk is the pk and vice versa. i can't think of a way this is useful. i am not happy about this assignment. i want to talk to our dba about what i think are problems, but i've been asked to do this to let management know how much of a fuckup our dba is so i don't think i'm supposed to. i don't know how long they've been working here but i do know this db was originally made in ms access by a support tech from some other nosql db software we have so i'd like to cut our dba some slack, but it looks like literally the only fk in the entire database is that one column which is also it's pk and half these tables don't even have pks. HoboMan fucked around with this message at 16:20 on Apr 28, 2016 |
# ? Apr 28, 2016 16:15 |
|
most dbas are fuckups
|
# ? Apr 28, 2016 17:24 |
|
HoboMan posted:no but like there's not a separate fk column in this table. the fk is the pk and vice versa. i can't think of a way this is useful. Oh good, nothing like letting political bullshit dictate how a project should be implemented. gently caress everything about that. If it were me, I'd tell whoever said the point of this project is to point out how a dba sucks, to go gently caress themselves because I'm not going to let their inability to deal with confrontation despoil my software. It is ~dishonorable~ and he should be ashamed. THEN, I would go ask the dba what the deal is with this fk constraint. Maybe he has a reason. Maybe it was a typo. I don't give a poo poo whose fault it is, I just want to move forward and solve the problem. Also, just to be a dick, I'd tell the dba that so-and-so is looking for reasons to fire him. The purity of the software is the highest ideal and cockamamie bullshit from the moochers should not be allowed to cheapen and degrade the quality of software. Call me a software objectivist. #nopolitics
|
# ? Apr 28, 2016 17:34 |
|
MALE SHOEGAZE posted:i think i have a reason to use go I had a reason for a bit but then it was solved by using Kafka to do the job instead
|
# ? Apr 28, 2016 17:36 |
|
http://www.wfplsiu.com/
|
# ? Apr 28, 2016 17:41 |
|
i'm trying to kill myself, but i can't find a way that's supported by all browsers #webdev
|
# ? Apr 28, 2016 19:50 |
HoboMan posted:i'm trying to kill myself, but i can't find a way that's supported by all browsers
|
|
# ? Apr 28, 2016 19:54 |
|
|
# ? May 23, 2024 18:42 |
|
Anyone here have much experience using jrebel? Especially with non standard java ee project setups
|
# ? Apr 28, 2016 21:25 |