Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-02-20 06:28:03, last edited by ParadoxInTheVoid (2016-02-20 20:57:00)

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

[Release][Ultra-WIP] Wolf.cs

Wolf.cs
So far it's nothing to be impressed by. It needs a lot of work, I also have plans for it.
I'm looking for pointers or better methods I could use to do something like this.

EDIT: Apologies. I changed the link to where it doesn't link to the raw text.
This is what I use to parse text by separating it into blocks and checking what the first word is which is the initial.

Here's an example:

INPUT-> ee login <email> <password>
Input = "ee login <email> <password>"
Parsed = { "ee", "login", "<email>", "<password>" }
Count = 4
Entries = 3

signature.png

Offline

#2 2016-02-20 17:50:01

AlphaJon
Member
From: Who knows
Joined: 2015-07-21
Posts: 1,297

Re: [Release][Ultra-WIP] Wolf.cs

You should at least explain what it does, because opening up the source just to guess its purpose isn't convenient.

Offline

Wooted by:

#3 2016-02-20 18:29:24

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Release][Ultra-WIP] Wolf.cs

As mentioned it indeed would be nice to know what it's supposed to do, because I have no idea what it does when reading the code.
It's also a bit odd to start variable with upper case, for C# (and java and probably a couple other languages) camelCase is more used (meaning first word lower case, then all next works first letter upper case), that way you can also easily distinguish them from methods (which do start with upper case).

Offline

#4 2016-02-20 20:35:18

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Release][Ultra-WIP] Wolf.cs

den3107 wrote:

It's also a bit odd to start variable with upper case

In my AP Comp Science class, learning Java, we have to use camelcase but I never use it on C#


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#5 2016-02-20 22:55:21

AlphaJon
Member
From: Who knows
Joined: 2015-07-21
Posts: 1,297

Re: [Release][Ultra-WIP] Wolf.cs

From what I see, it just splits the input by spaces, and you can get the number of items or one of the n-th word of the inputted string. Not being mean, but wrapping this in a class isn't really useful, you can just as easily directly use an array.

Offline

#6 2016-02-20 23:34:20

BuzzerBee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,575

Re: [Release][Ultra-WIP] Wolf.cs

den3107 wrote:

camelCase is more used (meaning first word lower case, then all next works first letter upper case), that way you can also easily distinguish them from methods (which do start with upper case).

Methods start with a lowercase letter in camelCase, too. Usually only classes start with uppercase letters.

I'm more of a fan of PascalCasing, though. I think it's easier on the eyes.


TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#7 2016-02-20 23:47:40

N1KF
Wiki Mod
From: ဪဪဪဪဪ From: ဪဪဪဪဪ From: ဪဪဪဪဪ
Joined: 2015-02-15
Posts: 11,114
Website

Re: [Release][Ultra-WIP] Wolf.cs

BuzzerBee wrote:
den3107 wrote:

camelCase is more used (meaning first word lower case, then all next works first letter upper case), that way you can also easily distinguish them from methods (which do start with upper case).

Methods start with a lowercase letter in camelCase, too. Usually only classes start with uppercase letters.

I'm more of a fan of PascalCasing, though. I think it's easier on the eyes.

Relevant

Offline

#8 2016-02-21 01:05:13

Tako
Member
From: Memphis, Tennessee, USA
Joined: 2015-08-10
Posts: 6,663
Website

Re: [Release][Ultra-WIP] Wolf.cs

Will this eventually have any connection to EE?


Yeah, well, you know that's just like, uh, your opinion, man.

Offline

#9 2016-02-21 01:29:01

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Release][Ultra-WIP] Wolf.cs

Tako wrote:

Will this eventually have any connection to EE?

I will use it for bots, but currently it's being worked with everything in mind (well, anything that could utilize this.)


signature.png

Offline

ParadoxInTheVoid1456014541584310

Board footer

Powered by FluxBB

[ Started around 1732684072.7823 - Generated in 0.227 seconds, 12 queries executed - Memory usage: 1.5 MiB (Peak: 1.66 MiB) ]