#development
1 messages · Page 2048 of 1
it lets you not specify it
c++ developers answering just to say namespace std is a bad practice
so ..Default::default() fills in the rest
so you can modify ones you need and default the others
but that doesn't matter because you STILL HAVE TO SPECIFY SOMETHING
you can't exclude the whole field altogether
The idea here is that most languages have default values for most types in structs/objects
For example, objects in java default to null, integral types default to 0, and floating point types default to 0.0
eh, the idea is that data types and values are clearly separated I think
this being implicit can result in buggy code
I disagree
almost half of java errors seem to be an NPE
If your error in java is a NPE then consider yourself lucky
how tf
those are usually incredibly easy to fix
Java exceptions be like
npe is the least common error as long as you pay half attention to ur code
It's your fault if you forget to instantiate something in the constructor
very descriptive, and point to the EXACT place it occurred?
I do like Option a lot
c++ users realizing you cant do ++ and -- in rust
I just think it's cleaner to explicitly specify Option or | null
oh no 1 more character
It's simple but elegant and powerful
2+*
java users realizing you can't do ```java
class A {
static int i = 1111;
static {
i = i-- - --i;
}
{
i = i++ + ++i;
}
}
class B extends A {
static {
i = --i - i--;
}
{
i = ++i + i++;
}
}
public class Main {
public static void main(String[] args) {
B b = new B();
System.out.println(b.i);
}
}
c++ users realizing you cant make a runtime string in c
you cant chain increments in rust?
there's no ++ or -- in rust
no, they're statements iirc
what do they use?
+= -=
+= and -=
tf
that's pretty standard
there's some reason for it I can't remember
but to be fair I rarely find myself writing += 1 or -= 1 in rust anyways because I'm usually writing for loops like for i in 0..=100
not having () everywhere is nice imo
you can still have ()
and requiring a body
they're optional
it's a warning
lol
they're optional but it doesn't follow standard conventions to use them
it's just making an unecessary expression, not actually part of the if syntax
idk, that's the only part about rust that I don't really like
coming from languages that have that every time just feels weird
pretty minor difference
it's something I can deal with in exchange for nice memory management
rust used to have for i in range(..) instead of for i in 1..5 rust copying python exposed
yeah
that's not true, otherwise that'd be creating a tuple
no, it's only a tuple if you suffix with a comma I think
(5) + 3 works still
it's just grouping
yeah (value,) is a 1 item tuple
or (type,)
otherwise grouping in math wouldn't work
and for ranges 0..(num + 1)
ranges are nice
ye
that's a feature I could get used to in other languages
C developers when no for (int i = 0; i < 10; i++)
try groovy someday
groovy is actually even more versatile than kotlin
I don't really have an interest in trying kotlin tbh
I've seen it, I don't really like the way it looks
no, they're all JVM langs
I'm a syntax-ist
just make your own jvm lang :troll:
lol
and you haven't used groovy
I have
and jvm lang != easy to do the same exact things
ah yes, the guy who coded in java for 2 years
now you also coded in groovy for 10 years?
just means they can technically do all of the same things
you got a problem?
nah, I see lang haters here all the time
I don't really care for "X is better than Y" as long as it fills my needs
I just speak facts :P
I hate python smile
source: trustme.com
though inevitably I'll have to learn it one day most likely
Seriously though, what's your problem
You feeling insecure?
bruh, you're the one who came shit talking about java out of nowhere
pretty much impossible to work a dev job without knowing how to make little python scripts
I'm just replying
it's nice for some things, but I wouldn't use it for anything where I care about performance
I dislike it for many reasons
yeah it's a messed up language
syntax and speed being the main two
your opinion
my main gripe with Python is the module system
It's just that it's a very useful language for making things like installation scripts and such
it's ambiguous
you look in any git repo of an open source software and there's bound to be some python in there
python is a scripting lang, it's people who insist to use it for fully fledged systems
(and shell most likely)
I most of the time use python for file management or automated stuff
heard doing robotics is nice with it too
true, the company I work for uses C++ for performance heavy things and writes the rest in Python
though I'd personally have chosen TS and or Rust
but it's good as it is as well
ts is mono-thread
again, the performance heavy code isn't written in a scripting language
but Node.js specifically (not TS) has worker threads & is JIT compiled
so it's fairly performant
you can always just run multiple processes as well
I think python is probably more convenient for writing small scripts than ts
it's more a multi-process environment than a multi-thread env
nearly the same, but not quite
over half their codebase is written in Python though
As much as I hate to admit it, python is definitely useful
it's a blockchain
ew crypto
you will never convince me that crypto is a good investment
I just call it a gamble
ik just saying
I'm gonna stick with parsing
you're the type of guy to screenshot an nft and say you own it
no
lmfao
parsing is fun
nft is just e-money laundering
I hope nft values just tank one day
spent a long time writing recursive descent parsers, but never much else
completely tank
ok leftist
kek
he's not wrong (kuuhaku)
it's not a fault of the technology, but rather the people using it
I feel like that's the underlying reason as to why they have any sort of value
lots of scams out there atm
rich people wanting to avoid taxes in some way or another
ultra-expensive art is money laundering too, it just got digital now
US feds were looking into ways to monitor crypto recently iirc
they have it on the tax forms now
I think cryptocurrency was pushing the lines of real currency but NFTs are just blatantly worthless
and every exchange has KYC
they want to monitor an unmonitorable currency?
it's gonna be pretty difficult to monitor
like, isn't that the entire reason for crypto? total anon
Found the tweet
yeah I don't own any NFTs since
A. Ethereum is terrible for a variety of reasons
B. The art is shit
C. It's not worth the investment
A growing number of state and local prosecutors and law enforcement officials are embracing digital tools that can monitor blockchains and are gaining the expertise necessary to track and seize stolen cryptocurrencies. https://t.co/7f90bPDURV
I don't own any NFTs since
A. They're fucking stupid
B. They're fucking stupid
C. It's not an investment
D. You will inevitably lose your money
E. NFTs are the dumbest shit to exist as a representation of real world value
lol
Just because I work for a blockchain doesn't mean I agree with all of the Bitcoin and Ethereum maxis
I wonder if people realized that they could do the exact same thing but have real value by just paying real artists what their work is worth
nfts are supposed to be reserved for physical objects, like mona lisa
to be fair NFTs have other uses
like, stuff that can't be traded for equally-valued stuff
they haven't been explored yet though
digital is anything but unique, anything can be copied or reproduced
Like showing off the fact that you could've bought a house but instead you have a hexagonal profile picture on twitter
no, to prove you own your house
Or, you could just buy a house and not have to prove it to anyone
NFTs aren't even necessarily graphical
so you just walk into someone's house and claim you own it without proving it?
buy a house
who proves you bought it
you can use them for tickets, passes, club membership, status, etc
yeah, like BAYC is doing
The title of the house that has real value because you paid for it
or trying to (they keep getting hacked lmfao)
The house is where the value is stored, the title just says you own it
club membership
ultra-vip club for Sad Monkey™️ owners
the idea is that it's digitally provable though
And the idea is still stupid
It's just throwing money around in hopes that rich people will throw more cash into it so you'll make money
It's not a real investment in my eyes
that's the image side of NFTs
The images are worthless
the thing I'm describing doesn't exist yet
It's just the receipt that has value
When in reality it shouldn't
Not to mention it's fucking terrible for the environment
Ethereum*
you don't get the print paper waffle
just the digital pixels in the form of text
currently yes
Which about 95% or more of crypto is terrible for the environment
check out Chia, it's entire focus is the environment
That's just an estimation
they're even partnering with the Climate Warehouse lol
terrible for pc owners too
Yeah
fuckin gpu prices got to the moon
I got lucky, got my rtx 2070 before prices skyrocketed
now 3 years later it's worth more than I bought it for
I planned to upgrade my note this year, but the prices more than doubled
covid didn't help either
yeah
tbh I'm glad I overbuilt my pc in 2019
It's still running strong today
And I would be very upset if I had to buy a new GPU or part atm due to prices
Only things that have ever broke in my PC was a freakout with my SSD where it got fried somehow, and my cheap network card that I bought for 10 bucks and lasted 2 years
it'll probably last a long time, it'll be hard to make another big jump as rtx did
Thankfully I had nothing of value on that SSD that couldn't be replaced
One day I just booted up my pc and it refused to boot into windows
are u using nvme or box ssd?
Looked at it in the BIOS and it said that it had 0.0gb/0.0gb capacity lol
box ssd
didn't want to shell out the extra cash for an nvme
they were still pretty expensive at the time I bought it
get a low-capacity one just for the os and stuff that you really crave for performance
mine is 256gb (2019, when it wasn't so expensive), most stuff barely take time loading
yeah maybe in the future
I have a 500gb box ssd
pretty fast
then I have a 1tb hdd for storage of mass stuff
which tbh I haven't used for much other than a few steam games that I don't play too often
yeah my steam folder on that disk is 167gb
I probably should've put llvm on that disk...
hdd is a must if u have huge stuff
I usually manage my space pretty well
I like to keep 100gb+-ish free on my ssd
if you get too low on storage things start to slow down
I used to have a weird problem with my pc randomly shutting off, uninstalled valorant and never had that problem since lmao
ye, ssd needs some padding to maintain speed
i just have a 1TB M.2 SSD
No blue screen or anything, just literally shut off too
ever heard of the case of valorant melting pcs?
Nope
at the beginning, vanguard had some weird issues where it disabled cpu fan
I don't like vanguard at all
i think its because of windows disk fragmentation
Too invasive
indeed is
if there aint too much space left it probably has to move around some stuff and place data in awkward places
ntfs has absolutely no fragmentation prevention
I hate windows but I have to use it for games
that's for hdds
there's another reason for ssd, don't remember it tho
ssds dont magically prevent fragmenation
it still happens the effects are just different
ssd is immune to fragmentation slowdown, since it has no moving parts
it can still be fragmented
ssds are immune to ur mom
shut hobbyist
literally have a job that makes more than ur family but ok
yes yes, whatever
I don't have a job :C
rip
Rightfully so though, I'm by no means ready to be a dev lmao
lol
Still got a long ways to go
you're a dev harry
lol
"solid state drive ssd"

I'm 16 and I started with a djs bot when I was 15 
ssd owners after they realize they have a limited write cycle after reinstalling windows 10x
That was my first "development" experience
my god if I could look back on that codebase
I mean it's good experience
when you don't open the page
url doesn't allow ()
I have a mc mod I'm supposed to throw an update at by the end of the week but at the same time I'm kinda lazy and I don't want to
lmao might not be possible to do it that fast
forge or fabric
forge
all of it is related to chat messages pretty much, the problem being that I don't necessarily have the needed info to update the mod since most of it is rng
So I don't know what I'm really supposed to add quite yet
ssd users realizing if they dont power on the drive for a couple of years data loss will occur

Plus forge is a whole clusterfuck
and I need to update the UI but I kinda don't want to lay a finger on ogl
fabric is much nicer but sadly not much (comparatively) supports it yet
I wanted to use ogl, but it feels so weird to use
currently to move around stat displays (which are just rectangles of text pretty much), you have to use like 30 sliders
which is becoming impossibly unmaintainable as I add more stat displays
I also need to figure out a better json setting storage system
my trackers are probably like 1000 lines of code in a project that only has 2.5k lines
json storage
it's for settings
and trackers
it auto saves every time they close the settings gui and every 5 mins, and when they close the game
use an sqlite file, everything uses it
nah
json is fine for this case
Haven't had any issues, it's just a little annoying to create more trackers
Currently the way I do it is... really bad
sqlite users realizing there is a performance penalty when you manipulate and update too many strings
sqlite users realizing better databases exist
I basically have a hashmap for storing all the loot, and then I just make getters and setters in the class to manipulate the map, then the map is serialized into json
average java user be like
oh god
it's just easy to serialize and deserialize
gl trying to fit as much data inside a single file as sqlite
imagine using a single file
use {{}}
and it's a safe external api, but when I need to mess with settings and add more stuff it's really annoying
gets kinda old writing this over and over 
I'll have to refactor it sometime
oh jesus christ
you could use moshi + class mapping for that
agh
that way u can deal with the json file as if it was a normal class
I only do it like this because it's easy to serialize and deserialize with simple-json
simple json is nice
it's better than the way I used to do it in a previous project
used to have an entire class just full of static global variables 
lol
java and c# users realizing they have to use classes and objects in order to create and deserialize json
ikr
json is supposed to be represented by a class tbh
one name change and its over
no, it's not
o stands for object
that's why annotations exist and such
like in c#
[JsonProperty("name_here")]
which are anon classes
object is in the name
object doesn't necessarily mean class instance
they're objects
classes can represent key value really easily
not as easy as objects can 
and they're easy to serialize models because they're just a collection of properties with values
c++ libs dont use classes/structs for json instead they use maps
Can't you use interfaces n C# instead of classes
uhhhh
they're Object instances no?
I don't think you can deserialize to an interface in C#
no
not every object has a prototype
can't remember, but I had problems with interfaces at some point
in JS
Why not
generics in java all must have Object as a common ancestor, I don't see why it's less generic than using Something<int>
ye, a constructor
typeof is very old and poorly written
typeof null === 'object'
type erasure
it's not true generics
it's only compile-time
because null is technically the value of an object, it's just the absence of one
nope, it was confirmed as a bug
makes sense in my mind at least, coming from java
null should not work the way it does in Java
that's the reason modern languages are commonly "null safe"
how should nulls work then?
I think null is a perfectly fine concept if you understand the caveats, but I do prefer rust's Option
null has no type
In the first implementation of JavaScript, JavaScript values were represented as a type tag and a value. The type tag for objects was 0. null was represented as the NULL pointer (0x00 in most platforms). Consequently, null had 0 as type tag, hence the "object" typeof return value. (reference)
A fix was proposed for ECMAScript (via an opt-in), but was rejected. It would have resulted in typeof null === 'null'.
solely because of backwards compatibility
we were talking abt java
^

java and javascript are the same thing, just like car and carpet :^)
didn't notice discord showed whether u pinged or not
JavaScript being named the way it is is a severe marketing failure
wasn't originally named javascript
ecmascript
the company wanted to make it familiar because of java's popularity at the time
what does ecma stands for btw?
hence marketing failure
it was originally called mocha I think
external computerized marketing asshats
had to be the british /s
microsoft jscript
fun fact that I learned about: discord has syntax highlighting for x86
CScript
isn't it like x86_nasm_asm or some shit
nasmasm
.section text
mov eax, 1
; I don't remember enough asm
C# is literally java after sun didn't allow microsoft to name it Java++
no, really, it wasn't originally supposed to be called C#
Microsoft really do be copying everything out here
yet
Microdick Winshit
imagine an electric car running on some windows platform
BSOD moment
asm users realizing there are no if statements
"accident caused by bsod in electric car"
isn't that basically just jmp
apple car
no you have to compare a value then do a conditional jump
ah yes apple is microsoft
"accident caused by kernel panic"
lmfao
car crashed because of segmentation fault
windows car be like "turning it off doesn't actually turn it off"
highway fault
apple car be like "oh the browser isnt working? you'll have to replace the entire car"
repair: $932852395823
new car: $9999
lmfao
lmao
looks like apple mouse
apple car: "beachball covers entire front screen causing wreck"
does it also have the charging port under the car?
yes
there's one for that too
stupid question, how do I implement display for an enum in rust to display like LeftParen if the enum's value is TokenType::LeftParen

