#Cipher

1 messages · Page 1 of 1 (latest)

lethal glen
viral escarp
#

ayyy cipher thread

#

github repo when bop

lethal glen
viral escarp
#

should state this now but pom.xml and readme.md maybe shouldnt count as lines, not sure though

lethal glen
viral escarp
#

okay and license file lmfao

#

just default project made with mc plugin for intellij

lethal glen
#

*lines of code count only

viral escarp
#

holy shit so you want this to be for github additions LMAO

tight rain
#

how will you implement this

viral escarp
tight rain
#

with a bot?

viral escarp
#

wym orby

lethal glen
viral escarp
#

nooo my line count

tight rain
#

how will you enforce the rules

viral escarp
#

likely have a few members with merge access who manage lines

#

Whats max line count per say? 50? 20?

lethal glen
viral escarp
#

ahh i see

#

what should line count be then?

#

as its just a placeholder

lethal glen
#

35

viral escarp
#

You are allowed to only commit 35 amount of lines of code in your lifetime
 - removing lines of code will restore the amount your able to commit
 - you cannot remove random code to restore your lines, there has to be valid reason for removal
 - You can put multiple lines of code onto one line
 - Class, Constructor, Variable, Method & brackets DO count torwards your total line count
 - Imported libraries must be open source and linked in the readme.md
 - You can endlessly replace lines of code, as long as there is valid reason the previous code there wasnt needed
#

kk

lethal glen
#

i would rephrase that

viral escarp
#

Which phrases specifically probably the removing lines part?

lethal glen
#

what format is this?

viral escarp
#

that formats just for coloring on github format would be:

lethal glen
#

to create a ruleset we would need basic rules which we can elaborate further

#

also a description first would be useful probably

viral escarp
viral escarp
#

not sure what other rules we might need to add

#

ill fix grammar and stuff too

lethal glen
#

obv. arbitrariness is prohibited

viral escarp
#

ah yeah should probably specify that

#

that one is pretty important 🤣

#

sec im gonna eat then ill work on this

#

food just got delivered

viral escarp
#

wasnt sure what to put for the actual description

#

created a PR but no need to accept it yet its just readme.md

lethal glen
viral escarp
#

oh my gooooood

#

conflicts already lmfao

#

sec

#

resolved

#

oh wait

#

der

#

cant wait for merge conflicts when people start committing

#

ill sacrifice my lines for the main class creation

lethal glen
#

reviewed

viral escarp
#

i cant think of anything else to add for that, ill create a different PR for the main class

#

i might as well add my lines of code with that too if main class doesnt use them all

lethal glen
#

imagine you have a great idea

#

create a class for it

#

and whoosh all your lines are gone

#

i will love to reject the PRs which are off by 1

viral escarp
#

LMAO

viral escarp
#

i bet someones gonna do that

lethal glen
#

i mean

#

if imports count..

#

well.. true you could just summarize the imports to one line

viral escarp
#

yeah dont see an issue with people doing that tbh

#

or small methods on one line

#

IE someone doing this

lethal glen
#

people will quit OOP

#

just to save lines

viral escarp
#

maybe it wont be so bad

lethal glen
#

alright README is fine for now

viral escarp
#

awesome

#

ill create main class later tonight

#

bye bye 20 lines of code z_aCRYYY

lethal glen
#

or we provide the template. however, could be recognized as unfair to others

viral escarp
#

nah i can scrifice

#

maybe i can squeeze in a higher jump feature too

#

ill add a functional interface for events in my api and import it kek

#

has it for commands too so technically commands can be made in one line

#

this shits gonna be so aids lmao

lethal glen
#

imagine a 5000 characters long oneliner

viral escarp
#

adds a whole MMO system in one line

#

actually

#

shade in mcmmo and forcefully enable it

lethal glen
#

maybe leaving the oneline rule open is a bit OP

viral escarp
#

maybe we can make a max character thing

#

like max 200 characters per line or something

lethal glen
#

and maybe 35 lines are a bit low

viral escarp
#

can always play with it

lethal glen
#

at least if no other contributers are found

viral escarp
#

once main class is in just gotta advertise it

#

make a spigotmc post xD

#

ask regulars in discord to contribute

lethal glen
#

true

viral escarp
#

even randoms too or people just learning spigotapi

lethal glen
#

@tired aurora mr english, please write a spigotmc post for me thanks

lethal glen
viral escarp
#

imagine this actually takes off and it ends up being every single plugin ever imaginable in one plugin

lethal glen
#

or someone is bored and wants to showcase his bossmonster lib

viral escarp
#

i can see it now

#

someone makes a lib thats a plugin

#

and just calles theyreLib() and bam

#

whole plugin

#

lmfao

lethal glen
#

lets see how that turns out

#

maybe we have to ban this later

lethal glen
#

in what direction do you want to turn it

viral escarp
#

Maybe we could setup some type of end goal here to point people in the right direction for the plugin

