Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-06-08 00:00:00Z and 2020-06-09 00:00:00Z
Avatar
look at this amazing antiping
🍑 1
Avatar
I think i have simmilar shit
Avatar
anyone got experience with java development and package management?
Avatar
@heinrich5991 do u have problems with maven or gradle?
Avatar
I'm starting a java project for university
13:31
I'm not experienced with java dependency management
13:31
it seems that gradle is the way to go, according to multiple sources
Avatar
if u have to decide between one, gradle is faster
13:31
maven is just xml
13:31
gradle is like a lang on its own
Avatar
so maven is faster?
13:32
(is it a typo up there or not?)
Avatar
gradle is faster
Avatar
okay
Avatar
what you want to know exactly?
Avatar
what I should use. gradle apparently
13:32
it looked okay on a second build of my hello world application, took 1s
13:33
the first build took 1m30s though, but I guess that's not something I have to do often
Avatar
first build does some stuff like downloading stuff and so i think
Avatar
General data-binding package for Jackson (2.x): works on streaming API (core) implementation(s) - FasterXML/jackson-databind
Avatar
well depends on what you do i guess
Avatar
do you know how I can add this?
13:34
(if it's quick, I guess I'll also be able to figure it out myself, given time)
Avatar
implementation 'com.jwebmp.jackson.core:jackson-databind:0.66.0.1'
13:35
most projects are on these things
13:35
i guess they are like cdn for java projects
13:35
repostories
13:35
thats the word i meant
13:36
Choose dependency snippet: Maven | Gradle | Ivy
13:36
it shwos how to use it in these 3
Avatar
yup, thanks, that helps
Avatar
@heinrich5991 sry that is outdated
13:37
this one is updated
13:37
you jsuty google jackson-databind gradle
13:37
should work for most libs
Avatar
k, thanks 🙂
13:38
this is the last version
13:38
xd
13:38
sry
Avatar
Java is an interesting language regarding dependencies, it's trivial to use, it's not overspimplified like some, but it can get pretty darn slow
Avatar
am I downloading binaries or source btw?
13:42
what's the default java indentation? (tabs/spaces?)
Avatar
You are downloading source
13:43
Well you can also get a binary one I think
Avatar
i think u get the binary
Avatar
Idk which is default but maven can do both
Avatar
on idea ide you have to download sources by demand
13:44
you can download javadocs too
13:46
I am using Gradle 2.0. What should I write in build.gradle so that the javadocs and sources are also downloaded along with the jars?
13:47
gradle 2.0 is old xd
Avatar
nice, I can parse json now
13:48
thanks @Ryozuki
Avatar
Yep, the default is binary
Avatar
any idea about the spaces/tabs thing in java?
Avatar
im sure its tabs
Avatar
Does it really matter? I'd just use whatever I'm used to regardless of the language
Avatar
Google: 2 spaces (android is 4 spaces, and 8 for line wraps) Twitter: 2 or 4 spaces (for line wraps) Mozilla: 4 spaces Java: 4 spaces, tabs must be set at 8 spaces. Both are acceptable.
13:49
xd
Avatar
source?
Avatar
i dont think it matters
13:49
What are the most interesting highlights in popular Java code styles? A comparison between Google, Twitter, Mozilla, and the Java standard
13:49
its like c++
13:49
u can choose
13:49
mozilla best
Avatar
Java is parsed C-like, the whitespaces are not really important to the parser/lexer
13:50
seems the most normal
13:50
tabs and at 8 spaces seems like a waste
Avatar
yes, but someitmes there's some standard for projects in xyz anyway
13:50
e.g. I saw most java projects use { on the same line, so I'm going to do that
13:50
dont use allman in java
Avatar
Except for html, I always use tabs to indent spaces to align so people can view it at whatever indent they like
Avatar
nobody does that
Avatar
I do that too, in teeworlds 😉
13:51
@Ryozuki "no one does that"
Avatar
Modifications to the Minecraft base files to assist in compatibility between mods. - MinecraftForge/MinecraftForge
13:51
look at this big project
13:51
as a good reference
13:52
ok they use allman
13:52
rip me
Avatar
I think I always have my { on a new line for functions and class declarations
Avatar
Maybe I should migrate to spaces for indents aswell
Avatar
@heinrich5991 a fun way to learn java is to do stuff for minecraft
13:53
i did some plugins for https://www.spigotmc.org/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
13:53
and for forge
13:53
its fun
Avatar
There was a guy on ##java trying to get Java14 compatible with Java8 so he can avoid having to port minecraft mods
Avatar
Rewrote like a third of the JVM before giving up 😄
Avatar
im waiting for minecraft to get out of java 8
13:55
xdd
13:55
java 14 is the next lts right?
13:55
I think I'm using Java 11 for most everything just because mac doesn't like having multiple JDKs...
13:55
yay apple
Avatar
arch supportsm ultiple jdk with a simple script
13:56
archlinux-java
Avatar
even debian supports it with good old update-alternatives
Avatar
sdkman is quite nice btw
13:57
If you have to maintain multiple versions of things like gradle, java...
Avatar
hi anyone know how i can set up a points system on my server?
Avatar
afaik you need to use mysql and put map data into the record_maps table
Avatar
allows people to navigate through the map easily while not being able to annoy others by teleporting them away
Exported 114 message(s)