#💻︱programming
1 messages · Page 4 of 1
Malware is a problem if you're stupid, just check what you are installing
Just common scare tactics
Technically you are, but that's if you grant any random app root access. If you have something like Magisk, it'll pop up a message to tell you when something requests access and you can deny it.
You're more likely to get it due to an OEM not providing your device the latest Android security patch.
how do for loop in html
you dont
yesyes, is impossible
<html>
<body>
<p>for loop in html</p>
</body>
</html>
for what do you need it?
mom, can we have for loop in html?
no there is for loop in html at home
for loop in html at home
nah I don't wanna risk downloading Magisk or anything that interferes with system.
Ok so you mean there shouldn't be any malware issues if I just want to like get the Minecraft worlds from Android folder using root access
right?
no
Yes you're phone will become bricked if you access the Minecraft folder with root permissions
but-
/j if it wasn't obvious
then how do I get minecraft worlds
Assuming you download a reputable file explorer with root access, you should be fine
I'll use mobile's default file explorer :/
Default file explorer doesn't have permission
Default doesn't support viewing root files so you'll need a third party app.
Google's File app?
Personally, I use Total Commander
Personally, there is no other file explorer better than MiXplorer
okkkk
see this is program expert
make game thx
html cant really be used to make games. HTML is typically used for building websites. Any layout and formatting is added with CSS, and functionality is done with JavaScript.
therefore, you should learn javascript if you want to make a game on a website
Bruh 💀
psssst that was a joke
it's no longer funny if no one gets the joke
HTML5
I have a whole site of HTML5 games.
Lol HTML 5 Replaced Flash.
You could make games
Flash was an extreme security risk and needed to be rewritten.
That's why HTML5 came out and replaced it.
How is flash a security risk
lots of users --> targeted for exploits --> regular security patches
well in other words it was too expensive for Adobe to maintain
and they do not use javascript?
Now how do I declare a variable in html
idk
<html>
<body>
</p>declare a variable in html
</p>
</body>
</html>
Hello
static {
threadPool = new ThreadPoolExecutor(4, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new SynchronousQueue<>());
dir = new File(Minecraft.getMinecraft().gameDir, "xxxx");
if (!Files.exists(dir.toPath())) {
try {
Files.createDirectories(dir.toPath());
} catch (IOException ignored) {}
}
}
tf is this syntax
its variable assigning right?
How is it called?
It's a static initialiser, that gets called when the class is first loaded. Also only gets executed once.
Its called a static block
Wait, but isn't it called when we like create a variable?
If you reference a class that has a static initialiser in a variable or by calling one of its methods, it will cause the class to be loaded by the JVM, which then causes the static initialiser to be executed.
Java only loads classes when they are referenced.
cool language
minecraft java edition
A hacker
Java big fun 😛
Cubecraft skyblock
Admins plss can you fix this glitch.
I'm mining the quart generator and suddenly i got kick. And the chat say error(something), and i rejoin and mine again and while i mining the quartz i got kick again. And after i rejoin the quartz is gone😣.
It already happen in the past few months but i ignore it because i thought it was gonna be okay. And now it's still not fixed so plss fixed the glitch. Thank you
actually #🔨︱report・department
Happy 6
My skin on cube works perfectly fine. Maybe change the skin, to see if it's a problem with that specific skin or report the bug
what kind of skin
Are you using a skin made in bedrock with stuff from the marketplace or character editor?
Heya, we’re aware of this issue. And working on a fix 😄
take 4 minebucks or double it and give it to the next person
GIMME
Hello, I have a question for all of you designers/programmers, aka all the people who know how Bedrock texture packs work. I know the basics of making texture packs and editing things, but I'm not very familiar with names of certain areas yet. What I'm trying to do is either make the text in red circle smaller or invisible since it's kinda bugging me. I used to have a texture pack that hid it (so I know it's possible), but now I made my own and I have no clue what in the .json file controls that. The other option is, to leave that and remove the enchant list under the item.
Any help and tips will be greatly appreciated
Delete and join new world
Yea no... It's a texture pack thingy
Hello! Im trying to make custome uis!
Ive made some of them but I dont know how to test them
I know in cubecraft there is custom ui
maybe someone knows how to open it ingame!
If you havent got an answer yet, i would just tag or dm a texture Designer
nice
dude why show so much love instead of just pinging one lmfao
With a lot more Googling and trial and error I figured it out... But maybe I'll ask some Texture wizards one day, so I can understand why it works the way it works. Since currently it's just best guess 😛
nah things shouldn't work the way it works
?
sorry, can anyone help me about minecraft development ?
What kind?
I'm interested in how I can start learning to make minecraft server plugins, what programming language should I learn and how
That looks perfectly logical 😛
is minecraft server hosting free? Or is there an alternative to making server public without hosting it with money?
There are some free mc hosting sites, but it’ll probably be on an under powered machine. But if you’re just playing with a few friends and without too much plugins/… it should be fine
Otherwise, a vps or paid hosting platform might be worth it if you go with a lower tier one. They can be affordable
Home pc
I mean, you can host your own server on a home pc, but the experience is gonna get real bad real fast if you get more players on...
So a hosting platform would be the wisest in most cases.
cool
imma use free hosting then thx
now I just need to find out how to get free bot account
How to make that XD
Thx
But all that tells is what is a LAN
But I am saying, how do I do that in Minecraft?
u can make a singleplayer world be accessible to everyone in the same network
java wise
oh
now I understand
I'll have to pay an Internet service provider to host my server really?
Free hosting best ngl ok thx
No what
yes bro
I ain't paying an Internet service provider and giving away password to others so we can play LAN
if that's what it is.
You’d use your home network
Or the network where you host the party ig
Just open some ports, stop caring about security and you’re good to go
stop caring about security could be the last words I'd ever hear lmao
I'm caring about security
then dont host it on your local network!
G
Can i be unbanned from the server pls?
how'd you get banned
Hi! See #📝︱appeal・department for more information on how to appeal your punishment :)
i did. but i get no reply on gmail.idk why
I was just playing eggwars. And my game started lagging cuz my network is bad. then I got banned. I just wanna play the server.
weird, i dont know why you would get banned for bad ping
They get back to everyone, it sometimes just takes a bit more time. Sadly there is noting more than you can do other than patiently wait for a team member to respond to the appeal.
yeh. i only get 19 more days. but im gonna wait. hey guys im new with this game. who wanna show me how to play it. if u wanna show me lets chat discord
U don't have to open ports
If u make a lan party
The whole point of a lan party is that u are all in same house connected to the same network
Well yes
Sometimes the game thinks ur flying or something. I’ve only gotten kicked from lag but never banned
I am not paying for a public network either, if that exists
Overall, I am not paying
Then you wont be able to do it💁♂️
😭
Man u have no idea what you are talking about 90% of the time
If u have a router in ur home u have a local network
U don't have to pay any additional costs
Then ur best choice is some free hosting like aternos
Yes yes I said I'm doing that
Bro has no idea that I have to give the password of my router to everyone around the world to let them play on LAN with me.
They'd be in your house
😔
and I don't like to make IRL friends from online at all
You would also have to tell them your home adress and invite them to it
LAN is usually intended for when more than one person is connected to the same wifi. If they are not, for security purposes, I would suggest a free server hoster like Aternos or Minehut
You're definitely not invited lol
Wow minehut is free? Thanks
Aternos works only when players are online. Guess I have to find out how to make a free bot account
Dude this face perfectly matches with the one in your pfp wow.