#

Maybe we start small? And release the project in different seasons and or rounds?

#

Maybe make a essentials remake in a sense? Or maybe some type of utility plugin?

tired aurora
lethal glen
#

so they can decide in which way they wanna turn it

lethal glen
tired aurora
#

lol

viral escarp
#

okay im creating pr for main class

#

from there everyone can contribute now

#

pr sent

#

31 lines for me left

lethal glen
#

we need a package name

#

what is more appealing to the people

viral escarp
#

hmm

#

ideas?

#

i typically just make mine com.author.pluginNameOrPlugin

lethal glen
#

ideally it should always be a domain

#

but since i dont have one for that

viral escarp
#

yee but i never have a domain so i typically just make it that haha

lethal glen
#

project.cipher or smth maybe

viral escarp
#

com.project.cipher

#

kk

lethal glen
#

nah not com

#

we.are.project.cipher

viral escarp
#

ooo

lethal glen
#

also i dont like the plugin package
but since I am powerless in the project i dont mind

viral escarp
#

thanks intellij refactoring

#

there

#

we set now

#

main class name is ProjectCipher now too

#

i need to figure out what imma add to it

#

maybe ill add something to my API to make oneliners super easy

lethal glen
#

due to your refactoring it turned into 6 lines @viral escarp

viral escarp
#

what

#

no way

lethal glen
#

but i mean theoretically you can get those lines back

viral escarp
#

god

#

damnit

#

lemme update fork

lethal glen
#

wow

#

thats a nice concept actually

#

if someone makes an empty line

#

you can just claim it

viral escarp
#

dont you dare merge that

#

and steal my shiz

lethal glen
#

everything for extra lines

#

fuck collaboration

#

i will have the most lines

viral escarp
#

NOOO IT WAS ALREADY MERGED

#

FUCK

lethal glen
#

do another pr

#

xD

viral escarp
#

this is actually really funny

#

if more people get involved i can see beef

lethal glen
#

would love to

viral escarp
#

"Why the fuck did you steal my lines dude"

lethal glen
#

wait i'll give you contributor

#

but any changes you make in code have to be a PR anyways

viral escarp
#

yee

lethal glen
#

just like mine

viral escarp
#

i wonder if theres a way to make github commit additions only show actual code

lethal glen
#

invited

viral escarp
#

contributor abuse

#

now were set to have people create contributions

#

time to advertise

#

i wonder how many people will use records to create new classes since you wont need to spend 2 extra lines on a constructor

#

Cipher do you have perms to pin msgs in here

#

or is that mods only

lethal glen
#

can't sadly

lethal glen
viral escarp
#

on it

lethal glen
#

people taking holidays just to camp for mistakes of others

#

to get lines

#

like a competition

#

who has the most lines BUT ALSO CONTRIBUTING wins $5000

viral escarp
#

funded by md_5 himself

golden tinsel
#

WTF IS THAT

#

WTF

#

IS

#

THAT

viral escarp
#

look

lethal glen
#

read the rules

viral escarp
#

theres a line limit of 35 for contributer

#

^

#

you do everything you can to save line space

golden tinsel
#

I WILL WRITE EVERYTHING IN A SINGLE LINE

viral escarp
#

i think we might add a character limit per line

lethal glen
#

nobody will count characters

viral escarp
#

ez

lethal glen
#

or a rule like

golden tinsel
#

intellij select text

lethal glen
#

3 similcolons in a line only

viral escarp
#

oo

#

thats not a bad idea tbh

golden tinsel
#

hm

#

then i will use lambdas for everthing

viral escarp
#

thats what imma do

#

imma import my lib and make commands register in one line

#

functional interfaces ftw

