#dev-general
1 messages · Page 503 of 1
smh
would it just be initialised when it is assigned in this case?
ah nope, the compiler makes sure you initialize it before use
i am big brain
ah so its just a compiler warning
Yeah it is
intellij weird
Not a warning I think, it shouldnt compile
is it bad I got so many commits ready to be pushed that IntelliJ won't load them all?
uhhhhhhhhh so it just gives random values?
No?
It returns the value you want it to return
but isn't that just the assertEquals or whatever its called?
You can mock factors you cant control in this way
i mean, if a certain Support member fixed these bugs at first, it wouldn't be a issue 
No, assertEquals is to validate that 2 things are equal
Its an "assertion"
The test should fail if our "assertion" is false
Just so you dont get confused, you ussually dont mock your own objects
rather external things
like connections
uh
stdlib stuff
the usual
So in your case, you would mock JDA classes depending on your test
dont
xD
English
I couldn't use the letters twice
theusol?
😦
theusol
@compact perch
uh

bm
fer·nan·do pó·ov
wanna fix the bugs
The content on the paper looks accurate when it comes to "characteristics", and the edits on the wording make it sound nicer.
I can not think of something I would like to edit, especially because the wording is something I struggle myself. I think the paper looks really good.
Good job, and thank you.
The content on the paper looks accurate when it comes to "characteristics", and the edits on the wording make it sound nicer.
I can not think of something I would like to edit, especially because the wording is something I struggle myself. I think the paper looks really good.
Good job, and thank you.
god

😌
Why do those look like some horny artist made them?