xDDDD
bruh
lmfaooo
#[derive(Debug)]?
assuming this is for dbg!()
No I meant impl Display for TokenType, the fmt function
ever seen a fine caused by a broken speed camera?
no
they have speed cameras that automatically hand out fines?
yeah
ouch
there were sevaral ive heard of around here, dude in a bike was fined for driving at 800km/h according to the speed cam
in texas they even declared that red light cameras are unlawful lmao
he went to appeal the fine and was rejected
because if the speed cam says so, then thats what it is, we cant to anything
driving a bike at airplane speeds exdee

you'd do something like this
use std::fmt::{Display, Formatter, Result};
enum TokenType {
LeftParen
}
impl Display for TokenType {
fn fmt(&self, f: &mut Formatter) -> Result {
match self {
TokenType::LeftParen => write!(f, "LeftParen"),
}
}
}
then you can
fn main() {
println!("{}", TokenType::LeftParen);
}
though if you derived debug it would print the same thing
in theory could I just derive debug and then do something stupid like ```rs
impl Display for TokenType {
fn fmt(&self, f: &mut Formatter) -> Result {
write!(f, "{:?}", &self);
}
}
Or does that not work
the windows c api sucks so much
The windows api sucks
corporate wants you to find the difference between lParam and wParam
does rust make it better
i kinda wanna make a trojan
(for educational purposes)
but the windows api is impossible to work with
you can put perfume on shit as much as you want, won't change the fact it's shit
doesnt make it better 💀
yeah but you can like
abstract it maybe
to cut out some of the stupid steps
like receiving windows events is a mess
pretty sure you cant do it with a single file
you have to have one exe and one dll file
the one who makes a clean abstracted winapi wrapper will be the next node-ips dude
i dont understand the joke
not a joke, but if someone makes a good enough clean wrapper for winapi pretty much EVERYONE would use it
save for a few enterprises that have their own wrapper
isnt that a good thing
it is, but nobody achieved that yet afaik
because it'd the an ultimate task to wrap everything
yeah you can't copy your node_modules folder, don't do that
copy your package.json then run npm i
you called linux linxu opinion disregarded
How can I embed HTML directly? Not a page, but rather just straight markdown? For example, if I were to have something like this:
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<h1>Hello</h1>
</body>
</html>
And have a page like this:
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<h1>Content</h1>
<iframe src="something" />
</body>
</html>
How could I embed the first HTML on the page? I don't have a file, link, etc. Just the HTML itself. Another issue I have is that I'm using React, but I'm just wondering if this is possible with straight markdown.
i believe this is possible
<iframe srcdoc="<html><body>Hello, <b>world</b>.</body></html>"></iframe>
srcdoc yeah
i use it for rendering the emails in my page so its sandboxed and doesnt get affected by my pages styles
do note if you want to run a script which resizes the iframe to the size of the content inside instead of being a tiny box you need to set sandbox="allow-same-origin"
if its from the same origin
for some reason the browser by default doesnt trust content from srcdoc/same origin
yes
ah okay. ty
you never have anything nice to say now shut it
you coukld at least say
"wow that is a good implementation"

or "great!"
Looking for (affordable) webhosting for an express website, cant really find any, suggestions? Preferably domain registration and emaim included
replit
if it's going to be an on-demand site you don't really need to keep it 24/7
Ah okay I've got a better understanding about rust lifetimes now ```rs
fn main() {
let test: Test;
{
let a_str: &str = "test";
test = Test { thing: a_str }
} // a_str data normally dropped here
println!("{:?}", test) // still valid because the reference inside test stays alive as long as test is alive
}
#[derive(Debug)]
struct Test<'a> {
thing: &'a str,
}
that makes a lot more sense
I think I'm starting to love rust
basically you bind a variable to another variable
or the infamous case of "how to kill parent with child"
it's just ensuring you don't have any unsafe memory accesses
telling the compiler to not free a_str since test is still using it
that's really neat actually
i like rust but i feel like im being held back by it so i wont really be using it
how do I calculate a square triangle's size when I resize the other to maintain hipothenuse angles the same?
like, lemme draw
I want to resize A, how do I find out how long B needs to be so C (angle) stays the same?
context: I have a HP bar where one of the sides is sloped
nvm I'll just set a clip area
find the ratio between the old and new A and multiply B by that
ah ty, but I'll use a clip area since it's also simpler to interp the bar length
go ask your maths teacher
math is fun
very satisfying when you find an application for something math related in your code
anyone know how to get rid of this underline garbage when using rust-analyzer
nvm got it
XYZ domains are $1 and you can get a Namecheap VPS for like $3
for anyone else wondering, slap this in vsc settings.json```json
{
"editor.semanticTokenColorCustomizations": {
"enabled": true,
"rules": {
"*.mutable": {
"underline": false,
}
}
}
}
Replit, Glitch, etc are really limiting and I don't recommend them if you can afford $3/mo
It won't hold you back if you take the time to learn, it's just a different paradigm but all of the same things are possible
I'm still learning myself but ye
Idk rust has been pretty based so far
I’m making a math parser (much like I did in C#) in rust, it’s been really easy so far
Very intuitive
i do a lot of low level stuff and i dont think the language is designed for that very well
the focus on safety is good but i think its a little too much
it pre-emptively decides whether something is safe or not
of course you can get around all these things but its not as easy as you would with c/c++
and im also not a fan of some of the syntax and keyword designs
theyre right tho
you only know its broken when it doesn't work
USE A DATABASE
ok then why do you need to know if it works
if its not broken
DO NOT USE JSON AS A DATABASE PLEASE
^^^^^^^^^^^^^^
that is my recommendation
Yes and no
mongodb or mysql are good options
const birthdays = await <collection>.find({ }).toArray()
for (const birthday of birthdays) {
//loop and send for each birthday
}```
when you have arbitrary amounts of rows
Json can be fine, but I have a feeling it’ll expand into something that it shouldn’t because he won’t want to port over to a db if he gets more traffic
thats what i also thought and the only reasonable argument
unless its a private server
its for his public bot tho
throwback to my 2k line json file
Then definitely go for a db
Yeah, I remember said json file
i remember deleting my entire mongo collection on accident
If it’s private now, then go ahead and use json if you don’t feel like implementing a db. But if you plan on making it public, use a db
That way you can have it as a one-and-done feature
mongodb atlas
or Railway for mongo, its free
Mongo has a free 512mb cloud cluster
i'd recomend mongodb.com tho
There’s no need for something so small
i use several servers lmao
it's disgusting how people use repl and shit
I find mostly nothing wrong with it until people start complaining about it
that gets all saved birthdays from the birthday collection, then loops through said birthdays and you can go from there
Replit is a decent option if you don’t intend on ever paying for hosting
But if you expect amazing performance and perfect IDE features from it, then that’s where it becomes a problem
Concurrent write = goodbye data
it's not scalable, it can corrupt, it takes a long time to save, etc
Isn't that only a problem if you are constantly writing to it tho
Why yes I know this I am just meming
Json is fine as a format for saving data, just not CONSTANT data or anything
bro
And as it grows in size it will take more and more memory to keep in your program, and will take longer and longer to read
Again I am just curious if it is viable to use it as a database
Oracle has a free tier VPS
It is not
There has to be ways to get around the concurrent write issue
it's not the only issue
Yes there is but that’s not the only issue with it
Oracle is good
yes a VPS is good
Well of course not but if you can solve one you can solve em all 
then you can host any DB you want easily
Don’t expect amazing performance, but it’s what I use
The solution to it is called not using json as a database
dev
Yes
Just cause you said this ima use json
as my db
kek
ew
^
You have to have a debit card/credit card to register, but that’s just to make sure you don’t make a massive botnet with free tier accounts
don't ever suggest that trash
https://cdn.myprojects.lol/🍐🦈🚅👺🌳.png nice oracle vps servers lmao
:(
slightly better
ew mongo
or mysql with mysql2
pg where it's at
nono mysql no
ok java user
if you value your data
java user opinion rejected
csv > *
And oracle does not do any sort of payments directly through your credit card, they only use PayPal, so you’ll never be charged anything without upgrading your account (if you go over a bandwidth limit or something then you won’t be charged either, just limited until the next month)
im gaining aids reading this chat
What you don't like csv?
I found that oracle’s vps is nice for hosting my bot that is only used on a few servers
small discord.js bots aren't very resource intensive
Doesn't oracle give you 24gb of ram to split up between multiple vps?
Free tier has only about 1gb of ram
What
lol 24gb
discord.js makes it
Where did you find that lol
I was asking cause someone said so which sounded outrageous I just never confirmed it
You get like $300 of free credits to spend in like the first 3 months but thats it
so i decied to ask again
if mfs are giving 24gb ram for free sign me up i have some things i want to put up there
Same 💀

It’s fine I can bully him
All I am hearing is a pig oinking
Go tell your mom to stop talking then
you can split it into multiple servers too
4 servers all with 6gb ram
3 servers with 6gb ram, 6gb ram and 12gb ram
2 with 12gb ram
or of course, the big 24gb ram
ah yes
galaxygate is milking me dry rn
Oracle Cloud Free Tier Signup
and i havent gotten my paycheck yet
i'll probably use for a bit of remote coding with visual studio code bc my laptop cannot handle shit
so united arab emirates
Ashburn is a census-designated place (CDP) in Loudoun County, Virginia, United States. As of the 2010 United States Census, its population was 43,511, up from 3,393 twenty years earlier. It is 30 miles (48 km) northwest of Washington, D.C., and part of the Washington metropolitan area.
Ashburn is a major hub for Internet traffic, due to its many...
idk
look
canada discord user opinion rejected
lol
why... does it matter...
canada is going to be a worse option, discord's servers are in california iirc
they have multiple regions, I don't think any are in canada though
you probably wanna go with either US-east or US-west
one of the two
california deez nuts
nice
your transaction wasnt trans enough
therefore it was canceled by twitter mobs
If you used a prepaid card like cashapp or such they decline those
lmfao
no I do not believe so
no im using an actual card
do they require credit cards?
Do you have 1$
It should be credit or debit from what I read
it charges you $1 verification fee and gives it back
they dont even ask for the card name
it can be either
👀
make sure your bank isn't declining the verification thing
"We're seeing criminals target people like you" just saw that when logging into bank
who are people like me
people buying oracle VPSs apparently
yeah i defo have balance just confirmed
i'll try contacting them
your bank might be marking the purchase as fraudulent
probably your bank declining it
idk why they would for 1 dollar though
even 1$ can be considered a scam ig
mfs usually lock my account if something gets marked as a scam transaction
oh fuck
the billing info has the wrong name and address
lol
i've tried it like 2x
at this rate i have no hope of my bank account remaining open for very long
they lock your account as soon as you do something out of the ordinary
and you have to call them
💀 i dont know if i still use this number
if its not im defo done for
good stuff enjoy my 80p oracle
ffs
they give back the money, it's just to verify that you're not making a botnet
nah oracles playing a joke
24GB RAM
it's not lol
idk who told you that but it's definitely not
you get $300 worth of credits for free for your first 30 days
but after 30 days that's it
1gb ram
nevermind i aint giving my details to oracle to probably put me up on those public lookup websites
what no
it is-
lmao
interesting
oracle prob charging me twice
24gb ram btw
I looked many hours through oracle's website when I was looking for my VPS and couldn't find jack shit on that
its not supposed to be easy
I'll have to keep this in mind, but I have a feeling there's a downside to this
NOOOO I ACCIDENTALLY CLOSED THE TAB
IT TAKES LIKE 20 MINUTES TO GET TO THE PAYMENT PAGE
i am going to HURT SOMEONE
same shit
except one is an architecture and ones a company
It is just a matter of the architecture amd has a different instruction set than ARM does, it is just arm doesn't allow x86 from what I recall while AMD does
ignore the fact i'm at my limit anyways
fuck you stop showing me something i dont have
What happens if you reach your limit
yeah

THEN EMAIL THEM
who tf made this goofy system
jesus bro
it's oracle, what were you expecting
nah the jig is up
either my bank thinks somethings sussy or oracles goofy system blacklisted me
that probably means my card is blocked
fucking monopolies
cant even access my hard earnt money
It is 1$
fuckers let fraudsters through but dont let you through
its night and theres still people in the support chat
they better be paid night premium
mfs blacklisted me
rip
mfs just take my 80p for lifetime access to free servers pls
sounds like a scam now that i think about it
<MessageEmbed>.addField(
`Roles (Total of ${member.roles.cache.filter(r => r.id !== message.guild.id).map(roles => `\`${roles.name}\``).length || "0"} Roles)`,
`${slicedRoles || "No Roles"}`
)
MessageEmbed field values must be non-empty strings.
any idea why?
They are empty
yeah why?
I've included the || "No Roles" and || "0"
just incase that happens
is that not the right use case for ||?
first of all length || 0 is redundant, if the length is 0, it'll be 0 already
what is slicedRoles?
it sounds like an array
which is not a string
you probably intend to join it and tostring the values?
I know the code is extremely bad for what I just showed you
let slicedRoles = member.roles.cache.filter(r => r.id !== message.guild.id).map(roles => `<@&${roles.id }>`);
if (slicedRoles.length > 16) {
slicedRoles = slicedRoles.slice(0, 16);
slicedRoles = slicedRoles + " and more..."
}
``` just don't have the time to make it better
just wanted to make sure that was not an issue
it's not..
It'd never be an issue
well I still wanted to make sure