lethal glen
golden tinsel
#
public void method(Runnable... code)```
viral escarp
#

we can always tweak

golden tinsel
#

👍

viral escarp
#

How to save line spaces when contributing for Cipher Project

lethal glen
#

A line may have a maximum of 3 semicolons
sounds weird

viral escarp
#

When contributing, each line of code must only have 3 semicolons to prevent you from putting hundreds of lines of code in one single line

golden tinsel
#

run(() -> code).iF(() -> code);

viral escarp
#

i stg

lethal glen
#

i think Each line of code must only have 3 semicolons. will do it

viral escarp
#

yeah we can always deny/hold PRs and explain it too

viral escarp
golden tinsel
#

yes

#

lets write the whole java using methods

lethal glen
golden tinsel
lethal glen
#

actually very clever

viral escarp
#

hmm

golden tinsel
#

we will need a bot too

viral escarp
#

ill need to modify by command api smh

golden tinsel
#

to count the lines per contributor

lethal glen
#

true

viral escarp
#

not really sure how to make github bots tbf

golden tinsel
#

google dot com

lethal glen
# viral escarp

but lets not allow people to call something "main feature", "main command" n stuff

viral escarp
#

so just no main keywords or

#

no command libs

golden tinsel
#

someone will need to sacrifice his lines to do the lambds thing

viral escarp
lethal glen
#

just nothing like "this way to go. main is bedwars. main command is cipher." etc.

golden tinsel
golden tinsel
#

so lets make the whole plugin using libs

viral escarp
#

in a sense

lethal glen
#

maybe we need to limit the libs aswell

#

if they're too powerful

viral escarp
#

that can be up to people with write access discretion tbh

#

but do add a note to that in readme

lethal glen
#

so then lets state it like this

#

The project management reserves the right to reject code additions, libraries, frameworks or other additions.

#

might rephrase that

viral escarp
#

yep something like that sounds good

lethal glen
lethal glen
golden tinsel
#

well

#

the main goal is not to have a main goal

#

so

#

¯\_(ツ)_/¯

lethal glen
#

exactly

#

then someone joins and decides to lead everyone to make a bedwars plugin

#

not what we want

golden tinsel
#

lets write a plugin that gives me op

lethal glen
#

Adding malicious code or software to the project in any way is prohibited.

viral escarp
#

i might add some feature that spawns mobs with configurable damages

golden tinsel
#

i will do an economy

#

maybe

viral escarp
#

hmm

#

only issue is that VaultEconomy class has lots of methods

#
  • data storage
golden tinsel
#

i will write my own

viral escarp
#

you could start it and someone with lines left can finish it

#

or that

golden tinsel
#

like hypixel

lethal glen
#
public void method1() {doStuff();} public void method2() {doStuff();} public void method3() {doStuff();} public void method4() {doStuff();} public void method5() {doStuff();}```
💀
#

oh well wait

#

semicolons

#

what a nice rule

golden tinsel
#

you created the rule

#

and failed at taht

#

you bad

viral escarp
#

god damn

#

this gets aids really fast

#

LMAO

lethal glen
#

or you could be mean and waste people's lines

golden tinsel
#

@viral escarp

lethal glen
#

by creating methods but just spam them in one line

golden tinsel
#

frits write it normally

#

then start deleting lines

viral escarp
#

no my lines

#

oh true

#

thought u were trynna set me up for failure

#

and make me push with wasted lines

lethal glen
#

we also need internal rules for acceptin PRs

viral escarp
#

oldest PR gets merged first

lethal glen
#

first come first served

viral escarp
#

so if you push something with a wasted line, someone steals it, then you make another pr to fix it the stealer gets pushed first

lethal glen
#

and so the war begins

viral escarp
golden tinsel
#

war!

tired aurora
#

sounds good

#

i kinda would like to module it

viral escarp
#

have fun wasting them lines

tired aurora
#

so like there is a main plugin that does not count to anyone’s lines

lethal glen
#

i mean

#

you could move files

#

since you would delete the lines and add the exact amount again

tired aurora
#

and you add modules like plugins in bukkit

#

which count to your lines

lethal glen
#

wdym?

#

@viral escarp so rules for accepting would be

  • first come first served
  • all "managers" have to approve the PR
viral escarp
#

sounds good

#

im trying to remember when i was first learning java

#

and not declare variables for shit

#

but its hurting my brain

#

calling event.getEntityType() every time lmfao

lethal glen
#

or do we allow empty lines?

#

and not count them?

golden tinsel
#

variables are a waste of code

lethal glen
#

this would provide a bit of clarity

golden tinsel
#

no

viral escarp
#

empty lines = a line

lethal glen
#

alright

viral escarp
#

oh my god

#
package we.are.project.cipher;import org.bukkit.entity.Damageable;import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;import org.bukkit.event.entity.EntitySpawnEvent;import org.bukkit.plugin.java.JavaPlugin;
public class ProjectCipher extends JavaPlugin implements Listener {
    @Override public void onEnable() {this.saveDefaultConfig(); this.getServer().getPluginManager().registerEvents(this, this);}@Override public void onDisable() {}
    @EventHandler public void onSpawn(final EntitySpawnEvent event) {
        if (!this.getConfig().getStringList("DoubleHealthMobs").contains(event.getEntityType().name()) && !(event.getEntity() instanceof Damageable)) return;((Damageable) event.getEntity()).setHealth(((Damageable) event.getEntity()).getHealth() * 2);}}
#

LMFAO

#

this is fucking aids

lethal glen
#

hopefully someone ?conventions or ?learnjava's you

viral escarp
#

bet

#

make myself look like an idiot speedrun

lethal glen
#

"i need help it doesn't work please"

viral escarp
#

bye bye reputation

feral knoll
#

lol

viral escarp
#

config doesnt count

#

as lines right

outer sail
#

what is project cipher

#

what does it do

viral escarp
#

anything you want it to do

#

Its up to the people who contribute

outer sail
#

ohk

lethal glen
viral escarp
#

awesome can you double check that commit in case i missed something

outer sail
#

is there a max line length

