#development
1 messages ยท Page 1468 of 1
It's already rotting
lmao
Almost becoming petrol
my science work is still in flash
My friends tell me that coding in flash is mainly graphical
Powerpoint class??
IT program in my school
Computer application class, f
so powerpoint
actually
well i am in college
powerpoint is so much fucking better than that fucking shit called google slides
not even in the same league
and its a bit fucky
I mean powerpoint > Google's bs
PowerPoint is one of the mainstream presentation apps actually
that we have to learn cpp
yeah
all the weird syntax compared to other languages
C# is fairly easy ngl
nah it can get very complicated imo
C# > java anyday of the week except Mondays, because that's my sleep in day
true
One message removed from a suspended account.
PascelCase is superior lmao
TORGUE_CASE
sorry yeah thats what i meant
System environment variables are in that
Do you know what I hate? _variablename
Ew
Why underline before names?
i think those are for methods that are only used within the module
That's disgusting, at least use camelCase with it lmao
and not supposed to be used by like the people who import that module
They are private variables
ye
Ah, yeah, hiding the uglies
always hide the uglies
Yes, aka py
lmao
i can code python in my sleep
.NET 5 is so powerful
and java is versitlie
Java is love
I don't like py. Fucking whitespace syntax
camelcase > underscore
anyone can code in their sleep, but will it work?
easy
just do print("Hello world")
a working program
i mean i code like that with java and c++ too
just do console.log("Hello world")
so...
a working program
cause whitespace is better for readibility
Just do Console.WriteLine("Hello World");
oh i forgot the semicolon ๐ญ
Lmao
i apologize
but thats more characters lol
Intellij be like: sout -> enter -> "Hello world"
Syntax fucking Error, where is my semicolon that I asked for
and it's built into python as a function
But c# is lit, and should be taught instead of java ngl
Nah
^^ i agree
Nah c# > java.
while im not good at using external libraries in java
java is still the most solid language
Yea have you see the run time for .NET 5
No lang wars
dude if you cant use external libraries you havent used the language
no i can
like not many tho
like i haven't done webscrapign
and lot of applicationss of codign
outside of python
ah
Java is solid, but c# is more fun, and is much much more versatile than java sadly
yeah python is just so intuitive
I hated py when I had to use it for school
I only use it if I need to build something that requires me to use py to do that. But that's all
Nah I hated whitespace syntax
C# more versatile, laughs
I get that it's for structure, but my structure is not what py wants, and basically ruins my style.
But anyway
Gp?
the thing is
General Purpose
I prefer dealing with braces over whitespace
Not really
Teaches what scopes are, and are easier for newer people to understand. Also helps with seeing what is in scope.
Laughs in C# developer