Probably for that reason
lol
u don't want to see the others. well you won't see them anyways bcz they're NSFW but god they're bad
There's always the dkim den
lol
omg yes. going to spam them there xD
bm i got a bug for you
dkimhub™️
xdkim
PrivateMines.getEconomy().depositPlayer(Bukkit.getOfflinePlayer(owner), tax);
How to make sure it's not null?
static??
You wrote this
Doubt
oh got em
how to check
git blame
so much faster than jitpack 😌
Even if I did, it should only be used when DI isn't possible
Oh dw i sent that one because i think its the same author
oh xD
dw about it
dw about it bm 😉
oh lmaoo
nvm then
I didn't even notice
to many servers
how many dens are there
idk. I have a couch
I want a den
lmao
yikerinos
EXTFREMELY funny
SPIT IT OUT
the so called "dependency injection lover" USES STATIC
DOUBT
iirc it was citizens which calls the constructor for you
can't exactly do DI there HUH!!!
explain
I'm legit scared to push this commit because of the size
oh im guessing this? so they would construct the Trait classes for u?
oh boy. its almost working
Anyone wanna refractor that method?
smh imagine having 20 commits per day
I feel like pushing all this commits lol
GGGGGGGGGGGGGGGGGGGGGGGGGGGg
what were u saying again?
you are all BIASED against ME
how
VENDETTA
bm, I'm having to fix your bugs tbh.
good
idk man sounds like u can use dependency injection, without using ur "excuse"
asserting dominance
oh
anyone wanna help with a feature
i just need to load the Materials from a list and set them in the mine
so apparently in order to test, i have to include implementation 'org.junit.jupiter:junit-jupiter:5.7.2', i thought it was testImplementation?
because i don't want it shaded in my jar
but it shows a warning if i use testImplementation
what warning?
then if i use the fix it automatically adds the implementation
dependencies: ```gradle
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
what module is the warning from?
uh
wait a minute
im just pressing the create test button
¯_(ツ)_/¯
also should i create another package for test?
like if i have me.dkim19375.skywars
should i make it me.dkim19375.skywars.test
testing should be in src/test/LANGUAGE
and thats where the testImplementation dependencies will be directed to afaik
Set the test task to use junit
uhhhhhhhh how do i do that?
oh
i think i did already
test {
useJUnitPlatform()
}
right?
Yeah
alr
which one?
oh wait nvm
public actual typealias Test = org.junit.jupiter.api.Test :p
Only one is annotation lol
but...
¯\_(ツ)_/¯
lmao
Your test classes should match the package of the classes they're testing
so if i have me.dkim19375.skywars.util.SomeUtil, the test package should be the same?
Yea
alr
anyone here have a mac with safari that could show me what my site looks like?
@ me
Whats your coverage?
coverage?
Yes, test coverage
uhh idk what that is
There should be a button at top right to run and show you your coverage
What is the result?
lmao
D:
Well there you go, now you know what to write tests for
everything is part of JDA lib
it should highlight untested code in red
AAAAAA
as I said, use a mocking framework
Analyse -> Coverage -> Hide I think
Lemme check
ah alright
lol i have 16 tests for a single class with 2 methods that need testing lmao
anyone ever found out why Buster deleted his Disc account?
Did you check the example I gave you earlier?
yes

lmao yugi u need some sleep
PowerMockito works with classgeneration
But you generally dont have to worry about the implementation
It creates a Mock proxy for that type
Then you tell it what to do when we call certain functions on that mock object
how do you tell it what to do though
final URL mockUrl = PowerMockito.mock(URL.class);
PowerMockito.when(mockUrl.openConnection()).thenReturn(httpURLConnection);
PowerMockito.when(mockUrl.getProtocol()).thenReturn("HTTP");
OH
Mockito itself is similar but only uses child classes so you cant use it on final classes
PowerMockito tranforms your code itself with its testrunner so you can mock final classes as well
i dread to think how that's implemented
lol
Lots of bytecode manip 😷
🥶
Hey how do you make it so that you have to follow a format to post something in request free and request paid?
I want that for my server
do you code?
it is a custom bot
if you don't know how, you can request it in either #837974313491496980 or #837974312451440661
since i doubt a bot exists specifically for that
maybe Carl and some other bot works
since it allows for custom scripts
I tried carl
🙂
smh
oh for every time dkim deleted a message
im just very confused
apparently val users = listOf<User>() gives an NPE too?
okay now val str = "a" also gives an NPE
i dont think its the code thats wrong
welp now a blank line gives an NPE
❓
i think ur getting an NPE
good morning
Imagine getting NPE, can't relate
imagine complaining about errors on a specific line with specific scenarios without actually sharing any code
[34211.040s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
🙄
how do I do this: method(SomeClass<Other>::class.java)?
it throws an error - Only classes are allowed on the left hand side of a class literal
and if I remove <Other> it puts SomeClass<*> instead
Needs more context
PowerMockito.java: java public static synchronized <T> T mock(Class<T> type) { return DefaultMockCreator.mock(type, false, false, null, null, (Method[]) null); } my code: ```kt
val strList: List<String> = mock(List<String>::class.java)
There isnt a class for a generic dkim, java generics are compile time constructs
oh
Use a raw list and cast it to the generic type you need
val strList: List<String> = mock(List::class.java) as List<String>
iirc
Yes, just suppress it
wat
Generics is just a social construct!
any downside of @org.powermock.core.classloader.annotations.PrepareEverythingForTest?
vs PrepareForTest(Class<?>[])
xD
I would assume second is better. Specify the classes you want to mock
alr
More importantly WHY are you mocking a list lmao
What are you trying to mock, Dkim?
True xD
-.-
🤢
I've never played CoC, is it any good?
no
I play clash Royale
nah its fun for a while tbh
and I barely play clash royale, I'm like tier 5
F
i much prefer coc over royale
Obvious
CR is so P2W
Arena 3 full legendary cards, aham
gaby ur a grinder 😳
Made 4m today :)) and 40k dark
I hate p2w games
uve perfectly timed all ur builders with ur resources
xD
disappointed with crystal league tho 🙄
ye its a good league for farming ig
haha
looks like uve just got cannons and walls until max th10?
Yeah and heroes
Meh, 140k
but 500k is 👌
I have 10m elixir on that thing where a part of the loot lost from def is stored :))
pog I reached lv 200 today
grats
rookie numbers :)
You know what's worse? Pressing the up key to increase the volume while the bar is "selected"
right arrow does same thing matt xd
they do 10 second skips arrows are 5 sec
Wanna know whats worse? You thinking 15% is fine and your laptop auto turning off on hitting 14% in between your finals
oh no, 5 seconds of my life wasted
🥲
F
what also annoys me is when i have to mute discord during a video, i have my mute hotkey on numpad 5 so whenever i go to press it, it skips like half of the video ☹️
What I meant was the other way Kali, up/down increase/decrease volume, left/right to navigate on the video
But if you have the volume selected left/right will change volume instead
And if you have the timeline selected up/down will change the timeline instead
@ocean quartz tldr; youtube sucks
yea lets use vimeo
Go to sleep
no
or if ur ever in school and the teacher uses a truetube video 🥲
Past your bed time
hey 12am is not late
got a problem with that?
Thats what we ... use
Was just asking cuz you live in the US, dont you?
no lol
lol wtf
xD
go to sleep gaby 🙂
Where are you from lol
You first
Nah im going to sleep soon
@obtuse gale
espania iirc
the 4th shittiest shithole to ever exist, Argentina
whats the 1st, 2nd and 3rd
At least you dont speek not-spanish @ocean quartz
Uk, us, us
gn
oui
Tbh don't recommend
north korea, sudan, syria 🤨
Sure
Antartica, Antartica, Antartica
Antarctica* 🙂
🥲
Ha we win against you guys on that!
Brazil on top 🇧🇷
F
No
what
How you get tests
uh
i put in build.gradle
i put classes src/test/kotlin (or java) folder
then run gradle clean test
Weird
?
Sounds like a scam tbh
Sounds like it's gonna steal my IQ.
❓
Yes.
anyways, i've written 338 lines of code for tests 😎
Only 338?
yes, i just started using it a few hours ago
and was afk for a few hours
so barely started
Why afk
.... irl things
Imagine having irl things to do
:p
I ban allowance of it.
Coverage now dkim?
Idk what I'm doing anymore. Don't you?
You realise you dont have to delete/edit each and every message right
You always have to edit the message lol
Dude, I don't know how people have got such high levels
woohoo, i went up 2% total...
lol
lol
Do they like only talk during boosts or what
Nitro. Months on months of nitro
ive only had one month tho
I'm gonna run an ai to talk during the night
I think that'll get crazy amounts of xp and I'll get to bms level
Yay I get banned
Im talking about in general, not you specifically
no probably not
thats like talking about 2x longer
which isn't really that much
I don't know how bm has got to such a high level in a short amount of time
I know he talks alot and there's xp boosters but it's just crazy
Circlejerk + nitro is quite op
he just has staff color now D:
Circlejerk?
rip yellow role
basically
haskell good
blah blah
blahh
5 months later
haskell bad
I might help bm out one last time.
Wring
want proof?
Haskell always good
Please leave.
Ya'll should use Kotlin
Thanks.
Sorry, I can't hear you through the nitro boost role yugi
SMH
Haskell is shit
he BETRAYED you
ok
Lmao
Haskell will go faster than kotlin and kotlin will come back
I can't wait for kotlin to come back as it should
.
I betrayed simon
okay
For a few minutes
hmmm
I don't even know what to do anymore
only open this spoiler if you want to die: || ```hs
import Data.Char
llIlIlIIlIllIll :: String -> IO ()
llIlIlIIlIllIll llIIllIIIlIIllI = putStrLn $ lIlIlllIlIlIlll llIIllIIIlIIllI
main = do {
lIlIIIlIIlIIIlI;
}
lIlIIIlIIlIIIlI :: IO ()
lIlIIIlIIlIIIlI = do
llIlIlIIlIllIll . lIIIlllIIIIlIll $ llllIlllIlIIlll lIlIllIllIlIIll
lIlIllIllIlIIll :: [String]
lIlIllIllIlIIll = lIlIlllIIIlllll "ghi" (-6)
lIIIlllIIIIlIll :: [String] -> String
lIIIlllIIIIlIll = head . tail
lIlIIlIlIIIIIlI :: [String] -> [String]
lIlIIlIlIIIIIlI lIIlIllllIIllll = filter (lIIllIIllIIlIll) lIIlIllllIIllll
lIlIlllIlIlIlll :: String -> String
lIlIlllIlIlIlll lIlIIIlIIIIIIII = filter (llllllIlllIIIII) lIlIIIlIIIIIIII
llllllIlllIIIII :: Char -> Bool
llllllIlllIIIII lIIlIIIlllIIlll = lIIlIIIlllIIlll /= '''
llllIlllIlIIlll :: [String] -> [String]
llllIlllIlIIlll llIlllllIIlIIIl = lIlIIlIlIIIIIlI $ fmap (\lIIlllIlIIllIll -> lIIlllIlIIllIll) llIlllllIIlIIIl
lIIllIIllIIlIll :: String -> Bool
lIIllIIllIIlIll _ = True
lIlIlllIIIlllll :: String -> Int -> [String]
lIlIlllIIIlllll lIlIIlllllIIlIl llIllIlIIllllIl = (\llIlllIIIlIIlIl -> show $ chr $ ord llIlllIIIlIIlIl + llIllIlIIllllIl) <$> lIlIIlllllIIlIl
ok
||
😌
I need to hire people to get a project don ASAP but I don't know any trustworthy people also nice png bardy
Oh wait it's not a png LOL
im not trustworthy 💔
Whats the pay?
I was waiting for it to be a png but it wasn't
Depending on quality and speed it can be good
Define good
It's a nice amount :)
👀
I am competing against a big server. So I have to have a big budget.
How big is the question?
The competitor is 3000 players
500?
I mean, I gotta get things done ASAP
I have seen people say big and go "ill pay you later" or "100$? Thats too much"
I will be banned if I did that.
Not really
That's called scamming if you don't pay, so I'll be banned.
But I need to get a custom rank system and enchant system made ASAP.
Im talking about deciding on the pay
ah then i've gotten scammed a couple times 🥲
I don't know who's able to help because I need it done ASAP
All you say is that you need it asap but no information lol
^
I need an enchant plugin made
And I need my rankup system fixed
Because, I'm trying to make it so the player can rankup and they get different blocks at different ranks.
budget?
You must have at least a range you're willing to pay lol
I mean, I don't wanna pay a crazy amount but I mean I know it's gonna cost.
btw matt, any luck with that checksum?
How much do you think it'll cost, matt?
Haven't had the chance yet today yet Yugi, i'll definitely do before I go to bed
ah alrighty
Idk, depends on how complex you want it and how many enchantments
I mean, I don't think it'll be many maybe 4 - 5 or so. And they'd likely be simple to make. I got the src for one already.
Idk, probably like 100-150
I wish I was good enough at coding to be able to make enchants by myself :/
Because now I gotta pay up maybe 150 to get them made
So I have to have a big budget.
^ now, you see what I meant
Take your time and learn ig?
I mean, I need them make soonish
🤷
I know bm has a resource for making the enchantmanager and util
can someone help me i have no idea what im doing im using autocode and im trying to make a simukar feature to the request free and request paid
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
Also #development
nobody cares if i reveal my public pgp key right
cause that wouldl just be verification by the public
right
mhm
would it be pointless to create a test to simulate commands?
well maybe "pointless" isn't good to describe it
maybe "worth it, seeing how much time it might take"
Since I really like how Ktor handles its modules and features I decided to try implementing a similar system for plugins, just an idea right now, nothing working yet, just thought it'd be cool
Ooo nice
Hey Matt, can you make that really easy to add support for more platforms please? :)
That looks really cool though btw

I regret I made that one
It has become an enemy
Like Jesus it’s so passively aggressive
thats whats great about it
@onyx loom you might like what's happening soon. idk.
how long has papermc repo been down for
im tryna work on stuff at school with an empty local repo
they made an announcement 4hs ago
couldn't be maven central 😎
i mean u can always download the "server" jar
it's not the api... but the only difference would probably just be its annotations missing and docs
Lol someone in the ThreeJS discord server just offered me freelancer work for an actual company, due to my #showcase. I had never touched Three once in my life before :p
🤣
it does look cool tbh
it's down 
Wow
Doesn't look down to me
so dissapointing
always down
this kid is literally using reflection to work with packets and not use the spigot artifact
hes using jdgui too look up the packets instead of linking it to his ide
wtf
where's that
spigot discord
explains enough about them 🙂
Wouldn't happen in the Dev den discord
nothing happens in dev den
the dkim den?
whats dkim den
nothing
got it
what
it's like really active for a server with 280 people
inv to dev den
Probably alts.
i must see the hype from it
bm, you can't post it
dkim den > dev den
Oh I can
APACHE
WHAT
LOL
LMAO
I never installed apache wtf
🧢
well you have Apache
So I guess something installed it once and it overwrote /var/www
lol
does anyone know why my pods are restarting over and over ?
PS C:\Users\Zdziszkee> kubectl get pods
NAME READY STATUS RESTARTS AGE
faction-server 1/2 CrashLoopBackOff 6 8m23s
redis-5d7f6d5855-df7c2 1/1 Running 0 15m
supervisor-f86bcb796-vvl22 0/1 CrashLoopBackOff 5 11m
PS C:\Users\Zdziszkee> kubectl logs supervisor-f86bcb796-vvl22 --previous
2021-05-26 11:53:56,237 main WARN Advanced terminal features are not available in this environment
[11:53:57 INFO]: Booting up Velocity 1.1.5...
[11:53:57 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 1.1.x (Linux x86_64) ciphers
[11:53:57 WARN]: Player info forwarding is disabled! All players will appear to be connecting from the proxy and will have offline-mode UUIDs.
[11:53:57 INFO]: Loading plugins...
[11:53:57 INFO]: Loaded plugin supervisor-plugin 1.0.0 by Zdziszkee
[11:53:57 INFO]: Loaded 1 plugins
[11:53:57 INFO]: Listening on /0.0.0.0:25565
[11:53:57 INFO]: Done (1.47s)!
Killed
yes in kubernetes
??
where did u get ur server from mr brister mitten
Kubernetes 👀
lel
I am messing with it
he doesn't know how to setup a server 
what
yeah some hosts install apache by default
trying to setup network
what discord?
with kubernetes + agones plugin
And everything else works so it's definitely routing through nginx
Apache default page 
well
👀
funny
cubefunny
i mean that page looks cool you should look
square^2funny
yes we've seen it before
does anyone here have any experience with kubernetes ?
what did you want?
wat
thats not how that works lmao
it is
smh

masked links
that's definitely not how it works
oh no, the square himself
yes but you coded that
u can't make a site force redirect
you can
you're right
that you dont set up
evidently not

just buy my plugin
lmao you haven't even linked it
(and probably no)
advertising 🚨
advertising ez ban
speaking of little know secrets
is it premium
pls ban me
lol
https://config.helpch.at/ is where its at
yep
wait what's that
mainly a tool for staff
default configs
but anyone can use it
https://config.helpch.at/autosell default autosell config for example
we can edit it??
saveDefaultConfig().com
oh
don't you trust us to edit it globally?
wrong emoji
or find something quickly
staff cant edit it globally either
i might make another dev app 
did yours get denied?
no
then why another?
to give funnycube work
you don't have the Dev role tho 
making another wont get u accepted any quicker
cube doesn't review them afaik, it's pig lemmo and matt
i didn't get denied
ooh speaking of
i only submitted 2
cube reviews js apps 🌚 (idk)
Z?
@quiet depot can I join Dev role review team now I am staff pretty please
first time i was 90% there
new bot?
correct
I didn't get accepted either 🥲
or maybe they have just haven't reviewed idk.
but #developer-chat 
yes if you do plz accept me thanks
pretty please 🥲
no me
https://helpch.at/bots/<a-z>arry.png
huh
woah
Is that dynamic?
capitals
capital first letter
https://helpch.at/bots/<arry.png
broke
not dynamic
cube made them all
huh
by hand iirc
gonna use these for spigot plugin logos 😎
yeah no
who's cube
for it
=spin
F
for an april fools a while back we were gonna have all these bots talking to each other using our stored messages in the db
Press F to pay respects

I see
that would be extremely interesting
some dodgy conversations about to be happening 👀
WOAH
COOL
Is the content of literally every message saved?
yes bm
wow
what's bm's first message
🥲
but we can just leave helpchat
funny barry and garry don't work
wonder why
bUt My DaTa PriVaCy
but we can't leave google
Asking in #general-plugins about autosell api lmao
make them work ._.
I want to be able to type in them
everything we store for an individual, was accessible by that individual in this discord at, at least one point in time

lmfao
🤨
who said i have a home
your residence
🤨
regardless of whether it's a cardboard box
who said i have an address
😌
coordinates
live tracking
i gotta fix bugs 
oh thats what that helicopter above my house for the past 2 months is
Holy shit pig ily
I'm just gonna keep this as admin-blackmail /s
OH
Re-configuring satellite orientation axis
gets money out to pay someone
oh no, kick Barry quick.
3 admins are online
thats impossible
wtf
Now
waffle king is never online
thats never happened before
ping them all
@everyone
The 'everyone' mention is disabled so you can't annoy people.
we have to ping all admins
why is waffle king online
someone wants to die
3 admins = 3 points for the gps 
dev apps?
yes
👁️
omg
who's getting denied first
me
if i use haskell will u accept me
ACCEPT ME
Okay
speed run any%
lmao
lol
if i use haskell will u accept me
Lol
I use haskell accept me
blitz has an ongoing app, just deny that quick time
If the Haskell is good then yes
I'll use Kotlin if I get accepted 🙃
easier to get admin and give yourself the role
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
now gimme dev role :))
lol
fred why u have to do that to me D:
ban fred
ban fred
Funny I got a question
yo
wait how'd you know it was me?
lower down but they still help
😏 i know everything
That's instant Dev role
=badege 
lol
Rip
good typing
=badge 
😮 GIMME
there's an honourary helpful badge
I've helped more than bm and i don't have helpful
wat
I even nitro boost, bm doesn't do that
pig wouldn't let me take bm's helpful role
lol
WHAT
@Piggy explain Yourself
I was boosting for like a year 🥲
just take it and give to me
support isn't a replacement for helpful
helpful is a role that's earnt
will you accept me
no reason to remove it
then whyd u remove frostys helpful role 😭
no idea why we have helpful
I helped plenty of people
Why not
cube? why
It's a win win, even if you don't get accepted you get a free code review
code roast*
code review
@pallid gale because it's an honorary role
then apply
i need a honorary role
uh oh
how about banned