average JS user
wait are u seriously checking for the roles which don't match the guild id
lmfao
😭 I didn't even notice
I suppose they're trying to remove the @everyone role from the list of roles, which is assigned to all members, but that can be improved
the code for that is old, I've taken it out of my older bot and just updated what I needed to make it work with v13
I write regex all the time
how is that related
As the @everyone role has the guild ID
message.guild.id !== message.guild.roles.everyone.id
ItsOkayBae has a little bit of a reputation for overusing regex in my opinion
😐
Just saying!
tis simply the amount of regex he uses for unnecessary needs
lol
it has it's uses
The @everyone role's ID is not different than guild's ID, the second operand there is just an abstraction
and do I not?
didn't know - that's kinda wack ngl
this is a super simple thing to debug lmao
this guy acts as if it is a big inconvenience to do his own work
You're passing the array as the first operand to the logical OR operator (||), which'll always return true for arrays, doesn't matter if empty or not
fixed it
they (implicitly, and poorly) converted it to a string already tho if i read it correctly
oh wait
do you want me to rewrite the entire thing
only in the if
it just screams script-kiddie to me

the code is old
I've written it in 2019
no I stopped making bots in 2020 I just started making them recently
Well this is nothing compared to the people in the discord.js' support server's support channels...
They write the most cursed code I have ever seen in my entire life
it's not like javascript is the only language you use, not at all
lmfao
Worse than luca?
Way worse
public static void main() {
bot.client('ready' {
function client.login(token).then {
client.on('message', function(message) = console
}
})
}
discord.js users be like
or at least it should be
"why no work help"
"Bu-bu-but I don't need to learn JavaScript,,,, just write the code for me, plssss"
lol
Write my entire bot
I would rather rewrite you
uwu
Please do
My knowledge in the art of programming is so poor I make shit code 24/7
rewrite me with knowledge
I mean, you're still decent anyway; but I'll do so gladly
i mean if you don't write code like this you're better than almost every member here