i mean
thats what indents do too
They laugh, but don't understand that their weak language's runtime is much much slower than .NET 5's runtime. Not even py could compete against it.
Like, while I'd really want to argue about that (you must not consider only windows), I don't want to be yeeted by some mod
Also, py is slow af, nothing against
who cares
But interp langs are always slower
I mean you still have .NET Core 3.1 should be universal
.NET Framework is windows only from what I remember
i mean i personally don't care if its slow
yeah it is
honestly its not that slow that it cant be used by any company anyway
it has its use cases
^^^
Being slow can be good, but in runtimes, .NET 5 is powerful, that it can run stuff faster. That's all it means. But you still have to deal with it's build step and stuff.
I mean almost any language can deal with so. Just some better at it. Both py and c# can do so pretty well
i dont think being slow can necessarily be good
but it can be okay in some situations
but in the end. C# is good. Py is ok, some may think it's god tier, but I mean that's saying too much. I will say it's good, and that Glass is god tier. Fight me
๐
You can't deny that glass is god tier.
idek what glass is
Look up glass esolang
unless you're talking about the object
"It combines an unintuitive postfix notation with heavy object-orientation" yeah no thank you
Tell me that isnt god tier shit right there lol
Because it is. Esolang is esoteric language. They are legit jokes. They have english as well lol
oh lol
Glass is a joke. It's not meant to be use, but I joke about it, because that syntax is god tier ๐
Lmao idk, I mean someone thought it would be ok to make lolcode
fair
Lol
i mean i could see this being used for code golf
Yert
no comprendo
Ever searched about JSFuck?
Hello World is almost 10 lines of code
what is ur bot supposed to do
like what is ur bot
ur bot is what
a bot
๐ญ
and what do u mean role play commandd
Probably kiss, hug, laugh, etc
yeah ^
i think the issue is the java file isnt even running
download ecliose
eclipse
pretty simple
No, download intellij
intellij is the best IDE
eclipse >
- for java
i wanna use vsc
thats version control
eclispe is poopy
Me? Yes
yeah ok
Vsc does a very poor job when it comes to java
Like, vscode is too barebones to be useable for java
^^^
I mean, it's just a fancy text editor
this is why you dont use java
Yes you can use vscode for java, but doesn't mean it's efficient
Intellij
Intellij
It has community version
Mhm
Also, I highly recommend some package manager like maven or gradle
I personally like Gradle but both work. Just different formats
Gradle is more readable I think
Mhm
is this good for default?
autoplay on and 50% volume
or should i do 100% volume and autoplay off
50/100, or 5/10?
50/100
Maybe, what library?
alr
You could do 70/100 maybe
softly vibes
100/100 for djs from what I remember is like 300% if it's default. Idk if that's fixed
i broke autoplay lol
it changes the song
but there is no sound
but im to tired to fix iT
it might be easier to code if you dont use 4 databases...but that's just me
Fix it ralph
i rmeoved all of the dbs
and i had to recode everything smhhh
which one did you pick
moonsql
also you literally did it in an hour
somehow
can you tell me why i should use moonsql
can you show me what moonsql is
my programmings hands type faster then i can think
does it have a github repo
thats why im always miss spelling words
its still wrong but ok
its le private
why
I shake when I code because I'm scared I might make a shitty syntax error.
why not
maybe next month ill make a npm for it
https://github.com/Alissonfelipe1234/MoonSQL aint it this
its alll lower cases first
cause its my db
i can choose if i want it public or not smh
i dont want it public rn
im saying why not whose db is it
what
listen
listening
if i made a db, i would want people to use it
so i would make it public
thanks auric
np
can you stop using smh ๐ญ it makes me sad
What does it run on?
ty auric
np
how am i not respecting that
its a sqlite3/json db
i literally cant make any decisions for you im just asking why
you can choose which one you want
wait what
never said that u didn't
ok so regardless of whether i can use it or not
why would i use it (what's the use case)
over other databases
json tf
Lul
smhh
format is a string but json isnt
Wouldn't it be better to make a pseudo-orm using sqlite?
na im joking
ez
Like, using json in text fields
format is choosing an formatting option for string stuff in the db
Ah
json choose how it stores it
So, redis?
var options = {
// db_name: The name of the file that will save in the folder to hold all user warning data.
db_name: "Ikigai"
}
options.format(config.format)
but actually using sql
kinda like that
๐
Quick.db is dogshit. I mean what??? What are we complaining about?
config.format is the code frm before
.
mongodb is pretty easy to use
I mean, isn't sql purpose being using actual queries to reduce local-side processing?
you're not lying are u?
who doesnt like keys
Maybe maybe not
no one will know
like have a folder called /(cusotm storing name)/ and then like the db
or something
like how i did my backups using moonsql
each time someone backs up there server it ends up here
If you want local, then quick.db is your best option, or if you want a more advanced option, then enmap exist
enmap was made by evie and i wont let her win
Don't use json for heavy data
its optionaL
Json is made for lightweight data, like configs
It's a waste of time to make it though
Yea
You could use redis
.___.
Quick.db as well
eh ill think about making it redis or something
Idk quick.db
json, sqlite and redis eh?
Doesn't like quick.db, smart
Lol
same
Postgres + sqlite for cache

I recently started using postgres after using mongo and I got to say, I love the query language
Designing databases is more fun that I thought lol
whats firebird
facts
i like a good challenge
that being said coding a appp in coffeescript is
A stone age databse that 99.9% enterprises here in brazil use
horrible
oh no
i tried it
It's slow af, hard af, buggy af and af in general
i cried so many times
one does not simply code in coffeescript
AND IT ONLY WORKED FOR ONE THING SMH
i coded the app right
took 5 months
i run it
and the only thing that works
is the fucking start button
And most importantly: firebird lags A HELL LOT if you make many transactions
Imagine spending more than a week on something

Maybe 500 transactions per second AT MOST
i spent 2 months on the bot im coding now
mainly because im lazy
and take 4 week breaks
Do you guys think it's worth it to have a denormalized table for like a medium-sized application
I spent 2 years of coding my bot, since it's just the same code from applications.
Denormalized?
By medium I mean like thousands of users
nice
I found a great domain name for sale on DAN.COM. Check it out!
2 weeks on making the dashboard tho since reactjs is easy
Are we talking shit about stuff now?
Basically like storing all information about a certain thing in one table rather than logically separating them to improve performance
its 2k its gonna take weeks to get 2 k again smhh
Cause Google's apis are shit
Oh, no, keep stuff separate
Create one database for each user if you must (if your db has schemas)
But performance :(
I realize that
I mean have a separate version AND a denormalized one
Big fat tables are sometimes slower than smaller relative tables
Also, it allows u to specifically get one info if you need
I'm not explaining it well
But it's a concept that is supposed to improve performance
anyone know why this message.guild.members.cache.filter(m => m.user.bot).size works sometimes and doesn't at the same. For one of my bots it doesn't say all the amount of bots in the server, but on another server the code works and says the correct amount of bots in a server
For example instead of querying multiple tables for a ton of info, you would only go to a couple
its cuz you're just using the cache
Remember that sql is already optimized to handle many tables at once
Sometimes it's a O(1) operation
Eh that's true
to get the exact amount you'd have to use message.guilds.members.fetch().then(members => {...})
Having primary keys, the time will probably be constant
ee ok
Like, I've seem both worlds
The place where I work use big fat "yo mamma" tables, and it's painful to maintain
My bot uses a lot of tables with relationships everywhere, and never had issues regarding time
Lol yeah I see that
Not to say, they store xmls in table rows ๐
@earnest phoenix dont be asking people to vote for your bot, thank you.
Wut, where?
i deleted it.
who is the fucking snitch here
bruh
sure
cause its my job
wouldnt be a problem if someone did anyway
now dont do it again
It'll not, it's in the rules
cool, we dont care
ok well i hate you
we dont always get what we want
don't be
Oh my
cloud, dont escalate things.
so bad boy
-m 371024183531929614
๐ค Muted !Xabi#0001 (@iron bear)
lol
sorry
I don't understand such people, like, everyone's anxious about getting their bot approved then suddenly people like that appear out of nowhere
tf you saying sorry for smh
you good homie
lol i think so, but sometimes you just dont realize that you're going too far๐คท
stating your opinion isnt something to say sorry to
its collective criticism
@lyric mountain wanna watch ngnl together?
๐ ๐ 
Nah, don't want to have season 2 anxiety again
aww oki
how can i run java files?
eclipse is shit
and vsc doesnt even wanna run the file
intellij gang
same issue
ant run file not found
yes
If you created, you're not supposed to select anything at the first screen
At the second u select "command line application"
Then set ur project and package name
Vsc is a text editor
It's too weak to be used for java
Eclipse indeed sucks
That's why we recommended intellij
If you had Ant errors, u didn't try it the right way
Ant is a package manager
U probably created an Ant project
my friend is asked to use it while in his Computer Engineering course
Everyone is
sadly, I just finished 12th grade
But eclipse is so bad
didn't get in any course
Like, it had everything to be one of the big IDEs
i want my code in main.java right?
FILE
All u need is a public static main method
Yes, but you also need such folders
MY BRAIN HURTSS
Main.java
Ok
and something.iml
Inside that class , whats inside?
Wait
Iml inside src?
Anyway, Main class should be like this:
public static void main(String[] args){
System.out.println("Hello World");
}
}```
main.java
Damn, 1% battery
import javafx.applicationf.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
You can
Actually, there are no projects unless you're using package managers
All intellij do is organize the files in folders
new java class file?
Download intellij, then do this:
- Create project
- Java
- Don't check any option
- Use template -> command line project
- Rename project and package names
- Finish
It'll give u the barebones of java program
should i re-code my advanced suggestion bot or should i make an advanced member counter bot (like a vc count)?
Now I gotta go, my battery won't handle it anymore
Just remember: use intellij, eclipse is harder
Ok, got the charger
I cant figure out how to collect custom emoji reactions in a filter
const filter = (reaction, user) => {
return ['check', 'xMark'].includes(reaction.emoji.name) && user.id === message.author.id;
};
eclipse is easyyy
as long as you have 90 years experience 0-0
IntelliJ's UI 
try harder
have you tried eclipse?
its very shit
@drifting wedge see if this is useful https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-application.html#get-started
it shows how to run it
message.channel.send(embed).then(sentMessage => {
sentMessage.react(emotes.check).then(() => sentMessage.react(emotes.xMark));
const filter = (reaction, user) => {
return ['check', 'xMark'].includes(reaction.emoji.name) && user.id === message.author.id;
};
// yes or no to setup
sentMessage.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
.then(collected => {
const reaction = collected.first();
if (reaction.emoji.name === emotes.check) {
embed.setDescription("Do you want me to set up roles - :diamond_shape_with_a_dot_inside:, channels - , or both?")
sentMessage.edit(embed)
}
if (reaction.emoji.name === emotes.xMark) {
message.reply('Action Aborted.');
}
})
.catch(collected => {
message.reply('You timed out, please run =setup again.');
});
its not collecting the emotes
If it's grayed out you probably don't have any run configurations set
in the filter
that's it
i cant find java
Typically you can just open your main java file and press the green arrow next to it
Good evening everyone,
i would like the bot to change the channel visibility permissions for evryone to off
i made my own file
its legit java.java
public static void main(String[] args){
System.out.println("Hello World");
}
}
The name of the file needs to be the same as the class name
So it should be called Main.java
and show your directory tree pls
Im back
You gotta select what file u want to run
When u wrote the public static void main methody, a gree arrow should've appeared on its side in intellij
Press it
Like, when you first create a project you won't have the starting file setted
You need to press that arrow once, then the header arrow should light up
uhh what is java used for?
What isn't java used for is the real question
You can do pretty much anything
Well, maybe except microship coding
ik but what do people use it for?
Anything u want
I use it for bots, server, custom apps, etc
Yes
But I recommend using a package manager for libraries
mhm
Handling .jar files can get messy
honestly imma try to finish up python and js before lmao
Learn how to use vanilla java, then start learning how to use gradle
Vanilla java already has a ton of useful stuff
Play a bit with it
Btw, what java did u install?
Version I mean
does anyone have a solution to my issue?
Goal is, finish up python, and learn js, Cpp and Java
Any error on the console?
Prob by mid 2021 wanna know like how to make simple programs
I suggest you use jdk 11 and above
Wat Lang @twilit geode
It works with unicode emotes, but i just copy pasted them
js
Im using 13
Uhh js is useful right?
yes?
His code is a up there
Wait what backend frameworks for Java are there?
Yes
java... is backend...
?
Java is fullstack actually
Web backend
What options?
a p p l e t
Easiest and, imho, best one is springboot
tehe
One-line webserver setup
All you need is a couple annotations above your server handler class
technically all java code can be one-line
Technically anything can be a one-liner if you're brave enough
but f other devs amir
a
f for yourself trying to read
yes and no, if you use commas and simicolons like a good boy, yes, if you dont, hell no
lol
Lol
i dont teehee
Semicolons are essential
#maxiumlazy
They are the cherry of any code
I have mine turned off xD
I think it makes it look nicer
i mean yea
yio
should I rewrite my shit in 1 commit?
also
like 3k lines in one commit
CaN sOmEoNe HelP
message.channel.send(embed).then(sentMessage => {
sentMessage.react(emotes.check).then(() => sentMessage.react(emotes.xMark));
const filter = (reaction, user) => {
return ['check', 'xMark'].includes(reaction.emoji.name) && user.id === message.author.id;
};
// yes or no to setup
sentMessage.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
.then(collected => {
const reaction = collected.first();
if (reaction.emoji.name === emotes.check) {
embed.setDescription("Do you want me to set up roles - :diamond_shape_with_a_dot_inside:, channels - , or both?")
sentMessage.edit(embed)
}
if (reaction.emoji.name === emotes.xMark) {
message.reply('Action Aborted.');
}
})
.catch(collected => {
message.reply('You timed out, please run =setup again.');
});
it no go brr
damn
idk im tired and can't think
and this code is in like 200 different places rn
working on middleware and routes and api at the same time
have fun!
c o d i n g i s f u nhell
nah I enjoy it
tbh
unlike writing it actually makes sense
its like a game
how far can you get without throwing an error and taking a break
godzilla had a stroke trying to read this
NVMD
big dumb
how loud can you make your music before you need to pause it to think
little game I like to play with myself
Until your dog start asking u to turn it down ig
that too
const { Router } = require('express');
const router = Router();
router.use(async (req, res, next) => {
if (req.session.userData) {
next();
return;
} else res.redirect('/login?r=' + req.url);
});
module.exports = router;
``` best fucking authentication middleware
Lol
reee I need to start writing user management routes
wrong channel
what bot should i make? server template bot, server maker bot, re-code my advanced suggestion bot, or make a guess the number bot
Yea
smh I accidentally used callbacks instead of async/await
bruh moment
whatever ill just fix it later
If it's public, look at what people want and see if you want to make that. If it's private, make whatever you want that's useful.
I cba to recode this
For example, mod mail was something I always saw people made exclusively for a server. Then someone made a public bot and that was immediately popular, but then again, the person who made it already had a popular bot so I don't know if they promoted it there
the web is boring!
Make a spanish flu bot
Yeah it's not
ฬออ wองฬณอhฬฝฬซฬจaออฬงtฬออ ฬอ ฬตdอฬฬจiอฬฬขdฬออ ฬออyองฬคอoอจฬฏฬขuอฬงฬ อฬอjฬฬฬuอจฬฎฬทsฬฝฬฬดtฬฬฬก อฬนฬธsอชฬฏอกaออฬกy
whatever you wanna call it
public, im asking here for that reason
what bot would you use/like more? server template bot, server maker bot, re-code my advanced suggestion bot, or make a guess the number bot
None of those
none of those really
They all already exist
Make a role-playing gif api, I'd be forever grateful lul
Many people look for one
explain
Discord already has templates, your suggestions bot is yours, guessing numbers is easy
Kiss, hug, punch, slap, etc etc
they all do?!
Weeb stuff
oh
damn that sucks
fucking weeb shit
nah
it isn't a bot if it doesn't have a userinfo serverinfo and basic action commands
im actually vibin to konosuba ost rn
You need a really creative idea to create a unique bot
Nah, crossing fields all the way
pog
You need to โจ think different โจ
yeah i just cant think of one :(
(choir plays in the background)
Make a DIY bot
Like, try to make a modular bot
No bot makers :(
wdym
No, I mean, make a bot that allows server owners to create modules/commands
Then enable them only to that server
People just spam out bots that suck
yea true
me looking at chat for source codes (/j, i know there wont be one)
looks menacingly at botghost
create modules?
Lol
wdym
Like
Make a barebones bot
With a single command
A command to create a custom-written command
Then save such command exclusively to that server
Literally a DIY bot
what if they cant code
Although you'd need to make it easy af
Make it not look like coding
Idk, like, make it as straightforward as possible
hmm idk
With handrails everywhere
are their ways to add objects to json things
fuck
password
Hey hey hey
ok yeah
or do I just need to make a class
self bot
@earnest phoenix
@ember atlas selfbot here
discord js go brrrrr
ew
boss is ofline
Lol
python go brrrrrrr
where at
err dnd
dick
Here
fuck
pussy
Lol
bruh a self bot
ass
ass
E X P O S E D . E X E

eat my succulent ass
delete their bot
yay
yay
Sink their boat
idk what to make for my bot
shit my bad
sink their boat!
so is there a way to add objects to json... things...
Ok and back to development chats only
ive thought of a lot but its all used apparently
you can add an object to json
I mean, it'd innovative af
yea
And would maybe teach people programming logic basics
lol
an example would be wonderful
shush
It's hard when you start
Ok genius
Anything is hard if you're brave enough
cus u code in js lol
not imo
js poggers
j is better
what lang you use? py?
ts for scaling
python
About the diy bot, you'd need to create a custom lang
yeah
Maybe something really abstract
that would be cool
Like scratch
but i cant make a website for it bc idk how to
html
sass
js
@bot.command()
async def pythonisbetter(ctx):
await ctx.send("python go brrr")```
I don't mean an actual scratch
its nice doing my code all in the same languages
Maybe some instruction-based coding
why not
function fuckWhitespace() { return "Fuck whitespace, all my homies use single lines of code." }; fuckWhitespace()```
spaces !== whitespace
Actually, he meant line break
function fuckWhitespace(){return'Fuck_whitespace,_all_my_homies_use_single_lines_of_code.'};fuckWhitespace();
when I mean whitespace I mean required tabs and spaces
whitespace is also
yeah but thats required for every sintax
Linebreaks include a carriage return in most systems, which is almost a whitespace
bruh imagine coding in minified
brb I smell food
This is power! js fuckwhitespace=()=>"fuckwhitespace,allmyhomiesusesinglelinesofcode.";fuckwhitespace()
haha es6 go brr
Anything is food if...nvm
if it can fit in your mouth
Idk then, that's the only unique thing I've not seem here on disc
yeah i dont think thats really a good idea anyway
^^



