|
FamDav posted:Collections.singleton(T t) will infer T based on the return value of the method hth the point at issue is that the type of the collection is deliberately different from the parameter type (presumably to conform to some imperfectly-defined interface)
|
# ? Sep 6, 2017 04:17 |
|
|
# ? May 26, 2024 00:46 |
|
the java lambda types actually make a lot of sense, you just have to *gasp* actually read the types. also the documentation. two things that programmers never want to do
|
# ? Sep 6, 2017 04:26 |
|
cis autodrag posted:in that example you don't want t though, you want s. it's returning the foo wrapped in a bar inside a bar collection that has one member. Can you do: code:
|
# ? Sep 6, 2017 04:46 |
|
CPColin posted:Can you do: jesus, was it not clear i wrote it that way just to show how the <> syntax works? the foo is a private member of a class that is used as a foo everywhere else but needs to be given to some other thing as a bar.
|
# ? Sep 6, 2017 04:53 |
|
cis autodrag posted:in that example you don't want t though, you want s. it's returning the foo wrapped in a bar inside a bar collection that has one member. You still shouldn't need to specify the type parameter explicitly, see https://ideone.com/DBO6ee code:
|
# ? Sep 6, 2017 05:13 |
|
cis autodrag posted:jesus, was it not clear i wrote it that way just to show how the <> syntax works? the foo is a private member of a class that is used as a foo everywhere else but needs to be given to some other thing as a bar. No, it wasn't clear. And you didn't answer my question. vv
|
# ? Sep 6, 2017 05:21 |
|
FamDav posted:You still shouldn't need to specify the type parameter explicitly, see https://ideone.com/DBO6ee i mean i guess but thats not the way the framework works and i thought the <> thing was neat. way to be a spoilsport.
|
# ? Sep 6, 2017 05:30 |
|
I hit people at work who do: return (List<Foo>) Collections.EMPTY_LIST; instead of return Collections.emptyList();
|
# ? Sep 6, 2017 14:49 |
|
FamDav posted:You still shouldn't need to specify the type parameter explicitly, see https://ideone.com/DBO6ee I want to say this raises a compiler warning if Bar is an explicitly typed generic (e.g. Bar<Baz>) because of type erasure poo poo, but it might have been fixed as part of Java 8's type inference rules.
|
# ? Sep 6, 2017 15:19 |
i found a solution to a compliated mongodb query 1) pull raw mongo 2) janitor response in R
|
|
# ? Sep 6, 2017 17:01 |
|
cinci zoo sniper posted:i found a solution to a compliated mongodb query ftfy
|
# ? Sep 6, 2017 17:12 |
|
lmao a system at work let's users define filters by letting them type in arbitrary SQL and I bet it's not remotely sanitised before insertion hope they never need to filter on 'drop tables
|
# ? Sep 6, 2017 18:10 |
yeh that's the longcon, but i need to do work on mongo now and getting everything out takes time
|
|
# ? Sep 6, 2017 18:15 |
|
C# code:
|
# ? Sep 6, 2017 18:34 |
|
MononcQc posted:has mysql stopped silently truncating text that did not fit the input type? tbh, yes, strict mode is the default from mysql 5.7, and in 8 they will even default to their stupidly named utf8mb4 but i would still default to postgresql unless i had a really good reason not to (the reason is usually called "not rewriting all the code")
|
# ? Sep 6, 2017 19:39 |
|
mysql drools postgres rules
|
# ? Sep 7, 2017 08:54 |
|
today i am going to try and convince my company to move our data to postgres from mongo i hope this works
|
# ? Sep 7, 2017 13:17 |
MALE SHOEGAZE posted:today i am going to try and convince my company to move our data to postgres from mongo i hope this works good luck
|
|
# ? Sep 7, 2017 13:46 |
|
MALE SHOEGAZE posted:today i am going to try and convince my company to move our data to postgres from mongo i hope this works mongo sounds like an ethnic slur from a ya dystopia
|
# ? Sep 7, 2017 14:00 |
|
ultravoices posted:mongo sounds like an ethnic slur from current day England
|
# ? Sep 7, 2017 14:32 |
|
MALE SHOEGAZE posted:today i am going to try and convince my company to move our data to postgres from mongo i hope this works godspeed
|
# ? Sep 7, 2017 14:43 |
|
some mongo guy asked me how to do sharding on postgres like mongo but the biggest dataset he has ever dealt with was less that 250mb. "how will we scale if you can't shard?"
|
# ? Sep 7, 2017 14:44 |
|
JavaScript code:
|
# ? Sep 7, 2017 14:53 |
|
ultravoices posted:mongo sounds like an ethnic slur from a ya dystopia it's a reference to a racist film from the 70s
|
# ? Sep 7, 2017 15:27 |
|
ctps:git diff --stats posted:48 files changed, 2733 insertions(+), 2625 deletions(-) Time to make a commit I guess
|
# ? Sep 7, 2017 15:50 |
|
keep a big "wip" commit on the tip of your topic branch, reset HEAD^ and break chunks out of it as the need arises. don't use stash. definitely don't get to the point where you have a stash stack.
|
# ? Sep 7, 2017 15:57 |
|
akadajet posted:it's a reference to a racist film from the 70s
|
# ? Sep 7, 2017 15:58 |
|
Sapozhnik posted:keep a big "wip" commit on the tip of your topic branch, reset HEAD^ and break chunks out of it as the need arises. Agreed, I keep my stashing to when I need to change branches/synchronize with upstream. Also, this is still going to be one big commit, but I cleaned up what gets committed a bit: new git diff posted:61 files changed, 319 insertions(+), 182 deletions(-)
|
# ? Sep 7, 2017 16:29 |
|
MALE SHOEGAZE posted:today i am going to try and convince my company to move our data to postgres from mongo i hope this works oh man I hope this goes well for you CRIP EATIN BREAD posted:"how will we scale if you can't shart?"
|
# ? Sep 7, 2017 17:47 |
|
CRIP EATIN BREAD posted:some mongo guy asked me how to do sharding on postgres like mongo but the biggest dataset he has ever dealt with was less that 250mb. would a second DIMM count as a shard
|
# ? Sep 7, 2017 17:51 |
|
I'm using dynamodb for simple storage of some basic data and holy poo poo NoSQL is the worst. how can anyone deal with this garbage?
|
# ? Sep 7, 2017 18:00 |
|
Shaggar posted:I'm using dynamodb for simple storage of some basic data and holy poo poo NoSQL is the worst. how can anyone deal with this garbage? badly and/or with alcohol
|
# ? Sep 7, 2017 18:12 |
https://www.jetbrains.com/rider/ jetbrains net ide is here
|
|
# ? Sep 7, 2017 18:18 |
|
Shaggar posted:I'm using dynamodb for simple storage of some basic data and holy poo poo NoSQL is the worst. how can anyone deal with this garbage? crying
|
# ? Sep 7, 2017 18:25 |
|
i've got a weird problem here with C the reference to the jaguar's vram is code:
code:
code:
code:
|
# ? Sep 7, 2017 18:53 |
|
Shaggar posted:I'm using dynamodb for simple storage of some basic data and holy poo poo NoSQL is the worst. how can anyone deal with this garbage? i only use it for very basic key/value store with expiration. it's not bad then.
|
# ? Sep 7, 2017 19:33 |
|
cinci zoo sniper posted:https://www.jetbrains.com/rider/ jetbrains net ide is here 2017.1 doesnt even support .net core 2.0, gotta get the EAP for it jetbrains still owns, tho
|
# ? Sep 7, 2017 19:49 |
|
Shaggar posted:I'm using dynamodb for simple storage of some basic data and holy poo poo NoSQL is the worst. how can anyone deal with this garbage? very well if it suits your needs. do you need multi-key transactions, and if so why aren't you using something like aurora?
|
# ? Sep 7, 2017 20:07 |
|
my idea of "simple storage of some basic data [that isn't worth the effort of a sqlite db]" is a folder full of objects serialized to individual files. the api is really good
|
# ? Sep 7, 2017 20:08 |
|
|
# ? May 26, 2024 00:46 |
|
FamDav posted:very well if it suits your needs. do you need multi-key transactions, and if so why aren't you using something like aurora? I just need something to store like 5 columns worth of data in a reliable, shared way and I didn't want to spin up a sql server for it.
|
# ? Sep 7, 2017 20:19 |