lethal glen
#

just got eyecancer while looking for the semicolons

lethal glen
outer sail
#

shit

viral escarp
#

you can use a workaround with lambdas

outer sail
#

alright then

viral escarp
#

im gonna implement my api lib soon

#

so you can register commands in one line

outer sail
#

I'll devote my lines for infinite lines for other people

#

as soon as i get back ofc

lethal glen
viral escarp
#

free lines??

feral knoll
#

Runnable... is actually the thing

tight rain
#

sick

viral escarp
#

i think this commit is good the one line only has 3 semicolons

#

cipher now has a function

lethal glen
#

i feel stupid

viral escarp
#

configurable option to have mobs spawn with 2x the health bop

golden tinsel
viral escarp
#

should of said "looks good to me";;;

#

okay merging that

lethal glen
#

29 lines left

viral escarp
#

oh danit you made me open file explorer cause the button dissapeared lmao

#

yessir

viral escarp
lethal glen
#

fuck imports

#

xD

viral escarp
#

imports made me waste a whole ass line smh

golden tinsel
tight rain
#

use fully qualified names instead

viral escarp
#

SHIT

#

YOUR RIGHT

#

net.whatever.something.EntitySpawnEvent

tight rain
#

yes

#

no its org

viral escarp
#

well whichever it is :p

lethal glen
#

be fast burchard

golden tinsel
#

it is dick.

tight rain
#

no its not

lethal glen
#

otherwise someone could be about to steal your lines

#

caught

tight rain
#

black market for lines

golden tinsel
#

dick.pussy.bukkit

lethal glen
#

imagine lines trading

tight rain
golden tinsel
#

lets release $LINES as nft

lethal glen
#

at some time we need to have some clarity

#

otherwise how tf would people contribute

#

either someone wastes their lines for some empty lines

golden tinsel
#

bro

lethal glen
#

or we do that at some point

tight rain
#

make sql database for lines

golden tinsel
#

it is a project that limits your lines

#

and you are worried about clarity

tight rain
#

we need to make a bot that monitors everyones line count and closes prs if they dont have enough lines left

lethal glen
#

make one

viral escarp
#

^

golden tinsel
#

you could have a store to sell lines

viral escarp
#

32 lines left for me

golden tinsel
#

lets monetize the project

viral escarp
#

omg

#

brilliant

#

p2w

#

p2c*

lethal glen
viral escarp
#

its already so unreadable lmfao

lethal glen
#

thats what i meant with clarity xD

viral escarp
lethal glen
#

here we have to go into the definition of "lines of code" - is an empty line a line of code?

viral escarp
#

hmm now that i think of it

#

maybe we can make whitespace not a line but github will count it as an addition

golden tinsel
#

$10000 $9999 for 10 lines

viral escarp
#

definatly gotta find ways to make it more readable

lethal glen
#

people will still have to oneline things

#

but an empty line could restore some clarity for sure

golden tinsel
#

no

viral escarp
#

maybe we remove use of fully qualified names too cause i feel it would be a little aids

#
package we.are.project.cipher;public class ProjectCipher extends org.bukkit.plugin.java.JavaPlugin implements org.bukkit.event.Listener {
    @Override public void onEnable() {this.saveDefaultConfig(); this.getServer().getPluginManager().registerEvents(this, this);}@Override public void onDisable() {}
    @org.bukkit.event.EventHandler public void onSpawn(final org.bukkit.event.entity.EntitySpawnEvent event) {if (!this.getConfig().getStringList("DoubleHealthMobs").contains(event.getEntityType().name()) && !(event.getEntity() instanceof org.bukkit.entity.LivingEntity)) return;((org.bukkit.entity.LivingEntity) event.getEntity()).getAttribute(org.bukkit.attribute.Attribute.GENERIC_MAX_HEALTH).setBaseValue(((org.bukkit.entity.LivingEntity) event.getEntity()).getAttribute(org.bukkit.attribute.Attribute.GENERIC_MAX_HEALTH).getBaseValue() * 2D);((org.bukkit.entity.LivingEntity) event.getEntity()).setHealth(((org.bukkit.entity.LivingEntity) event.getEntity()).getAttribute(org.bukkit.attribute.Attribute.GENERIC_MAX_HEALTH).getBaseValue());}}
#

on a brighter side though

lethal glen
#

i mean you can just import *

viral escarp
#

its basically 1980s obfuscation

golden tinsel
#

an
idiot
disturb,
sam

viral escarp
#

but my line

#

xd

lethal glen
#

you cant import everything but everything inside a specific package

#

import java.awt.*;

golden tinsel
#

still -1 line

viral escarp
#

weird

#

doesnt work for my unless im retarded

lethal glen
#

only applies for classes

#

you cant import packages

feral knoll
#

write the whole import

lethal glen
#

f.e. org.bukkit.entity.* would import LivingEntity

feral knoll
#

