Hack Forums
[Help] [Royalty] Coding help desk - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: [Help] [Royalty] Coding help desk (/showthread.php?tid=5072924)

Pages: Pages 1 2


[Royalty] Coding help desk - Remix - Nov 27, 2015

[Image: oY3KkgM.png]

Loyal and Royal
[Image: ur9s0Ea.gif]

This help desk will be run by skilled indivuals to provide quality help. We are here to help everybody with nearly every coding related question.
Some of our members are specialized in most of major languages and gained a lot of experience in this topic.
We will try to describe as good as possible what's the problem, how it works and optionally we will add sources which will help you to understand it.

If you have any questions, problems or errors related to coding feel free to post your question below.
One of our team will try to response as good as possible.




* - Balding - Nov 27, 2015

Explain to me what a palindrome is please, don't google it either.


* - Remix - Nov 27, 2015

(Nov 27, 2015 10:02 AM)Bald. Wrote:  Explain to me what a palindrome is please, don't google it either.

Not really coding related but it's a word which is the same doesn't matter if spelled forward or backward.


* - Awakened - Nov 27, 2015

(Nov 27, 2015 10:02 AM)Bald. Wrote:  Explain to me what a palindrome is please, don't google it either.

Do geese see god?


* - DuguWudi - Nov 27, 2015

Regarding coding this bot for this thread below
https://hackforums.net/showthread.php?tid=5070250

Whats the main problem I would encounter?
Image recognition?
Gameguard/hackshield?


Thank you.


* - Balding - Nov 27, 2015

(Nov 27, 2015 10:04 AM)Ɍemix Wrote:  Not really coding related but it's a word which is the same doesn't matter if spelled forward or backward.

How is it not coding related? If anything it has a lot to do with coding.


* - Remix - Nov 27, 2015

(Nov 27, 2015 10:40 AM)Bald. Wrote:  How is it not coding related?

It's more common language related


* - Balding - Nov 27, 2015

(Nov 27, 2015 10:40 AM)Ɍemix Wrote:  It's more common language related

Yeah, I know, but it still applies to coding in a lot of ways.


* - Remix - Nov 27, 2015

(Nov 27, 2015 10:39 AM)DuguWudi Wrote:  Regarding coding this bot for this thread below
https://hackforums.net/showthread.php?tid=5070250

Whats the main problem I would encounter?
Image recognition?
Gameguard/hackshield?


Thank you.

I don't know the development for that game but I wouldn't write such bots in autoit.
I don't know either many about autoit itself.


* - Aurora - Nov 27, 2015

Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}



* - daymon - Nov 27, 2015

(Nov 27, 2015 10:46 AM).Sinister Wrote:  Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}

It doesn't really matter, its more of a preference. But its similar to the white space concept; you don't have to do it, but its just how everyone else does it and it makes your code a lot cleaner. 🤝


* - Balding - Nov 27, 2015

(Nov 27, 2015 10:46 AM).Sinister Wrote:  Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}

It's all preference. The placement doesn't matter in this case.


* - Remix - Nov 27, 2015

(Nov 27, 2015 10:46 AM).Sinister Wrote:  Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}

It depends on preference and sometimes on the language.
While it's actually the standard to write the { in the same line in Java you are kinda forced to write it in the next line in C# (Visual Studio does it automatically).
But in the end it's personal preference.


* - Corios - Nov 27, 2015

(Nov 27, 2015 10:49 AM)Ɍemix Wrote:  It depends on preference and sometimes on the language.
While it's actually the standard to write the { in the same line in Java you are kinda forced to write it in the next line in C# (Visual Studio does it automatically).
But in the end it's personal preference.

Tools -> Options -> Text Editor -> C# -> Formatting -> New Line, you can choose which line to put it on.


* - stackoverflowin - Nov 27, 2015

Remix does know what he's talking about. Hopefully I can get into Royalty soon also!