Coder Social home page Coder Social logo

Comments (41)

meklu avatar meklu commented on August 10, 2024

Taking Content/*, as I've done the initial sweep.

from fna-mghistory.

meklu avatar meklu commented on August 10, 2024

To anyone else willing to take a look at the other directories listed here, I've brewed a few one-liners that may help the effort.
https://gist.github.com/meklu/c6d1a7561ed315fbbdd5

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

Thanks, meklu - I'll check those out before I jump in here.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

I'll take Storage

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

Quickie:

Kill trailing whitespace, or whitespace in blank lines: sed -i 's/[\t ]*$//g' *.

Hopefully I'll get time to actually work on this tomorrow, today was very busy - and tonight just as much.

from fna-mghistory.

khbecker avatar khbecker commented on August 10, 2024

A good check for line length is to run the file command on all the files and make sure they show up as ASCII text, not ASCII text, with very long lines.

You can use this bash script to do it for the current directory:
for f in *.cs; do file $f; done
or this to do it recursively
git ls-files . | grep '\.cs$' | xargs file $1

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

You can use this bash script to do it for the current directory:

Why not just file *.cs?

from fna-mghistory.

khbecker avatar khbecker commented on August 10, 2024

I see that works too. I never tried file with a wildcard.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

Shells in *nix expand wildcards before passing them to the command, so wildcards will work with any program that can take a list of files as input.

from fna-mghistory.

khbecker avatar khbecker commented on August 10, 2024

Thanks. I didn't realize the shell handled that part of the wildcards.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

You're welcome. Shell expansion is an interesting and powerful feature, but it's good to be aware of what it's doing automagically because it means that programs/commands never see the wildcards (which is why you can't just do a mass rename with the mv command).

Now... if only I knew 1/10th as much about how git branches are supposed to work. :) Guess I'll pick it up as we go.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

I'll take on Media now, if you please.

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

Will take Graphics/Vertices/ when I get back tonight, while merging the region changes.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

I'll continue working my way up the list and take Input/Touch/.

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

Also going to be taking Graphics/ and Graphics/PackedVector/.

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

Just pushed a large chunk of cleanup for Graphics/: 9569acb

This cleans up all files except for the following:

  • ModelBone.cs
  • ModelBoneCollection.cs
  • ModelEffectCollection.cs
  • ModelMesh.cs
  • ModelMeshCollection.cs
  • ModelMeshPart.cs
  • ModelMeshPartCollection.cs
  • SpriteBatch.cs
  • SpriteBatcher.cs
  • SpriteBatchItem.cs
  • SpriteFont.cs

If anyone wants to take some of these files, feel free. Everything else should be nice and clean now.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

I can knock out Input sometime in the next few days, if no one else wants it.

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

I'll leave Input/ unassigned for now, let me know if/when you start it and I'll mark it as assigned.

from fna-mghistory.

khbecker avatar khbecker commented on August 10, 2024

If I'm not too busy, I might grab Input or the rest of Graphics tomorrow night. But if I haven't responded again by the time you're ready to start it, then go for it @3vi1 . I've been really busy this week, so I might not get a chance to contribute this week.

from fna-mghistory.

khbecker avatar khbecker commented on August 10, 2024

Since no one else has claimed it yet, I'll take Input now.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

That's cool. I'm going to be really tied up with my job at least until Sunday. I'll see what I can help with at that point.

from fna-mghistory.

extrahotchilipowder avatar extrahotchilipowder commented on August 10, 2024

I'll take what's left of Graphics/

from fna-mghistory.

extrahotchilipowder avatar extrahotchilipowder commented on August 10, 2024

What's the official stance on stuff like this:

// Summary:
// Gets the name of this bone.
public string Name
{
get;
set;
}

Kill the comment or let it be? And also, if it stays, change it to /* */ style?

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

I believe those are actually supposed to be XMLdoc summaries. So it should probably be this:

// <summary>Gets the name of this bone.</summary>

