|
anthonypants posted:oracle made the loving operator a plus sign???
|
# ? Oct 6, 2016 20:36 |
|
|
# ? May 11, 2024 16:37 |
|
LeftistMuslimObama posted:so if i can access object properties like this: obj[1]=10,obj["gently caress you"]=420 arrays and objects are different, you can just address them with the same syntax if you want. hell, in swift you can write [] style accessors for arbitrary classes.
|
# ? Oct 6, 2016 20:36 |
|
NihilCredo posted:check the function's signature Help me out I'm obv missing something (my brain is about done for the day)
|
# ? Oct 6, 2016 20:41 |
|
dick traceroute posted:I have pondered this one quite a bit. Best explanation we've been able to come up with is he didn't know about nullable columns at the time. but nullable is the default for a column
|
# ? Oct 6, 2016 21:10 |
|
Finster Dexter posted:Help me out I'm obv missing something (my brain is about done for the day) it doesn't take in a string like "H". it takes in a whole data row and implicitly looks for a field named "Priority"
|
# ? Oct 6, 2016 21:26 |
|
JewKiller 3000 posted:but nullable is the default for a column Is it? I haven't had the need to create a table yet. Maybe his plan was to get around oracle null weirdness?
|
# ? Oct 6, 2016 21:38 |
|
so trying to publish to test in vs2015 is failing with no error message
|
# ? Oct 6, 2016 21:38 |
|
dick traceroute posted:Is it? I haven't had the need to create a table yet. Maybe his plan was to get around oracle null weirdness? yeah if you want otherwise you have to declare the column as NOT NULL. oracle treats '' as NULL but there is nothing weird about oracle NULL in numeric columns, it works the same as any SQL database. you do have to remember to treat NULL specially because it doesn't = anything (not even itself), but if you introduce a sentinel value like -999999 you have to remember to handle that specially too... idgi. i guess i should have learned by now that the best strategy when dealing with oracle is not to ask too many questions lest you go insane
|
# ? Oct 6, 2016 21:41 |
|
bloody, have you looked at "v3s"? verilog/vhdl for visual studio there's some fpga group on linkedin that's been spammed with it, sounds horrid to me but idk
|
# ? Oct 6, 2016 21:44 |
|
LeftistMuslimObama posted:so if i can access object properties like this: obj[1]=10,obj["gently caress you"]=420 its javascript, everything is just a hashmap. arrays? hashmaps. objects? still hashmaps.
|
# ? Oct 6, 2016 22:05 |
|
HoboMan posted:so trying to publish to test in vs2015 is failing with no error message Check all your output windows in VS. specifically, the Build output. Does it say "Web App was published successfully"? Finster Dexter fucked around with this message at 22:09 on Oct 6, 2016 |
# ? Oct 6, 2016 22:07 |
|
leftist heap posted:arrays and objects are different, you can just address them with the same syntax if you want. right, but how? both just behave like key-value stores so why use arrays over objects or objects over arrays for any given purpose? quote:hell, in swift you can write [] style accessors for arbitrary classes. you can do that in c# too, but in javascript's case i'm not seeing any distinctions between array and object at all really.
|
# ? Oct 6, 2016 22:08 |
|
JawnV6 posted:bloody, have you looked at "v3s"? i have not but that sounds questionable
|
# ? Oct 6, 2016 22:09 |
|
JewKiller 3000 posted:yeah if you want otherwise you have to declare the column as NOT NULL. oracle treats '' as NULL but there is nothing weird about oracle NULL in numeric columns, it works the same as any SQL database. you do have to remember to treat NULL specially because it doesn't = anything (not even itself), but if you introduce a sentinel value like -999999 you have to remember to handle that specially too... idgi. i guess i should have learned by now that the best strategy when dealing with oracle is not to ask too many questions lest you go insane What's worse is the triggers we have that add changes(insert /update /delete) to 'lists' that then get passed to 'mutation prevention ' packages...
|
# ? Oct 6, 2016 22:09 |
|
dick traceroute posted:'mutation prevention ' packages... so are those intended to make sure you don't get mutants infesting your db or what? i mean, i can think of another interpretation, but i'd imagine if you need that level of control and integrity on your db you're gonna have some form of audit anyhow to make sure someone hasn't added a few millions to their bank account or whatever it is you do, and that's probably a better solution than just preventing writes or rolling them back based on whatever a mutation prevention package does
|
# ? Oct 6, 2016 22:23 |
|
LeftistMuslimObama posted:right, but how? both just behave like key-value stores so why use arrays over objects or objects over arrays for any given purpose? Objects -> when you have heterogeneous properties (i.e., every other time).
|
# ? Oct 6, 2016 22:29 |
|
LeftistMuslimObama posted:right, but how? both just behave like key-value stores so why use arrays over objects or objects over arrays for any given purpose? Arrays come with a bunch of methods that do stuff with them. Otherwise yeah they are just "objects aka maps from string to whatever." I guess they read a little better if you are doing array kinda things. fun fact arr[420] === arr["420"] because all object access coerces to string. Meaning you can do dumb crap like code:
|
# ? Oct 6, 2016 22:32 |
|
Finster Dexter posted:Check all your output windows in VS. [...] 3>Publishing folder Service References/SoapServices360... 3>Publishing folder Webinars... 3>Publish failed. 3> ========== Build: 2 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== ========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
|
# ? Oct 6, 2016 22:37 |
|
HoboMan posted:[...] you might be able to see more detail if you change the Build Output Verbosity in options
|
# ? Oct 6, 2016 22:39 |
|
Zaxxon posted:Arrays come with a bunch of methods that do stuff with them. Otherwise yeah they are just "objects aka maps from string to whatever." I guess they read a little better if you are doing array kinda things. yeah, i just got to the part with stuff like array.forEach .every, and so on. i guess it's a useful syntax instead of writing a foreach loop over my object each time, but holy god does defining every function by just assigning it to a variable skeeve me out .
|
# ? Oct 6, 2016 22:45 |
|
oh psyche, our trainers just decided to introduce the concept of declaring a function after 20 exercises involving using array functions that take functions as arguments, and they use the var poo = function .... style in all of the examples in the array section. assholes.
|
# ? Oct 6, 2016 22:48 |
|
LeftistMuslimObama posted:yeah, i just got to the part with stuff like array.forEach .every, and so on. i guess it's a useful syntax instead of writing a foreach loop over my object each time, but holy god does defining every function by just assigning it to a variable skeeve me out . It's useful to treat functions as first-class entities in programming. You can assign functions to variables in c#, and I do it all the time. In javascript, you also don't have to define functions by assigning them to variables, but the current trend seems to be to assign functions to object properties as a de facto namespace. Although, I think ES6 might have honest to god namespaces, so who even knows what the accepted norm is anymore.
|
# ? Oct 6, 2016 22:49 |
|
in JavaScript, var f = function() { ... } is the only way I ever do it, it's not so much that functions as first-class variables as there is no other way to get a function that I can see. doing function foo() { ... } is basically the same thing except with strange hoisting behaviour which I would rather avoid where possible
|
# ? Oct 6, 2016 23:07 |
|
I like hoisting so that declaration order doesn't matter
|
# ? Oct 6, 2016 23:15 |
|
type script rewrites your declarations into function variables tho. lame
|
# ? Oct 6, 2016 23:16 |
|
LeftistMuslimObama posted:oh psyche, our trainers just decided to introduce the concept of declaring a function after 20 exercises involving using array functions that take functions as arguments, and they use the var poo = function .... style in all of the examples in the array section. assholes. you would think they would inline that poo poo.
|
# ? Oct 6, 2016 23:29 |
|
gonadic io posted:this one is your fault to be fair well, they're offshore but i speak to them twice a week and they've been working on something else in that 2 weeks, so maybe what they did was just like one afternoon's work idk. it was full of mvc boilerplate layout poo poo though which is worrying. Though in fairness to actually do the download i had to update a library to return extra data alongside a byte stream which there was no way they would have known because they're too new to even know that the .dll library is an internal wrapper round a 3rd party service
|
# ? Oct 7, 2016 00:01 |
|
AWWNAW posted:you might be able to see more detail if you change the Build Output Verbosity in options that's on max verbosity already
|
# ? Oct 7, 2016 01:37 |
|
Deep Dish Fuckfest posted:that's not really autoincrement's fault, though? it just means you've got a poorly designed schema, and are exposing a poorly designed interface to your data. all other things being equal, sure, nipping this sort of mis-use in the bud is nice but it seems to me like it's a symptom of a bigger problem yes yes i am sure this never happens oh wait it happens all the goddam time because you fuckers use autoincrement
|
# ? Oct 7, 2016 02:39 |
|
it won't be a problem *every database record is enumerated* i can't see why this would backfire *slowly moves from 32 bit ids to 64, no 53 bit ids, then strings* this is fine
|
# ? Oct 7, 2016 02:40 |
|
no but you see tef i have high enough write load that i need a sequential page layout for writes but no, not a high enough write load that i need to shard, what are you saying tef
|
# ? Oct 7, 2016 02:43 |
|
*builds a foot gun* no you see, the problem is that people are bad at shooting *straps it to foot* some people use the wrong ammo
|
# ? Oct 7, 2016 02:44 |
|
sharting
|
# ? Oct 7, 2016 02:50 |
|
we use uuids for user-facing identifiers but still use 64-bit autoincrement for the real ids because gently caress it.
|
# ? Oct 7, 2016 02:54 |
|
I don't use databases. I use entirely in-memory data structures that I serialize to/from flat files at program launch and periodically throughout the application's lifetime
|
# ? Oct 7, 2016 02:57 |
|
CRIP EATIN BREAD posted:we use uuids for user-facing identifiers but still use 64-bit autoincrement for the real ids because gently caress it. fine by me
|
# ? Oct 7, 2016 02:59 |
|
Bloody posted:I don't use databases. I use entirely in-memory data structures that I serialize to/from flat files at program launch and periodically throughout the application's lifetime this but it is bootstrapped from some ad-hoc replication protocols onto dozens if not hundreds of nodes so that you have data locality at all times
|
# ? Oct 7, 2016 03:02 |
|
MononcQc posted:this but it is bootstrapped from some ad-hoc replication protocols onto dozens if not hundreds of nodes so that you have data locality at all times same but i can perform transactions that are strongly consistent between hosts.
|
# ? Oct 7, 2016 03:17 |
|
MononcQc posted:this but it is bootstrapped from some ad-hoc replication protocols onto dozens if not hundreds of nodes so that you have data locality at all times
|
# ? Oct 7, 2016 03:39 |
|
|
# ? May 11, 2024 16:37 |
|
tef posted:*builds a foot gun*
|
# ? Oct 7, 2016 03:48 |