#💻︱programming
1 messages · Page 41 of 1
oh
Ye
bru
arabic people
that counts as spamming
no..
spaming is when i send alot of stuff that dosnt mean something
like this
let's not spam
thats spaming
Yes but
keep it on topic with programming here please
You don’t have to do it
look
okai
i am just showing her
shes saying thats this is a spam
ok fine
no brain
@silent path x
depends on your algorithms within your code
a mod/bitwise calculation won't be the cause of a major bottleneck of performance
would look into C profilers, not sure of any myself but with other langauges at least, they will flag certain sections of your code that are being slow
you can then profile those sections in more detail to see the exact lines
How do I code in Mo-Lang JSON.
This website will help you @echo stone https://wiki.bedrock.dev/guide/introduction.html
hi
i need some help
finding a file in minecraft
this one specifically
global_settings.json
im on windows 10
i cant use the solution they gave because i dont know where the file is
I only found minecraft java in that folder not bedrock
do u have any other alternatives
YAAYYYYY
THANK YOU
I LOVE YOU
IM INDEBTED TO YOU NOW
youre my lord and savior now
i did google
but more specific
like the exact file name
i was confused alr
i already had tried like 2 billion possible solutions
even talked to xbox chat help thing
now
another problem is
that minecraft on launching
changes the boolean back to false on launch
is there a better option than sql and why is it not globally used? learning sql was an annoyance and all ive learned from it is how many issues there are with it security wise, sql breaches seem so common and im just curious if theres something in the works i may not have heard of that might overthrow the SQL databases
try mongoDB then
is it being used in todays age? my knowledge is becoming dated (havent kept up in about 5 years) but it still seems like a lot of companies rely on SQL
yes a lot of people use it
i am mostly in the discord bot community
and there plenty of people like to use it
ill look into it thanks
Can anyone tell me which BB-editor is used on the forums?
SQL is still the - by far - most popular language for relational databases. NoSQL (non-relational) databases are gaining popularity but, like everything, both have their trade-offs 🤷♂️
yeah sql is really popular and also pretty easy to learn query syntax imo
its just english
🤨🤨
Guys stackoverflow survey started a little fast this year?
C++ the best
I prefer c-
There's a browser plugin called Github Isometric Contributions and it makes profile pages look like this
This stuff is very cool
I've had my first gitlab epirience today
And man was that interesting
First had issues with shh keys and then branch issues
🧑💻
I've made a gitlab wrapper like 6 months ago
i read that as shush keys for some reason
this looks cool, am adding it
they should add the day of the contribution when i hover over the datapoint 😔
sus documents
plenty time for my ai assistant called github copilot
Who care
u
No I don’t
Yes you do
mogus
you responded thus it proves you do
i do
"hi !"
I've been working on a Discord bot project and I don't know
how to add permissions so only admins can use administrative commands like Ban,kick etc
I saw a youtube video saying you should write like this
.setPerms: "ADMINISTRATOR"
but it didn't work
I use Node.js btw
Could anyone help me with this ?
you know how to code?
learn how to code first then
even djs people tell you that on there discord
anyways it will be on the message
ok thx
i think it is message.member.roles.highest to get there top role
I think it suppose to be message.member.cashe.get("role id") {
I will try both of them
ELlo!
Probs the best thing I can recommend is to get a very good and preferably long tutorial and just follow it. And then open yourself some documentation to go with it and search and read about everything you don't understand from a video.
Go slow and little by little and test things and stuff like that
But if you have really no programming knowledge start with python or just pure JavaScript, before moving onto Node.js and it's libraries (I'm assuming you are using discord.js library)
.cache
It's message.guild.roles.cache.get("id")
and this
thank you
@copper ice how ya like that
ignore the e-girl skin i was lazy so i did not put the capes folder inside
@drowsy terrace them birb client gonna be back soon 👀
Yea i love the egirl skin
I mean, the UI is great
Bro you live in another world
yes.
any boi skin = eboy skin
unless it is not generic boi skin
hard truth ikr
im cringing to myself
i mean not realy
if you e-date and stuff then you are e-girl
also lets move to #💬︱english・general
well it is just imgui
i got fed up of imgui and am writing me own gui engine
Im actually interesting in ui/ux design but they said u need to use xaml in C#
just don't
use d2d for, or opengl for that
also you can just use figma if you want to design
everyone sucks at start
I find it kinda hard to get a good progrmaming instructor on udemy
Cuz their voice makes me sleep
don't go to udemy
Too bad i pirated bought 4 programming courses
just watch good videos on youtube
Me when dead is not defined
class Person(){
...
}
int main(){
Person dead; //to non-programmers, this ain't mean in a rude way, it's just a variable name :P
}
Here you go, now just initialize it 😛
pain
Depends on what you need help with 😆
Best to ask in #🪓︱skyblock
Ok
Then ask in #💌︱staff・help
What exactly happened?
I went afk
For better understanding, pls head to my dms
This channel is for programming chat related
any1 do cobol
anyone made a neuro evolution algo?
if input() == dead chat:
print('Right')
else:
print('who cares')
dead chat
Right
cool chat
who cares
saying it is dead won't make it alive
I know
def msg(self):
self.active = server.activeUsers()
if msg.active => 1:
print("Dead Server")
else:
print("Where did everyone go?")
I've been cutting myself off with coding for a long time, please correct me if there is a mistake.
Lol
This more then a meme chat then a programming chat lol
msg.active ??
Variable
yeah but u made a var called self.active
It's a code I made up in my head, it doesn't belong to any library @sharp crystal
Well, what else is programming 😛 I mean, I don't know about you, but I learned to program so I could understand programming memes xD
I programing is just a language which can be understood by looking itself
Everyone is meming about how Dead is this chat
Cube uses some plugins right is that open source ???
Guys anyone know that
??
if i were him i would have commited brain death already
naming vars hard 😔
I am so good at coding
do you know how to turn on your pc tho xx
ok but do ya know how to write os, how to write programming language, how to write a game? didn't think so
Duck do u ever use virtual machine? And is it normal that programmers use google rather than memorizing functions?
it is normal
yes
it is like the core thing we do xd
But some IT expert said they have exams that requires memorizing like Computer network etc
Yes 🤣🤣
No, I just leave mine on all the time, I got used to the light.
Irrelevant
it is what good programmers do atleast once in there life time
Best programmers never write games 😎
Wait I made a game
nvm
Great programmers make games
Does Wordle really count tho?
yeh
@spring tiger am duel booting my pc which distro of linux i add?
yeh
I can't really help with that, I've only used ubuntu. best to look at the features of the popular ones and if that's what you want
for example ubuntu might not be the most suitable if you want a barebones linux install
they said arch is good option for programmers like me so am asking more people to know what they a re using
arch is good option for programmers
What distro is not good for programming?
Debian based distros are a p good start for begginers imo.
Stuff like PopOS or Ubuntu are really begginer friendly
Arch based is a little harder
If you're strictly looking for arch, Manjaro is probably the easiest
i mean i don't realy care if it is realy hard and that since am just gonna use it to write code in vscode .-.
Well yes
But it gets to stuff like installing the os itself
Go with something Debian based I'd say
alr
It does the job without any hustle
pop good?
Yea
alr am gonna use it
But from my experience the partitions were pretty tricky if you're gonna install it on the same drive as windows
i have 2 drives
Ok then it should all be easy
also can i install this stuff while i reset windows?
basicly my windows got yoinked after a BSOD
thus am rebooting ( resetting?) windows
i was wondering if i could run both of them at the same time
am throwing all my project files in a zip and throwing that in a zip then downloading it back from the repo ;-;
painfully slow
Not necessarily arch based distros but arch itself
since like pretty much always 🤨
Yes hazard progarm for us!!
prog arm
Can one configure Malwarebytes such that it ignores anything as long as it's run under Sandboxie?
Any of my CC developer homies know anything about AnnotationProcessing I am losing my mind ❤️
@spring tiger suppose am a dev at cc
can i fix bugs in a protocol when i am in the gameplay team(don't realy know what teams so just example)?
You're given tasks to do by a project manager. @tawdry radish
And no, you usually stay within your team and work with other teams if there is a problem on their end
i see
Guys can play with me
does anyone here know how to program 😄
Depends on the day 😛
i just pretend tbh
Internal vs external fragmentation
STARLINK
who doesnt
Mood
yeh no
Hello World
aw am i your world?
No
No..?
yes.
you should use case and default instead of if
idk if youre joking or not
took me 2 days to find that i wrapped if else in a switch statement 
@subtle matrix bro can i write api when every day and will it be considered spam?
some guy said this channel got deleted i dont think it did
It was gone for a day
interereresting
IT WAS
Archived tho
so all messages still here
YAY REVIVEEEE
😳
worst formatting is making a new line for brackets
pet peeve right there
how code work 😳
did ya look at the switch statement?
also i can't fix that it is microsoft's cpp extention
they removed it bc everyone that is not a programmer and is not a nitro booster stream on it ._.
such cringe ngl
how to program...😳😏
you just do it
it is like a gut feeling
you just type letters and it becomes into meaning full code
Agreed
<div class="d-grid gap-2 col-6 mx-auto"> <button class="btn btn-secondary" type="button">Definir testes</button> <button class="btn btn-secondary" type="button">Definir horario dos testes</button> <button class="btn btn-secondary" type="button">Definir alerta</button> </div>
how do i make these buttons go to another page
<a href="{{otherpagelink}}">{{text}}</a>
And if you want it to appear as a button just add a bit of css
a.button {
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
text-decoration: none;
color: initial;
}
to the page and add the button class to the a
i love you danny
thanks
it worked!
ah yes random words with random signs
makes perfect sense
SQL is fun
put code in
```css(or what lang you using)
code here
```
also you can try to just redirect to the page by calling handling onclick event
and in that function you could put anyone one of them (try them out idk what the first one does different then the http one)
fr haha
What program language do i need to learn first?
c++ for mc bedrock java for mc java and python if ur broed
I'd suggest starting with javascript / python
Thanks guys (:
Dont start with c++
im not a coder idk stuff
all i know is characters go brr
Yesyes
C++ is kinda hard to learn, so it would be smarter to start with python or something similar
wait other coding formats r similar?
Well most coding languages syntax is similar to each other, but I meant similar in difficulty to learn
so what ur saying is python is hard to learn
No it isn’t (relatively)
ok
But it is very useful for a lot of things
ya should try making games
it is very good for learning while making pratical stuff
which will motivate you
Do you know a good program for that?
?
if you mean engine i suggest learning godot
Okay thanks
Ok
I started with 2d games (without engine) and that helped a lot for me
Just to get behind the basics of a language
You started without an engine?
Which language
Java, wouldn’t recommend it to anyone but for me it worked
The games were really simple
ove java or python
or javascript but that would be for intermediate devs since you need to handle all the math and rendering stuff
Imo JavaScript is knockoff java
no
java is ram hog
javascript is not
that is the only point which i care about
Okay true, but for me that’s not an issue
yeh but for me it is a huge issue since i work on stuff that needs me to open 5-6 apps at a time
:)
man hacking mc is hard ngl (am making good client not hacked client don't sue me)
(also it is like onix fyi)
Sounds weird as a designer, but i tried minecraft mods or plugins once and that was when I just started coding
na i am hacking mc bedrock since you can't realy make mods here which work over the whole game
also we make good uis if that is considered designing
falls in the same category for me
anyways
i just realized you are a designer lmao
;)
anyways ya use any clients?
I don’t really play on bedrock, apart from my work, so there I don’t
On java I use lunar client
i see
didnt u say ur gunna make a client like a really long time ago
yeh
am stuck on how to unload it for a week
i got the renderer and input working
go ask someone to help or smthin
yah am the first person to do it like i am doing
i want to make good looking gui
lets go i did it i unloaded it
cool what else u got left
am gonna make basic stuff like fps counter and cps counter
maybe something else later idk
replay mod when 👀
why should i use ur client instead of onix
you don't have to
i mean i am just making it for my self
bc i don't like onix client's gui
nope
no not like that
could try making some features like turning off particals
in the gui u can make stuff in the gui itself invis with .theme
i mean he did not realy put the symbols in his dll so i don't want to even touch it
i asked him before and he said no
wdym symbols
like function names and stuff to identify what is what
thats dumb whats the point of dlls then
to add stuff at run time ._.
alr cya
..
is that some programming joke i dont get
"hey guys .."
the guys: LMAOOOO HAHAHAHAH
Nah .. means "back to previous directory" aka undo
cd ..
cd is current directory
and cd .. means move current directory to the parent directory
Oh i get it know. I didnt know the word parent is used in computer
Parent dir, child dir
previous directory != parent directory
it means last dir you were in
Maybe or not
@wooden aspen tell me what is use of programming in a mc server ""it's not a joke""
what?
what?
what?
it does both
cd without any args will give you current directory
and with args will change it
It’s used all the time
...i don't get another way to explain tht

I thought it was change directory
Have I been lied to all that time
no it is change directory
No pls dont tell me u program in php
🥺
I am very curious what is taught in that book
Where is that shop, I'm interested in buying
i once saw programming for dogs
@sweet barn bro change the spectator mode in bedrock to actual spectator mode
chunks reloading every second for me
It’s still locked under an experimental toggle afaik
So I wouldn’t be comfortable rolling that out right away
i thought it came back to normal in bedrock
1.18
1.19*
It’s under experimental toggle though
oh
& Mojang have expressed interest in changing it
it well the old spectator mode by you guys is just reloading chunks every secoud
and people going out of 5 block radius are going invis
@sweet barn
gives me that exception right after i join an other match after the glitching
and everyting froze
@tawdry radish it might be a good idea to just make a bug report instead of just pinging the devs
can i dm somebody who knows how to work with cit packs?
nothings stoping u go ahead
I think it's fixed but I'll dm if I'm stuck again
Hello programing
J
Atom is stopping :(
i dont think atoms just randomly stop working
the universe wouldve nsver existed withour atoms
?
oh
i have always been using vscode so this does not affect me but kinda sadge since this was the first code editor i used
Had this old repo on private for a while and forgot about it since so in case anyone is interested...
https://github.com/KristN1/cube-api-docs

o_o
wait it works?
Yea everything there should be working
it is just the fourms api?
;-; i thought it had the player stats too
it has online players number
looks like i could put that data in my client
i would advise against using api.cubecraft.net for anything
like it's a very very bad idea to rely on anything you find publicly accessible there
Yea well there is little if any actual usage in my opinion, I'm just sharing my discoveries
well the skins api is used on the appeals site still
the only reason for that is we don't have the time to replace it
new projects internally have not used it in yeaaars
Yea makes sense
Is that api made by cubecraft itself?
Why not update it or make a new one if it's deprecated
I could've used it
Bet others could've as well
We do have other APIs, they are just non-public
petition to add "Public API" to the notion board, react below
in almost 4-5 years you didn't have time to replace the api
bruh just invest 1 week in the api if it is that hard else just 1-2 days would be enough
we would be happy if you guys just added a leaderboards api then slowly add a user stats api and so on
@torpid crypt @plush walrus want to scrape the stats from the server?
no
Back in 2015 https://players.cubecraft.net was removed with the promise that it would be back soon with a new public API. I've seen enough promises not being uphold from Cube to know that whatever new promise they say can't be trusted
oh alr then, could be a fun project doe
yeh that's why we just make our own protocol client and scrape it from the server itself
Not worth the time for me. Even so, if we were to do what Cube haven't, then why would Cube ever invest time into it themselves
alr then
does anyone know why this happens
im trying to only get an extension to work on the reports site but it says its not valid
I am making a Unity game but I am a c++ programmer :((
Thats for CubeCraft questions tho
Well this chat is not even for questions
It’s for people who doesn’t have lives
Like me :3
But yeah if you need assist you should check the staff help it would be more helpful than here
Also what’s your search engine?
We all do
But it’s like war when you code in a different proglang
why in the 7 planets
whats bad about it-
First of all,google! Google spies on you,steal your search history and sell it.
So definitely everyone wants privacy and google sucks for that
Second of all,chrome eats RAM as if it was cereal
Third of all,chrome is so 2008
which is best
Well it depends
But
Brave
Mozilla Firefox
DuckDuckGo
Those are fantastic
If you want something similar to chrome then try firefox
If you want money while you are navigating with privacy then go to Brave
will using firefox instead of chrome as my primary browser speed up my computer
Yeah firefox is the best
Except the part that he is not a fox
Firefox is a red panda
okay so it will-
I downloaded Firefox, do i delete chrome now @minor roost ?
make it using dx11 thne
then
use shaders
or vulkan
also if you are making games in unity there is a lot of useless bloat added and it will take 1 gb of ram just to run a world with simple stuff
Yeah
I am just doomed
I first started with java to code mc plugins
Then went to python cuz I didn’t understand anything in java
Back to java
Rage quit
After months,go to C++
Love c++
Make my dream goal by making a game
Download unity
Return to square one with c#
bro don't switch so fast
work with language you love
dx11 is good for making games, it gonna help you in your game dev life since it is lightweight, and you have to make everything on your own
I can’t help it
actually start by giving up, privacy is a thing of the past
anyways, who knows stuff about imgui?
there is no rule saying i could not ask to ask so am just doing that
am not asking a doubt about imgui, am just trying to flex my gui i made in imgui
i made it look like it is made in flutter, this is how imgui actually looks like
i can't find the function to do it
so i have to add a shader which idk how to yet
i see you are flexing too 
anyways behold i just finished a gui till the part i designed it
yeh i was wondering if i had to do that, can ya gime a value currently using 0.80 red & green
id use something like rgb(191, 52, 52) for red and rgb(30, 135, 47) for green
but its personal preference ig
am kinda multiplying it by 225 alpha so it will look darker
oh fair
am gonna try them thx
didnt really test them together
kinda pops less am gonna decrease the values a little
looks a bit better imo
bro this an't flutter, anyways blur in v0.2
gonna release v0.1 in 2 days
v0.2 gonna take me more then 1 month bc school starting
wish i could say that
my school starting in 2 more days
How would you guys write regex accepting all strings not containing "CUBECRAFT"?
matching this DFA, blank arrows representing anything not matching any other outgoing arrow
sorry for the mess
.
^(?!.*CUBECRAFT).* ?
I have never seen ! be used in regex.
hm
skill issue
🤓
I just want to know if it's doable.
well this is not really a use case of regex anyway
especially since it might pop up on an exam
not everything
Show me regex for an arbitrary number of a's followed by the same number of b's.
That's not doable.
cursed
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
Well, at least I can safely conclude that email verification won't pop up on an exam.
Unless gandalf.
oh heck
It won't even fit lmfao
so that's why discord won't let me search regex, even though it would be super useful in certain scenarios
like bro, you okay discord?
look, any option so that doesn't happen is good with me
Discord search is not usable imo
<img src="img/idosos2.jpg" class="d-block w-60 content-center" alt="idosos sorrindo"> ```
how the heck do i center this
my content-center class i made on CSS aint working

redos?
regex denial of service
sounds kinda cool
use flexbox
.flex-container {
display: flex;
justify-content: center;
align-items: center;
}```
Q: Why do mathematicians often confuse Christmas and Halloween?
A: Because Oct 31 = Dec 25.
i dont get it
Bad but good. I approve 10/10
xd
html?
Yep
Yes
It'd be more useful if you also showed us the css
but maybe you can try margin: auto;
Or using flexbox
add display: flex; and justify-content: center; to the img container
😔
oh yes idansdiabfaifbkfjbdksjbfiasbdaifbfobi = fix problem
Hey maybe margin auto worked for him who knows xD
true true
Also @plush walrus saw your cube profile scanner extension a while ago on GitHub
Looks cool haha
I figured xd
there used to be a project
Coincidentally I was developing a browser extension at the time as well lool
that you would visualise your cubecraft forums profile in a simple editor
aha
but it was kinda stupid idea so ye
I see xd
you could use the extension to get your current profile and then modify it
ahh that's neat I guess loool
and you'd see how it would look like
Did you develop for chromium first and then port it to Firefox?
Or the other way around
yup
first firefox
since I use firefox so it was easier with debugging etc
no not really
Or is there a tool for that lol
I had to update the manifest.json from ver 2 to ver 3
Or did you do it manually
since 2 is old and chrome does not support it
yea I did
and then just one line like
browser.tabs.executeScript({file: "/scanner.js"}); --> chrome.tabs.executeScript({file: "/scanner.js"});
yea I think so
cool
you should probably use v3
Yeah cuz I developed mine for chromium (v3) and I want to port it to FF as well at one point
that's good
well I do not think the api is much different but I haven't used it much
Not much no
just the browser object is actually called browser in ff unlike chrome in chrome
Just gotta look at the docs for some stuff that's different in v3 (I did stumble upon a few things)
Yeah
I saw that too xd
yea I also had to make a few changes
also btw
publishing to the firefox marketplace is way easier
and also free
unlike for chrome
It's free on chrome too afaik?
no
rlly?
you gotta pay one-time 5$ to create a dev account
I thought it was
then you can publish however you want afaik
Oh bruh
Welp, I gotta go on studying for my test tomorrow. Thanks for answering some questions x)
npnp
google play store is even worse
Yea that's like what, 25$?
isnt apple app store even worse?
Wasnt it like much more
Yeah
+15-30% of ur paymanets
No ide
100 dollars + extra stuff
God
yeah that was what i thought
This is another reason why android > apple
Ye and for Google it's 25$
And it's one time, then you can publish as many apps as u want
🙏🙏🙏
Apple asks so many taxes
Yeah, I thought for Google Play you could only use a credit card as well but not sure
I can't even get a credit card where I live because I don't have a job 🤡
Yep, looks like credit card only
You'll have to ask your parents if you're under 18 in the Netherlands lmao
As if Google can check that 😭
i mean if someone makes bad extension and uploads it
then it is like useless server space for google
so they put 5$ so people will think twice before uploading it
that's btw google play store
That's what I said lol
I mean try getting a credit card under 18 lol
The bank will say no 🙃
I mean they do have things like greenlight that let your kids do that
or they can start one but just with parental guidence
I'm talking about the Netherlands specifically
x)
i hate it, anyways how to make this?
@sweet barn can i change the string and still send it to the server, like "Boredsathvik is dancing" (am trying to make feature for my client)
or is it a new packet? that is only for like 6-8 strings?
Fully clientside as far as I’m aware
alr thx
you mean it does not show up on other people's client?
It does
It’s a message the client makes on its own when an emote packet is sent
It’s never sent to the server nor is sent from the server
Be an discord employee :p
what no
Reverse a linked list and ur good
Guys im thinking of making my own minecraft server can anyone send me a dm with either a tutorial on how to start or a link on how to make a ip to a server ty if possible also tag me
ikr
Why do you want us to DM you a tutorial?
what is your client name?
Brib client, gonna change name once i get nice one

I use an A4 pad
The program doesn't need to function for me
I get joy from just writing it
kk
I use pencil and paper and compile it via ocr 🤡
Damn
Same! :D
xd
Anyone from argentina that is studying sth related to programming?
Just curious, for those here who program, what are your opinions on maths?
Want to know what people outside of where I live think :P
It's a necessary evil
necessary, but fun as long as you understand it
yeh
@brisk badge i heard you are good at math, how to make a cps counter?
i need math behind it
Loop every second and register the clicks in between
After every cycle calculate the average
Or idk
sounds logical ye
but that gonna calculate avg click over a very long time is gonna be not accurate,
i need a counter that is gonna go down and come up fast
i tried a circular buffer but i can't fix my code
After you stop clocking for a while
Just reset
Or reset average every n seconds u want
Or reset every seconds
id do that
every second bad
since it will not be soo smooth
oh wait i think i wrote one in my before rewrite
if the cps counter changes every 0.1 seconds it is hardly readably
yehhhh boi i wrote one lets go
omg it was gonna take me a hella lot of time if i did not find this
nice
noice my past self never thought of naming it better then this
unsigned int ldcps = 0;
unsigned int rdcps = 0;
for (auto clicks : lcps)
{
ldcps += clicks;
}
for (auto clicks : rcps)
{
rdcps += clicks;
}```
because c++ formatter on vscode is very bad
i wanted to put the one liner on the same line as for loop but formatter yoinks it to next line 😔
i dont rlly use a formatter
wish i couldn't but am too lazy to not use a formatter
yooo i found why my cps counter was not working
i was converting the float to int and passing it in ._.
😳
Found this in a "password generator" project :)
second per click
Yeah told him about it :p
Basically;
upon every click:
clicks++
wait 1 second
clicks--
Just let your client grab the clicks whenever it needs them and it'll show accurate click counts
If you're going for high performance the waiting can be skipped and the resetting of the click count can done in the retrieval of the clicks, assuming that happens exactly every one second. Otherwise this should look very nice
does not show accurate cps doe, but sounds better tbh
💔
My reaction
that must be yandere dev
omg i finaly figured out how to make a smooth fps counter
it clicked finaly took me 2 hours
Weirdly enough this convo showed at the perfect timing as I'm also trying to make a chrome extensions then port it to FF XD
bro my gf found what was wrong with my code in 20 secs
i was trying to find what was wrong for 20 minutes
you got a gf?
and you know how to code?
oh
i was doing my part of my homework
i & quartz are shocked you got a gf
oh yeah quartz
give us tips we need some
ok,
1- dont be bad
who asked who out?
i need to know for a school project
no one
we just started
and here we are
its been 3 months
o_o
L, just make games before them become gamer behind them
i had a stroke reading that but ok
same
basically, our homework is to make a website simulating a mobile app that helps monitoring old people
i mean we still begginers
how you gonna moniter old people too
please, try using your hands to type
how are you going to moniter old people with a website?
@zinc steppe
just using the web cam?
no, like
its simple stuff
notifications to drink his pills and stuff
sending messages
calling people
tests to see if the old person is fine
its looking kinda cool
im using bootstrap
ok
structure looks kinda nice
giving you 9/10 on that
the file names not english that why i removed one mark
^ xd
I'd especially avoid using "special characters" not used in the English alphabet like ç
Oo ok
also i suggest you use vite
@tawdry radish teach me how to code
no, watch youtube
no, go to w3schools.
Also agree that English file naming is probably the best choice
English everything is the best when it comes to coding 😛
I sometimes have english programs and everything, than I see comments in my language in there and I get so confused 🤣
because sometimes they might not have support if you use non English chars thus giving you more brain damage
C+ Python
What is coding? Coding, sometimes called computer programming, is how we communicate with computers. Code tells a computer what actions to take, and writing code is like creating a set of instructions. By learning to write code, you can tell computers what to do or how to behave in a much faster way.
I have a subject about computers at school and they teach us python in DUTCH (they give it Dutch variable and function names) and that’s so cringe to me
lool
I feel you...
That is very unlucky
Whats that
Vite is a JavaScript build tool that makes it faster and easier to build web applications. It's similar to tools like Webpack, but relies on modern browser features like ES Modules to simplify and speed-up the build process.
#javascript #webdev #100SecondsOfCode
🔗 Resources
Vite Docs https://vitejs.dev
Vite SSR Plugin https://vite-plugin-ssr...
best
they named variables like this too: my_variable_name
Ah yes much fun... I like camelCase way more
ye, lowerCamelCase specifically
others are inferior
agreed
show pics
In my eyes it's just very clean and readable for using it as variable/functions names
omw
cant find a good example
but you dont want to see it, trust me
dutch
oh python
oh ye python lol
but isn't snake case PEP recommended?
it is i believe
but still, camelcase is so much more clean
and the dutch names are terrible enough
camel case op
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
The zen of python 😍
:o
that's funny because Guido van Rossum is dutch
Ye python is developed in the netherlands
I could tell
Wow no way python is developed in the nether.
Omg
Egg
egg
:o
OwO
graph this
Hurts my eyes
Looks like a lot of eggs on a pan. I'll name it "the egg function". Ez
Thank you for your input Alex
You're welcome! 😄
😄
that is what i like to call: a fanteggstic name
HTML is a programming language
Opens task manager
Right clicks on you
Clicks on "End Task"
@next beacon
We all know this should be pinned
Pin of shame

HTML more like not a programming language
Never knew it upset that many people 😂
I take back what I said
XML is a programming language. Send me a taco if I'm wrong.
🌮
amogus
The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript. HTML. (HyperText Markup Language)
wikipedia
ya
to stop confusion
A programming language is any set of rules that converts strings, or graphical program elements in the case of visual programming languages, to various kinds of machine code output. Programming languages are one kind of computer language, and are used in computer programming to implement algorithms.