@org.bukkit.event.EventHandler void onSpawn

lethal glen
viral escarp
#

but its aids to read

lethal glen
#

lets find some rules for clarity

feral knoll
#

its already aids lets make it more aids lol

lethal glen
#

we could also take out imports from line counting

viral escarp
lethal glen
#

not dieing

viral escarp
#

we can do a vote for the people in this thread rn

feral knoll
lethal glen
#

lets wait a bit

#

and then let the contributors vote

#

for now add the imports again

viral escarp
#

hmm so should i merge my aids commit then lmfao

lethal glen
#

maybe we could add a temporary rule of "whitespaces and imports doesn't count as lines of code"

golden tinsel
#

no pls

lethal glen
#

hard to argue for imports here

#

but whitespaces would be understandable

lethal glen
viral escarp
#

make a github issue

#

with thumbs up or down

feral knoll
#

im wondering how long this thing will survive

tight rain
#

what if you edit someone else's line

golden tinsel
#

the idea of the project is to limit the lines

tight rain
#

does that count as your line

feral knoll
#

what was the limit again?

#

30?

viral escarp
#

35

tight rain
#

35

lethal glen
#

yes, but at some point the project will freeze if nobody can contribute anymore

viral escarp
#

i would assume yes

lethal glen
#

since the last bit of clarity is lost

lethal glen
golden tinsel
tight rain
#

what if every contributor gets two lines per day

#

with a base of like 10

#

or 15

viral escarp
#

oo

#

tbh

lethal glen
#

hard to follow up

tight rain
#

database?

viral escarp
#

we should really get a bot for this ngl

#

would make our lives easier

tight rain
#

yeah ima learn github api

viral escarp
#

then we can do whatever we like

lethal glen
#

i like the idea of only have 35 lines AND you can get some by deleting others lines

#

thats not that inflationary

tight rain
#

yeah but as you said everyone will be out of lines at some point

viral escarp
#

how about they get more lines per day but

#

they dont stack

golden tinsel
#

^

lethal glen
viral escarp
#

so if you dont use your 5 lines they dont carry over and you get 10

tight rain
#

oh yeah so you can have a max of 2 extra lines at any time

#

or 4

#

ill try to make a bot anyways

#

just for the counting

#

none of the lines per day stuff

lethal glen
#

lets keep it like it is for the beginning

#

maybe at some point if nobody can do shit anymore we can think of that

#

not a bad idea, but yet a bad timing

viral escarp
#

okay sounds good

#

but bot idea is good

#

just to count lines

#

cause it is rather aids for us to manage

#

not to mention

#

you can reformat when you clone

#

then compress it back down when your done

lethal glen
#

so what do we do about the clarity thing

viral escarp
#

lets just see how things go

tight rain
#

idk how to write python ive given up

tired aurora
#

i do

viral escarp
#

what i did i probably the longest line youll see

tired aurora
#

what’s needed

viral escarp
#

since i used Attribute API

tight rain
lethal glen
#

if we breed up the fully qualified names from the beginning and at some point determine that imports are fine, then it will be really disgusting

tight rain
#

and close/deny PRs when theyve run out

viral escarp
tight rain
#

i could try to make it

#

in something like js

viral escarp
#

you could use nodejs

#

^

tight rain
#

ill try

viral escarp
#

im good with nodejs

feral knoll
#

write a bot in java lol

#

i tried

viral escarp
#

i just dont know how to make github bots

feral knoll
#

and i died

#

the api sucks

viral escarp
#

but it is a simple fix

#

someone can just replace all it shouldnt effect theyre lines

#

since imports wouldnt count if we do add that

#

theyde just be replacing code

#

which is fine since you can infinitely replace

#

as long as you arent replacing someones actual usable code ofc to gain more lines for yourself

tight rain
#

ima try to do it in typescript

viral escarp
#

i love how i was gonna remake tinkers mod in spigot

#

and now its 6am and instead of working on that

#

im working on this xD

lethal glen
viral escarp
lethal glen
tired aurora
#

so is everyone contributing to the same plugin, or everyone getting their own modules

tight rain
#

same

viral escarp
#

same plugin

lethal glen
#

same

tight rain
#

lmfao

#

its aids

viral escarp
#

one for imports

lethal glen
#

i did

#

look up the answers

viral escarp
#

oh its a strawpoll

#

kk

#

im heading to bed now

#

keep the thread alive

lethal glen
#

gn

viral escarp
#

24 hours of no activity = delete

#

maybe we get so much support we get our own channel lmfao

lethal glen
#

never

tight rain
#

this looks illegal

viral escarp
#

md_5 would 100% back this

golden tinsel
#

@md_5

viral escarp
golden tinsel
#

in java it is

tight rain
#

yeah but typescript was complaining

viral escarp
#

ahhh ts

golden tinsel
#

use gson or jackson

viral escarp
#

meanwhile js: the fucks a json library?