Though I don't know if that's 100% correct... look around the source (or possibly SDL2#'s source) and see how the XML tags are meant to work. Don't remember off the top of my head.

from fna-mghistory.

 avatar commented on August 10, 2024

XML tags require three /// before them: http://msdn.microsoft.com/en-us/library/b2s063f7.aspx

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

The only unassigned task left is ./. For this one, since the folder is so unbelievably massive, devs can pick out a small handful of files at a time, rather than having to take the entire folder. That might make this last goal a bit more appealing...

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

I'll start at the bottom and take:

TextInputEventArgs.cs
Threading.cs
TitleContainer.cs
Vector2.cs
Vector3.cs
Vector4.cs

from fna-mghistory.

extrahotchilipowder avatar extrahotchilipowder commented on August 10, 2024

I'll start at the top and take

BoundingBox
BoundingFrustum
BoundingSphere
Color
ContainmentType
Curve

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

Working my way up, I'll tackle ./P_-R_ tonight.

PerformanceCounter.cs
Plane.cs
PlaneIntersectionType.cs
PlayerIndex.cs
Point.cs
PreparingDeviceSettingsEventArgs.cs
Quaternion.cs
Ray.cs
Rectangle.cs
ReusableItemList.cs

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

Flibi, will you refresh my memory as to your stance on commented-out stubs?

I'm inclined to just drop the ones I see in ./Plane.cs. I don't think they offer anything in the way of documentation that can't be recreated in a minute should we find a program that actually needs them, whereas they'll sit there cluttering up the code for years if they're never implemented.

WWFD?

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

Up until now I've been swerving a bit on this, but thinking about it, you're right, we probably should remove those.

I'll double check all the old stuff when I do my second FNA pass, but from now on, go ahead and remove those bits.

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

Getting ContainmentType and CurveContinuity. Just a couple small enum files.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

I'll continue working my way up and do ./I* - M* tonight.

IDrawable.cs
IGameComponent.cs
IGraphicsDeviceManager.cs
IUpdateable.cs
LaunchParameters.cs
MathHelper.cs
Matrix.cs

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

If you want you can add this to your current PR while you fix the current issues in that one, I'd be cool with that. Looking at that list, only Matrix seems to be the real beast in there.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

Will do. It will probably be sometime tomorrow before I add them to the pull. I only got about halfway through Matrix as I spent half the night distracted with troubleshooting unrelated issues (Today's Ubuntu Trusty repo updates killed sound and broke KDE's 3D compositing... yippee).

from fna-mghistory.

extrahotchilipowder avatar extrahotchilipowder commented on August 10, 2024

I'll start these today. (4 of them will be really easy.)

CurveKey
CurveKeyCollection
CurveLoopType
CurveTangent
DisplayOrientation
DrawableGameComponent
FrameworkDispatcher
Game

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

We've done two passes through Matrix.cs (3vi1 and myself), if someone wants to do a third/fourth pass through that file, consider that one perpetually open. It's probably the largest file in the MonoGame project in the worst way possible.

You probably want to do a side-by-side comparison with the original while you're doing it:

https://github.com/mono/MonoGame/blob/develop/MonoGame.Framework/Matrix.cs

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

I guess all that's left is for me to take:

GameComponentCollection.cs
GameComponentCollectionEventArgs.cs
GameComponent.cs
GamePlatform.cs
GameServiceContainer.cs
GameTime.cs
GameWindow.cs
GraphicsDeviceInformation.cs
GraphicsDeviceManager.cs

I'll see if I can't knock these out this morning before taking the son to see the new Captain America movie.

Edit: missed the GameComponent files at first due to ls sorting != MonoDevelop sorting.

from fna-mghistory.

3vi1 avatar 3vi1 commented on August 10, 2024

Well those went pretty quick. Once EHCP finishes what he has in progress, the root will be done!

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

We're down to the very last file in our first pass of style cleanup, and hilariously enough, it's Game.cs. Yup!

Joe's done the pass, but I've not reviewed it yet: https://github.com/flibitijibibo/MonoGame/pull/192/files#diff-7

Will try to review this today/tomorrow, but if you want to take a look at it yourself, feel free to do so. Like Matrix, it's kind of a massive file for lots of nasty reasons (many of which I intend to fix as soon as we're done with this task).

We're so close to being done with the first wave of FNA transition tasks!

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on August 10, 2024

We finished the last task! While the code is certainly not perfect, it should be much easier to understand and edit now.

I will be adding the second wave of tasks this week.

from fna-mghistory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.