hi
Hello 👋
You're so accurate
oh don't mention cuz it's pretty obvious lol
haha
!rank
this.gameEventHandler = new GameEventHandler(this);
// Define this before behaviors try and get it, or else it will be null and the builds will fail!
this.playerContext = PrimaryPlayerContext.INSTANCE;
{
// the Behavior constructor calls baritone.registerBehavior(this) so this populates the behaviors arraylist
pathingBehavior = new PathingBehavior(this);
lookBehavior = new LookBehavior(this);
inventoryBehavior = new InventoryBehavior(this);
inputOverrideHandler = new InputOverrideHandler(this);
waypointBehavior = new WaypointBehavior(this);
}
what is this syntax?
why is half of it wrapped in ?unneccesary? {} block?
Looks like one yes
so theres no point of it?
also on the topic of weird java syntax
DefaultCommands.createAll(baritone).forEach(this.registry::register);
``` tf is this?
the double dot one
I believe its is the same (or at least very similar) to the lambda expression (->), if you are familiar with that one
Basically it will call the function register() of the registry instance
More about it:
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
hello
Wow I have no clue how java is meant to work lol. I use python
I prefer JS
C# > Java
JS > Python
i can't rlly have an opinion as i've nvr rlly explored different lanuages much
👀
Someone needs to program a better anti cheat for this server lol
The anticheat is fine
You cant really compare python to js to be fair
actualy they are both are interpreter based so i can comperete them
for example u cant comperate c++ to python bc c++ is compiled to engine code
Also i prefer JS syntax
like WTF is this
len(list)
vs js
list.length;
this is huhe diference also for loops are suck in python
i just hate python syntax its just no logical and intuitive language

sry machine code no engine code 🥹
It doesn't really matter to a programmer if a language is being interpreted or compiled, it's just a difference in speed
The languages have other uses. Python is very useful to learn as a beginner for its simplicity, and it is useful for machine learning and data analysis and visualisation. Javascript is mostly used on the Web
How in the world is the len function your problem in python
Prolly OCD
Syntax is fine for me kinda, I've began hating non static typing tho
I personally idk why it's len() rather than a method .length()
Maybe I'm just too used to java and everything being an object there
its just the way you read it
I don't think either approach is bad, if anything the Java one is stricter for typing as you cannot use ".length" on a class that does not support it, whereas python does not care and will attempt to run the len method on the class/type, and error if it can't
we're starting with learning python today :')
Definitely look into using Pylint along with Python 3.10 typing module. You can enforce stricter typing that makes your code far more readable
Yeah, I do. Still don't like it
It makes a lot better, but idk. I really love the static typing stuff
I think thats the beauty of it though, you can quickly get things running without having to worry so much about static typing. probably why the language is so popular in the science field/data visuals
but for my university project I am using as many of the python syntax features as I can, also creating my own classes to "enforce" static typing
but u said You cant compare python and Js but You can, anyone can, its just preference.
interpreted languages have line by line entry point but compiler languages had entry_point so u shouldnt take these different types of language as somethink what doesnt metter
if yes then what is better Windows bath files language or c++
thats make no sense to compare these languages
Thats actualy try but nodeJS servers are also used in lots of services its not web development only,
just want to say my preference
JS > Python
For example Generators and Iterators are bad in python implementation
also u cant add int to string thats also annoying
a = 10
print("My number:" + a)
this will throw error
🤷♂️
i think python is just more popular, and more programming begginer know about it bc its easier lang syntax but less intuitive
And actualy design of JS is really cool, Its Prototype based OOP
I mean this makes sense, a string is a string and an int is an int, so you should make it clear to the reader of the code that you're intending the int to become a string
Or, just use print's multi argument support instead and let it do the work for you 🙂
a = 10
print("My number:", a)
>>> My number: 10
ya but when u want new string from string + int then u must convert int to string ur self ur use string formating both js annoying isnt it?
I wouldn't say it was annoying
It makes the code far more readable
I just personally don't think any language is necessarily "better" than another, its entirely dependant on your use case and what you prefer anyways 😛
think your account has to be linked, its to stop spam from unverified users
You need to boost the server if you want reactions
Yeah, it really does have some beauty to it. I love it when making quick things, but when I'm working on some more complicated stuff, I really use typing everyone
@minor roost what region do you normally connect to
eu, as, na?
guessing you are on version 1.19.62? (bottom right on home menu screen)
our team is looking into it, unfortunately it may take some time for things to restart
Reactions are generally disabled, even if your account is Linked. I have it linked and still can't use reactions on messages.
Oh I didn't see @swegg comment on it, yea you need Nitro boosts.
bruh
Dude ig the best programming language to a programmer depends on his purpose. One programming language won't be able to provide you with everything.
(other than AI languages I think, lol)
Ah so you're telling me that the fact I watched a hacker fly at mach 200 killing everyone with aura for 20 solid minutes even after sr reporting them is considered a "fine" anti cheat?
I have a whole minute video of this dude just unleashing everything. I mean I could code a better anti cheat with command blocks.
Get the hint x
sr has nothing to do with sentinel
after the debounce rule change the anticheat stopped doing it's thing
same
huh?
hey do u think that its possible to create a uv map for 2d sprites?
All it would literally take would be a few "test for" command blocks checking for player coordinates.
omg why haven't they thought of that 🤯🤯🤯
Unfortunately its a lot more complicated than that 🙂 You can read more about Sentinel over here https://www.cubecraft.net/threads/behind-the-cube-2-sentinel.270731/
You cant check the players coordinates with commands in bedrock, at least not with a simple and fast way
doesn't the server run on java 
Certainly not on commands haha
Are you sure? I've done a few, I mean I guess attaching an invisible entity to every single player would eventually cause immense lag.
I'm sure plugins are better than command blocks
Ok
well thats for sure
No no I agree but I'm just saying if it's simple enough to use command blocks for, it shouldn't be that hard to run an actual real decent plugin
Really?
no not really
:(
ofc native command blocks are gonna be better than 3rd party plugins
Tell me better how to cheat the discord
I want to use emojis in the description, but as they look like :emojiName: for discord they are <@emojiId>
:(
Cube had 3 full-time anti cheat developers, that were working on Sentinel for Java & Bedrock for more than 2 years. And if they couldn't do it perfectly in all those years, I doubt a few commands will be able to do it better. Anti-cheats on Bedrock are hard really hard. So yes, the Devs are doing their best, it's just that they are fighting a very hard war.
Also, maybe a few more sentences from that thread, written my former Devs on why Bedrock cheat detection is just so hard. Now with Minecraft Bedrock edition, creating an anti-cheat is extremely difficult. The game is still incredibly easy to create mods for, but we have no access to view its source code and therefore create checks based on its internal algorithms. So we're flying blind, making checks created solely from trial and error. This is why development for Sentinel Bedrock is extremely slow. (written by Hulk_)
The funny thing is, I've already cheated on discord, because my description is 16 characters longer than discord gives me
Is this only a problem with Bedrock minecraft?
Minecraft is still not "an open source game", but way more is known about how Java works. As further stated by Hulk_ Creating an anti-cheat for a closed source video-game is incredibly difficult, which is why our Java Sentinel is much more mature. For anything more, even though I do know quite some about coding already you should ask someone with actual experience with MC Java since I never really looked into it or learned about how it works...
I see, it's just that you talked about Bedrock and nothing about Java, although both are without source code. :D
I'm mostly going here from what was written in the Behind the Cube thread and what I already know about the games. But yea, I did just give you the snippets talking about Bedrock Sentinel
Also yea, if you haven't read the article yet, I do suggest reading it, it's a very nice insight
The bedrock server is based off java
It’s a java server that doesn’t allow java players to join only bedrock
Can easily test with the knockback system
All the java issues from the KB or in bedrock
doesnt it also follow java 1.9 scaling with enchants and food
It did, food with saturations cause 1.9 healing
Idk about damage still but
Sight
You're still not getting their coordinates :). Only way is to shoot 3 raycasts (in x, y and z direction) until the delta position of x, y or z is smaller that 0.5. If you count the steps that takes, then those are your position coordinates! :D (Just need to adjust for negative coords)
sounds simple enough...
Very inefficiënt and slow, though
What if they're 10 thousand blocks away from the origin? To optimise, you would need to start rays with steps of like 1000 blocks, and keep makign that smaller and smaller, until you reach your wanted precision (for each direction(
And you need to do that for all players, pretty frequently
I have an idea, check what chunk someone is and if they move multiple chunks too fast in a certain amount of time in a Linear direction on X/Y/Z = ban
Banning cheaters isn’t the problem lol, not banning legit players is the problem
If your idea sounds easy, it probably won’t work on a large scale nor with lag and other issues involved
it wouldn't ban real players unless they are using an elytra but cube bedrock doesn't have them
not with fireworks atleast
that proivide too fast of speeds
Or a horse with the speed pot in lucky.
you could just disable it on certain servers or up the chunk count
or the time
you could also if you label chunks as "void" or "unvoid" and see a player staying in one for too long just ban them easy. and if there is a block placed in it it marks it as unvoid
Damn, rip people lagging over the void ig
Don’t think checking chunks for blocks is very efficient anyway.
Yes but you don't need their coordinates if using an invisible entity because you can just pull the data from that entity of which is being spawned through the commands, you wouldn't need to track coordinates at that point
... on java, yes. On bedrock, no
And you can pull the nbt data of players too on java
So bedrock IS worse than I thought
Don't know why I ever switched away from Java besides ease of access
Yes! ;)
I literally only switched to bedrock because I had to sell my PC for college funds that I never even used, but I still had my xbox so I bought bedrock hoping it was somewhat the same. Who knew C++ was so garbage compared to JavaScript 😂
Anyway, off to bed, sorry for being so stubborn.
JavaScript..? 🤔
Didn't you know
no
No problem. I get the confusing of mixing up versions. I use commands of both versions, and (especially before the update) kept writing the wrong execute command formats hahah
java is not javascript and c++ is more efficient than java
regardless, i dont think the command block system was decided based on the language used
Java source code has been cracked a long time ago afaik
Well, it's more likely that the old versions are hacked and the new ones are not
It is just lacking behind in updates
مش عارف اتكلم انجليزي
Cringe
What do programming languages have to do with it?
Just because bedrock minecraft isn't like java minecraft doesn't mean c++ is bad.... c++ is a powerful, fast and flexible programming language, unlike java...
Oh, ok
It's just that people usually like to spam Arabic words
he was talking about the bedrock commands, not the language that the game is written in
Either I'm already confused, or you are)
Or maybe my translator doesn't translate correctly :D
You're a full stack developer, and you don't speak English?
Yes)
I can't speak it and I don't translate words well.
Thanks to Russian education ;)
Interesting
Well the code is right there in your mc folder. You can decompile it but it's obfuscated so methods and classes will have weird names
There are ongoing projects like mc coder pack partnered with forge that are giving meaningful names
Fabric uses yarn I think
Oh and there are official but all rights reserved mappings from mojang
ez way: rename app name to "app_name.zip" (without quotes). Unzip the zip and check the internal code 👍
What if the app name is not app_name what to do
Then use the actual app name and add .zip
Dose work on apk (android) free?
nothing he says makes any sense xD
you think
I tried unzipping notepad internal code and it hanged my pc.
But when it finally opened one day...
It was all random characters of alien language
by the process I said
No after I open the code
That too in notepad
Then it hangs pc
Did u even try what I said, lol
literally no issues lmao
Assuming im a westener lmao
Ok
Special case
Also you can know the internal code of Google, but that's too huge of a code and could potentially give you a heart attack.
compiled code
???
I thought that was machine code
same thing
nvm. I am saying, you can see the unzipping of every app.
omw to unzip google
Indeed. I would never be able to read that.
Change name of "Google Chrome" app to "Google Chrome.zip" (without quotes, also use whatever the name of the app is on ur device)
What emoji is dat
husk
but then i got no browser 😢 how do i play fartnite then
im speechless
bro found a way to crack google
Yi long ma
Use bing pls
What did I just read
No browser for fart nighters.
Also just remove the .zip from the app name.
No man, for that I need to know machine language and have a high-specs gaming pc
Nah use Microsoft Edge or MSN
I recommend netscape
Notepad better
||(fun fact: google runs off notepad)|| 💀
Petition to make this channels read only for certain individuals
As my brain cannot physically comprehend with what it sees here
Second this
Why man. Just because you didn't know a thing existed doesn't mean that you can just refuse to accept it?
Do you need the zip files for notepad?
???
Third this
Ok then, gimme just some days I will show you the inner working of notepad
And then you can keep being so edgy
This should be punishable.
Ok then I'll not send notepad internal code :/
who knows how to do python code here?
Inb4 someone links dontasktoask
But i was waiting for it 😢
Im trying to learn python so that i can become a game developer. So i was hopping if you would help?
Well there's no point in me teaching you as there are a Lots of good courses online
game developing with python is wild😭
yeh, but its boring bro
You see. Even yu understand
either learn C# along with unity engine or C++ with unreal
python is not gonna get you far in game developing
Oh why?
Ohh. But i really wanna learn it
na na you can, I am just saying at some point you would need to either pick up c# or c++ if you wanna get far in game development
Ok. So uhh what website do i need. I need a really good one not a boring one
for python? go to YouTube and find a tutorial lol
how bout for C++ and C#
same thing applies, there are some great tutorials on yt
ok. I will try and check on that
The first programming language should not be C++
You will die
You'll gain a advantage for learning the others, but actually learning C++ itself will be hell
shhh let him gain experience.
c++ as first language will build you up to be a 10x dev
._.
Honestly u will prob get discouraged if u try to learn c++ as your first language and all by yourself
to add to that you will prob follow trash tutorials online and not understand anything
Also most likely pick up bad coding practices
And imo c++ is ugly
Also just realized that If u slur, discord's auto moderation causes complete crash of mobile app lol
it's good moderation
average java developer 💀
go back to writing boiler plate!
Indeed
I like boilerplate
No need to be rude tho
just lil bit
At our Uni, the first programming class that you have starts you off with C++. So people that haven't programmed before Uni (and there are quite a few of them) start with it...
I started of in High school with Java, but I'm not really sure if that's really better 😅
Wher godot
is there anyone who knows a lot about minecraft development? Dm me
It's easier to just ask your question, if someone knows the answer they'll reply
Minecraft development!
🫠
Fax
look up dontasktoask on google and you'll see a good example why
oh thanks I found it again
hi
Ok in my defense I have no defense
hi
hi
Hello 👋
I shall just rephrase and remove all I said lol
I'm in high school, not an IT school, more like physics and math one. But we have computer classes with programming.
it's a real pain cuz the teacher has no idea what he's talking about. Hence nobody understands anything and I have to help everyone including teacher
If he started with python which is pretty straightforward I'm sure ppl with a bit of help would be able to pick it up by themselves
But c++ is much harder syntax wise
I have always used Java, but for the following rounds of the olympiad, c++ is mandatory 
But it won't be that bad i believe
i have a memory leak. I am unable to find it
https://gitlab.com/szko-a/musicplayer heres the code and any tips?
@minor roost I've not looked deeply into your code but as soon as I saw the word "Queue" and python, you will want to look into the threading module which has concurrent-safe implementations of queues, variable locks etc.
You are likely running into an issue like that, where two threads are trying to modify a variable or access a queue and its causing issues
Queue object is an atribbute of Player object only, everything goes tru player. I dont think more than 1 thread tries to modify queue. Anyway could you give me a link as i cant find anything about threading and concurrent-safe implementations
not really related to programming is it 😛
@minor roost pls explain
yeah this is actually most likely where a memory leak is happening. you never close the file so it stays in memory forever
Well the player gets orders via websocket
If there's a better way pls tell me
And the player program can't have ports open
match if you’re on 3.10 or 3.11, don’t remember when it was added
yes
many thousands of packages on linux systems only support a specific version for that specific os. since python is so heavily used
for example, raspian comes with 3.7. I tried upgrading to 3.10 and it causes a whole mess because many system scripts do not support that version
also depends on library support, not everyone updates things anymore or wants to
lots of driver libraries for hardware on raspberry pi are written for 3.7 only
I understand if the if the system for whatever reason cant support the newer reasons or some goofy library doesnt support but if it supports then one should update
nvm i remember myself using torch or smth else and it wouldnt work because whatever
yeah there is not really a reason to update unless you want all the new syntax changes and what not
also each version gets like 5+ years of security updates
I don't like switch in java, doubt I will like it In python
Can't you take the pl.taskID = None outside the elif blocks?
🔁
taskId = jMessage["taskId"]
pl.taskId = taskId
``` Kinda insane honestly
pl.taskId = jMessage["taskId"]
``` Couldn't do this?
random variables that arent used
No cuz I want the task to be made None after the method called on pl object has finished
Happens when u develop something and encounter a problem
Fixing problems was more important that implementing that feature
If you have the assignment after the whole "if/else" block, the task will still be made to None after the pl object has finished
Not to mention that all that system on taskIds is flooded i it's core design and I have to rethink it all
I.e
if my_func == "next":
pl.next()
elif my_func == "prev":
pl.previous()
else:
pl.play()
pl.taskID = None
Yes but it will be made None regardless If it was matched In the if statement
But you are doing that anyway
Hmmm
Your code looks like this at the moment right:
if my_func == "next":
pl.next()
pl.taskID = None
elif my_func == "prev":
pl.previous()
pl.taskID = None
else:
pl.play()
pl.taskID = None
I don't think Im setting taskId to none in else
To avoid repeating the pl.taskID = None in every if/else block, you can just do it after the if/else block
Whoops could be actually
I got used to with statements
But never remember how to type them xD
What IDE are you using to program Python btw? 🙂
Thanks i will check it out. Was extremely busy due to protest at russian's embassy, had to do some photos
I need photography channel here anyway xD
That smiley face is scary Sir
And pycharm
Try using this plugin https://plugins.jetbrains.com/plugin/11084-pylint
its a linter that gives you lots of feedback on the correctness of your code. it can catch errors like your open file one without closing
it also can suggest ways to make your code more pythonic
Uuu i will def check it out thanks
¯_(ツ)_/¯
Hello everyone
Hey
w3schools is that really necessary 🥲
Sadly i need a little bit mor functionality than this Queue class has
I knew there could be a problem with race conditions but those would be edge cases
However I don't understand how race conditions can lead to memory leaks
Fixed that thanks, but there still a memory leak pretty sure it has something to do with vlc media player
For god knows what reason I can't reuse that instance and add & play another media to it hence I recreate it(I do a release() on it but ig that's not enough)
Muted twice lovely for sending links
What I wanted to say is that it honestly looks like vlc memory leak when playing from url
Thanks to everyone for help
now learn c++ from w3schools and make Minecraft
I find the cursus very limited
I failed to understand such Bri'ish English
@faint knollhey where is the notepad sourcecode
He meant courses
And they indeed cover basics only
Seeing you guys so angry I got too scared to send it.
Ok man, but I'd say that w3schools and such other sites cover a lot of my extra programming knowledge.
But you DO have it, right?
Indeed I do have. But too late, exams going on now.
Ok.
send it
Now... no. After exams sorry
IRL matters, can't help
Btw have you tried what I told you to do?
Now? sure
mean
send screenshot of a part of the source code
He cant he has exams man
oh did he say he had exams
With spigot?
Yes
For that I have to open the pc and yk u don't do that during exams
Well I do
I do the exams on computer
imagine
I prefer to code in my IDE during exams
IDE - Ink Drawing Environment
hi
nice
Hello 👋
Pylint is installed inside the project environment but the plugin is not able to run it. If you just installed it try to run File -> Synchronize or restart your IDE. If the problem persists you may need to manually enter the path to the Pylint executable inside the Plugin settings
restarting didnt work :/
The internet is at your fingertips my friend
I mean the error says what to do, manually set the path to pylint
You need to pip install it if you haven't already
what have you set path as
Windows? Type where pylint in cmd
Where are you putting it?
I'd read that stack overflow question/answer I sent.
You can find where pylint is with this command. Its an executable
nothing
and i got bamboozled
thought its actually there and i dont have to re type it
guess not
guessing you're using a virtual environment
so it should be fine that it uses that autodetected one
so i am not sure what your issue is
i saw grayed out auto detected: path and i thought everything is done and that path is set. Turns out i had to manually type it there again
feels dumb and missleading
thanks for help
@quiet arrow help someone told me to place a ; after each line in python, I think I am gonna cry

should be putting ¤ in the midpoint of every 5th line smh smh
Haha
@quiet arrow @sharp crystal don't mind the library, school makes us use it xd
?? is screenshotting hard
Very much not a fan of the massive indentation with if-else
Probably at school & no dc
Mhm fair
Yes
user doesnt seem like a school supplied one
@royal trench Any reason why you use print and add "\n" instead of println?
Lol
Fair point
@royal trench I kinda want to play it now ;D
Oh wait, the program plays
Oh I totally forgot
I should've used println yea
Yea it was just something for me to see if I would be able to pull it off
insane where is the indentation
🫡teach me
Cuz I don't know
Your editor should indent on its own when you press enter from a line
???
do you press backspace after pressing enter or what
The formatter
did you miss the "automatically" part its turned on by default
Ohhh👀
Idk why but i just got an idea for a new project :O
But it dosent do much
if you use IntelliJ u can just do ctrl+alt+L@dry ermine
🫡sir
Jayden=dumb
Pls explain
vscode that is
I wish maybe when I reach school I'll install it
How do I activate Vs code formatter
if you press enter what happens
I know he was saying he was gonna use IntelliJ that's why I said it
Let me show u
woops
Should look like this, kinda
i mustve missed the part where he said that
try shift alt f
Was in #💬︱english・general
It dosent do anything 💀
/**
* mycode
*/
That's why I'm learning C# & C++
where String[] args 🤨
Gone, reduced to atoms
@plush walrus 💀💀💀💀
Thx for the reminder
😂🫡my school
I don't want too but I gat to learn
Awful take
Java is so future proof, don’t bother learning languages that have current hype as they will likely be replaced easily
just learn assembly as first language since it's the most future proof
Pro coder
😎 😎
master of code
@dry ermine Ctrl+Shift+i
looks like it was written in the bronze age with those colors
no one ever uses that parameter anyways
but isn't it required?
it is not imo, depends on what you want to do with coding
it is sadly
very somewhat
still less questionable design decisions than php 🤡
💀
Bruh literally the 3rd most popular language 💀
jre is installed on many machines
and its not that bad
If Java has 100000 fans I am one of them, if Java has 1 fan then I am the one, if Java has no fans I am dead
the dedication 🙏
very well said brother
Yessir
the syntax is prettier than python imo
There’s 2 types of programming languages, ones people complain about and ones no one uses
we have java at school
Ayo
autocomplete 🦾
every time you start a new project, you need to type 4 extra lines 😢
If it works, it works
but you can write java in 1 line 😉 😉
Doesn’t your IDE add that automatically lol
but you cant hate on oop
I mean Python certainly provides some benefits for beginners, and is simple
no lines wasted 💪
yes haha
Bloomin fr creating beef here lmao 💀
The amount of jokes we could make 💔
@quiet hollow do you code in lisp?
You don’t actually need them
efficiency isnt everything
You can do more than fine without OOP
it is very very useful if you do larger projects
especially when you dont have access to structs, like in jafva
It’s just a preference
no.
It’s a design decision and totally not a flaw in the language
I mean kinda valid but I learned with OOP so that is how I think now
you wont need it for smaller algorythms/programs, but its also useful for not needing files with 500 lines
Anyway, time to go put some dicts with functions in classes
Wdym old days, I learned it last year at school 😭😭
Hmm why
formatting your file
How do I create obj in java 📸
i write programs to write enormous execute if files for minecraft datapacking, and i would have source code files with 600 lines without oop @quiet hollow
hahah
Why
you write with redstone 🤫
Isn't oopcgood
Isn't Oop good
👀👀
Whyyy
💀💀
@quiet hollow ohhhhhhh
Now I see
Why 😭I see java script Is so easy to learn
Java is old 😮💨
💀
omw making a program that lets you use redstone_dust in superflat worlds as text editor
yes
js is headache
I prefer js than java
Ohhh my gosh I have to write the freaking method
😭
i thought it was almost identical to java, so when i was using it for websites, i was very disappointed yes
💀
Bruhh
Ok let's get this straight
What are the good languages that aren't useless
😭
c++ java python
Ok so I can continue learning java right
yes
Ohhh
I hate it soo much
So html CSS and JavaScript?I wanna make a website in the future
go away
then youll need html and css too, but those arent that hard compaired to languages as java or c++
Ohhh my god bro
don't make it complicated
you did mathematics, right? 🤯
So u guys teach me
I changed to just programming/IT
html is very very easy, css is very doable
I love em
ah you were doing both>
I thought you already did
Well, no I just switched
cool cool
Java is for school
I personally picked JavaScript
Then 👀 everyone started taking about now fast and smart phython is
Me in uni💀
Weren’t you doing mathematics?
Fast?
Yes
It was boring, we weren't doing anything. So I switched
Like, it was not boring, but it was boring
idk
Weird stuff
python 3 isnt even that much slower than java actually
Like I dont get bad grades but
Its not hard passing an exam
School is twash
💀its just the future
Obj obj = new Obj()
Common fact
thank me later
Thank u sir your blessed
Python has gotten a lot faster yeah, and if you're using Python; I doubt speed is your main concern anyway
True
fair haha
no no it is
at least depends what u are doing
U knowwww what's fun
Data base 😃🫡
If you're only using C-bindings, CPython is speed
I have a love hate relation with python atm
true
i dont really like the syntax
Java is so slow💀I hate netbean
Just use numpy 
Me neither
Coding in arduino 
yes
Yes
with java it took like 0.01 second. Could be me tho not able to do python
Ok I want u all to give me an easy task in java to do let me code 💀🖐️
dynamically typed languages just arent my thing
SAME
how good are you?
gotta love boilerplate man 🤚
I fell in love with strongly typed stuff
Omg I thought you loved python
Set me up
But Python is still epic, my discord bot uses it. It's amazing
😃
For data analyzing, is python my friend
yes it is ur friend
make a program that inputs a bill, and outputs the most efficient way to get that number with paper money. (for example: 30 -> 20 + 10
The best programmers are the ones that are using the ctrl c en v button the most
Lol
Am confused
he was asking how to create objects, so not really
Print(‘I made a new bill type: 30’)
🤯
AI moment
other example: 46,50 -> 20 + 20 + 5 + 1 + 0.50
Ai is stupid, it almost destroyed my arduino if I did what it said
"->", what's this sign
output
Bruh
Man is coding in redstone
Ok so it should make a bill and split it

I think I need to start hanging out with people more

Python is too easy for my brain
See it as the exchange thing for cashiers in a shop
That's actually doable with redstone circuits
Reading the code is like reading a book
How much in percentage do you know about python?
specially because there are no brackets
Uhh not much xD
The part @brisk badge and I hate
I ment more like that it's really easy to read
Also what is this lmao
i = i + 1
Every other language
i++
Gimme a minute
Do you know how to read from the console?
no way 😭
Yes
Very good
Yhhhh
@brisk badge this is real pain imo
YES
i += 1 is a thing right
Square root of 2 squared minus 1
Yea but it’s still longer than i++
There is
there is
there is
When i started with js i used to just type 1 + 1 😭
You can just do i += 1
Ikr but i++ 🥺

I use it, but I don't like it too much. I know +1 is used more, but it changes the syntax for every other amount of increment
Please explain what this was supposed to do
I wrote it 2 years ago
And I do not understand what it does
What am I reading lmao
This variable naming 🤮
Run it
what in the world
Yeah it's useless lol
💀
My code is fine now
Most confusing part is why the alphabet is split
It's 2 years old
yeah-
Cause discord doesn't allow 26 options in a dropdown
Ah makes sense
Exception in thread "main" java.lang.NullPointerException at myBrain
jkjk
Also why using string and split when there something like an array 
I don't know
yea it sucks. It also sucks they removed dropdowns from modals
I really don't know
That was never supported officially, so eh
Shouldn't have used it
true it was cursed on mobile
Discord isn't reliable
still it was a really nice and usefull feature
@bold fable Do you code in js?
Yes
Programming channel is more active than main channel 😍