#

okay fr gnight, make sure you vote guys

tight rain
#

lmfao

#

ight ima go back to making my plugin

#
// import libraries
var GitHub = require('github-api');

// load configuration
var config = require('./config.json');

// login
var gh = new GitHub({
    token: config.token
});
``` this is what ive got
viral escarp
#

dm me a tutorial you find

split crystal
#

wut da is this

lethal glen
split crystal
#

im thinking of an ideaa

outer sail
#

Dont add lines

#

As soon as i get home I'll use mine to boost everyone's line count

tired aurora
#

this seems like java is a bad language to do this with, cause you can literally just write it all on one line

outer sail
#

max 3 semicolons

feral knoll
#

wait that isnt js i guess

outer sail
#

that's nodejs

feral knoll
#

looks like python?

outer sail
#

nope

#

its js

#

i use it daily

#

i'd be able to tell you

feral knoll
#

oh

lethal glen
#

just wanted to add some stuff

#

but it looks so ugly without any formatting

viral escarp
#

v

#

damn

outer sail
#
public interface ArgRunnable { public Object run(Object arg); }
public static Object run(ArgRunnable... args) {Object result = null;for (ArgRunnable arg : args) result = arg.run(result);return result;}

public static void main(String[] args) {
  System.out.println(run(arg -> 1, arg -> (int)arg * 2, arg -> (int)arg * 3));
}
```How 'bout that
viral escarp
#

infinite code on a line

outer sail
#

(main is an example)

viral escarp
#

smart man

outer sail
#

yes

#

I will devote my two lines

#

is it one file

#

or multiple

#

@viral escarp

viral escarp
outer sail
#

alright

viral escarp
#

just note the class declaration is a line

outer sail
#

yes

#

I used 4 lines

#

check pull requests

#

Oh also the code has javadocs

viral escarp
#

will check it in a bit, if any PR's open in the meantime yours takes priority

#

comments count

outer sail
viral escarp
#

InfinityCode lmfao

outer sail
#

yes

#

This technically bypasses semicolon limit

#

as you can just call a function and use it in the next

#

if you are very careful you can do infinite stuff

#

did a misspell

#

should be Runnables

#

rather than Runnable

#

(in the last javadoc)

lethal glen
viral escarp
#

guess so since the vote is pretty high

#

can let it run for a few days

#

also can you merge ike's commit

#

im busy making a spigot forum post for functional interface commands atm and dont wanna ruin my workflow atm

lethal glen
outer sail
#

How many lines did you think I saved with that O_O

viral escarp
#

whole plugin system in one line

outer sail
#

lol

harsh patrol
#

what is this

viral escarp
#

sec

harsh patrol
#

OH

viral escarp
harsh patrol
#

NO I SAW THE GH

#

THIS IS NEAT

viral escarp
#

best spigot plugin

outer sail
#

I just deleted the entire point of a single line

#

by making infintie lines that abide by the rules

#

kekw

#

@quaint spruce That is how I made my commit to cipher

#

just wrote the new file in github

#

lmao

viral escarp
#

LMAO

#

@quaint spruce ^

#

oh fuck

#

sorry

#

didnt realize you were already pinged

outer sail
#

its fine

#

we can just ping frostalf

quaint spruce
#

There is a Cipher thread

#

interesting

viral escarp
#

yessir

#

were gonna keep this open forever

quaint spruce
#

well, however long discord decides to keep threads

outer sail
#

Still fucking proud of this

viral escarp
#

24 hours of inactivity = archive

quaint spruce
#

but I do believe they implemented it oddly and will probably change some time this year to be more sane

viral escarp
#

today is day 2 of this thread

outer sail
#

what could I add

#

hmmmmmmmmmmm

#

ah yes

#

Let me implement

#

Lifesteal

viral escarp
#

oh shit

#

cool idea tbh

#

imma add a feature for double damage soon

outer sail
#

My entire thing of plugins is smp plugin recreations

#

so I got pretty good at this

viral escarp
#

to compliment the double health feature

outer sail
#

hold on

#

I need to open this in intelli

quaint spruce
#

I already have a cool plugin idea 🙂

outer sail
#

its gettin too difficult to type

#

btw I am setting up a listener

viral escarp
#

have fun implementing into that clusterfuck main class

outer sail
#

dw

#

how many methods can go in one line

viral escarp
#

as long as its not over 3 smicolons your chillin

outer sail
#

lmao i won this

#

we have achieved a problem

#

I do not know how to handle void

#

(I will convert it to one line once I am done)

#

setBaseValue is void

#

but i require obj

viral escarp
#

wrap that attrib in a method and make it return empty object

outer sail
#

Done

#

I used one more line to add the method

#

but I am using my lines to make people be able to use more lines

#

so i am fine

lethal glen
outer sail
#

In theory this should be lifesteal on one line (I made it multiple to type easier)

#

@viral escarp impressed?

outer sail
#

It also has eliminations

viral escarp
lethal glen
outer sail
#

Yes

#

i just gotta make it one line

lethal glen
#

and in a one liner it should be pretty easy to read

outer sail
#

but like, can we just count multiple lines inside a block (so like that) one line? makes it easier to read

lethal glen
#

just this runVoid seems ugly

outer sail
#

It basically takes a runnable, runs it and returns null

lethal glen
outer sail
#

yes

#

rather than the actual physical line

#

count the statements

#

So you can write cleaner code, but its still technically a one liner

#

you choose

#

idrc tbh xD

lethal glen
#

hm, good idea but that could destroy the concept. the exemption that imports and whitespaces do not count already scratch that.

outer sail
#

fair point

lethal glen
#

would probably end in "hey, i've coded like regulary but i just give a shit on clean code"

outer sail
#

lol

#

meh then keep it one line

lethal glen
#

@viral escarp what would you say

viral escarp
#

Hmm

outer sail
#

mmH

viral escarp
#

explain a little im partiallty retarded

outer sail
#

basically

outer sail
#

rather than putting it into 1 long ass line

#

put it like that

#

and count it as a line

viral escarp
#

might make line counting harder to do

#

but i agree with it

outer sail
#

I know something to add to infinite code now

#

Question

#

is refactoring counted toward lines

lethal glen
#

depends on what you do

outer sail
#

just move the code to my infinite code structure

lethal glen
#

github counts changes as -+1

#

since you remove it in file X and add it in file Y again

outer sail
#

imports do not count right?

lethal glen
#

yup

#

@limpid bay contribute

limpid bay
#

What am I looking at

viral escarp
outer sail
#

1,128 characters lifesteal

#

on one line

#

i am proud

#

btw

#

@lethal glen is changing the pom.xml counted?

#

I just updated java to 17

outer sail
#

kk

#

My linter is like

#

"OH NO"

#

"WHAT IS THIS"

#

@lethal glen Sent change

viral escarp
outer sail
#

I should

#

I should make a one line command registering

viral escarp
#

i have that already

outer sail
#

At this point I am devoting my lines to help others

viral escarp
#

just import BurchAPI

outer sail
#

nah

viral escarp
#
        <!-- My own plugin API -->
        <dependency>
            <groupId>com.github.Burchard36</groupId>
            <artifactId>BurchAPI</artifactId>
            <version>01-AD-20</version>
            <scope>compile</scope>
        </dependency>
outer sail
#

I wanna keep it in the project cipher style

viral escarp
#

:((

outer sail
#

by making it completely unreadable

viral escarp
#

fine ill import my lib when i make a command

outer sail
#

nah

viral escarp
#

just bloat this shit with so many libs and methods

lethal glen
outer sail
#

lmao

viral escarp
#

ill find a flaw somewher in his code

#

and steal it

outer sail
#

noooooooooooooooo

#

like actually don't

viral escarp
outer sail
#

lets be friendly and make the most we can

hard ravine
#

henlo ewerywunn

lethal glen
#

henlo äläxs

hard ravine
#

@outer sail you already fucked up

outer sail
#

yes

hard ravine
#

btw I suggest to put everything in the default package, that saves one line / one semicolon per file

outer sail
#

i am waiting for cipher to get my change

#

no packages/imports don't count iirc

hard ravine
#

oh

#

ok

#

unfortunately I have no idea what to add since there is no "main goal" lol

outer sail
#

anything thats fun

hard ravine
#

i'll do something related to creepers, vectors and yeeting

#

oh yeah I have an idea

#

alright

lethal glen
#

there now exists double health, lifesteal, later double damage. seems like we are going into the direction of MMORPGs

hard ravine
#

will add that in an hour or so

hard ravine
#

since it's not very easy to just look at the code

lethal glen
#

true

outer sail
#

doing that

#

wait

lethal glen
#

btw @tired aurora/@tight rain anything new about the bot?

hard ravine
#

actually I suggest to add a table in the readme 😄

|Feature | Author | Files
|--------|--------|--------
|Lifesteal | XY | File.java

including the file where it's added maybe 😄

#

because yeah the code will be looking like shit

lethal glen
#

getting people to actually take care of it can get hard

hard ravine
#

well everyone should just add their stuff to the readme when they commit

outer sail
#

who added double damage

outer sail
hard ravine
#

and if they don't, tell them to add it or it won't be merged

lethal glen
#

wait

#

they cant commit instantly

#

and we have to sign it

#

so we can just insult them to do it

#

good point

hard ravine
#

yeah

tired aurora
lethal glen
#

oh thought you said you're looking into making the bot

limpid bay
#

Are you keeping all these imports

hard ravine
#

can I add tests that don't count towards the line limit?

outer sail
#

they don't count anyways

lethal glen
hard ravine
#

yes

#

MockBukkit + maven surefire

lethal glen
#

hm

#

@viral escarp

hard ravine
#

it's in separate files and has no functionality later on anyway

#

in fact it's a separate directory

#

src/test/java

#

so I don't see a reason to not do that

lethal glen
#

yes ik and they dont even need to get compiled

outer sail
#

@lethal glen Pull requests

lethal glen
#

I wouldnt be averse

viral escarp
#

Make a vote probably?

#

Steawpoll

#

Ill look at pr in a few

outer sail
#

lmao

viral escarp
#

ffs

outer sail
#

Imma make it one line

#

but it works

viral escarp
#

oh wow

#

LMB added exploding eggs

outer sail
#

lol

#

imma commit mine in a sec

viral escarp
#

kk

outer sail
#

shit it has to use more lines

#

i need to find a way to put it on 1 line

lethal glen
#

all these conditional operators

#

tryharding in avoiding ifs

viral escarp
#

awww who refactored my code ❤️

outer sail
#

me

viral escarp
#

hell yeah

#

ty

outer sail
#

bad ifs

viral escarp
lethal glen
#

didnt thought people would tryhard for lines this hard

viral escarp
#

fuckin hell

lethal glen
#

package we.are.project.cipher;/**Made by Ik#2932, This has limited uses but is really useful to save on lines!*/ public class InfiniteCode {
/**Interface to run code, takes output from the last, and outputs a new value (first input is null)*/ public interface ArgRunnable { public Object run(Object arg); }
/**Runnables in, Output out*/ public static Object run(ArgRunnable... args) {Object result = null;for (ArgRunnable arg : args) result = arg.run(result);return result;}
/***/    public static Object runVoid(Runnable runnable) {runnable.run();return null;}
}

is it me or did you just waste a line for the last }
@outer sail

viral escarp
#

uh oh

#

okay i should rly finish my spigot post lmao

#

worked on it earlier today and didnt finish the last part

lethal glen
viral escarp
#

yes

#

im almost done with it though

#

just one more class example

#

NOOO

#

MY TEXT DELETED WTFFF

tight rain
#

yo burchard u still working on the tinkers port or have you just completely dedicated your time to the cipher thing lmao

viral escarp
#

WTF!??!?!?!?!

viral escarp
#

just havent worked on it today

#

how do i load a draft guys

#

pls help

tight rain
#

ah ok because it seems cool

viral escarp
#

that took so long to create

tight rain
#

idk

viral escarp
#

and i need spigot clout

#

OMG

#

thank god

#

i reloaded page

#

it came back

tight rain
#

lol

viral escarp
#

i put so much work into this

viral escarp
#

Plus i only contributed one thing to ciphers

#

tinkers port takes priority

#

i just want more spigot clout so i worked on this today

feral knoll
#

i wanna see that post

#

what about people who arent using java 16 and dont have access to records 🤷

viral escarp
#

they can just use the normal class then

#

and create getter methods for the constructor variables

#

ill make sure to add that

#

ty

#

i had to specify that for this piece of code too

#

as thats jdk 16 too i think

feral knoll
#

yesh

#

java noobs are going to die

viral escarp
#

tbh this is more for advanced devs who want easier ways to create commands

#

definatly for people who actually know java

outer sail
feral knoll
#

did you already posted that on the forum?

viral escarp
feral knoll
#

i want to see it

viral escarp
outer sail
feral knoll
#

o

outer sail
#

you pass an handler and some data

#

and it registers

viral escarp
outer sail
#

lemme clean it up and push

viral escarp
#

but using that in a real plugin would be aids xD

outer sail
#

fr

viral escarp
#

this is really nice

#

ive had so much fun whipping up commands with this

outer sail
#

I made an annotation based one

#

its pog

viral escarp
#

i used to have a annotation based sql lib VanishedMC made

#

i worked with him on minestar and we used it

#

was pretty nice

lethal glen
#

@viral escarp

feral knoll
#

hey conosle

outer sail
#

Look at this beauty

#

null check and everything

#

exactly 3 ;

viral escarp
#

i read that pr wrong lmfao

#

i thought we were waiting for LMB to add something lmfao

lethal glen
#

he did

viral escarp
#

looks good to me

#

so lmb has 33 lines left

lethal glen
#

34 or not?

outer sail
#

idk how i used like 6

#

or smt

#

you tell me

viral escarp
outer sail
#

7 exactly

#

but i saved another line

#

so i used 6

lethal glen
#

so he added 1 line

outer sail
#

cipher

#

PR's

lethal glen
#

on it

viral escarp
outer sail
#

i added command registering

outer sail
viral escarp
#

LMB's first then ike's

outer sail
#

ye ye

lethal glen
viral escarp
#

oh yes

#

alex added unit tests

#

pog

#

LMBs is good either way

outer sail
#

for what

viral escarp
#

but just from looking at the commit it looks like 2 lines to me?

#

or wait

lethal glen
#

LMB used 1 line