Scripting Games After 1 Week

After the 1st week of the Scripting Games and as we now enter the 2nd week with event 6 today, I figured it was a good time to take a look at some of the things that I have seen during the games. There have been many, many script submitted this year, many more in fact than last year (which is awesome, by the way). Personally I have graded hundreds of scripts and continue to be amazed by all of the great scripts submitted this year. But as always, there are things that could always be improved on or perhaps some accidental mistakes made that could have turned a 3 or 4 star script into a 5 star script.

Now I am not giving out answers here, so look elsewhere Smile. Instead I am just going over some basic things that can help you out not only in the games, but elsewhere for that matter.

These are in no particular order of importance and should all be considered my opinion which does not reflect the other judges and their opinions.

Pay Attention To The Event Design Points

The design points are there for a reason. They are there to help you to help yourself get all 5 stars. If it calls for checking admin rights, then check for admin rights. If it says you can use aliases, then use them. If it says to write out a short novel about your hopes and dreams and then split it into into a hash table through osmosis, well… good luck with that, but still do it! By not following these design points, you are setting yourself up for heartbreak of not receiving all of the stars that you were hoping to achieve.

Don’t Forget About The Event Guidelines

On the other side of the coin, do not forget what you are supposed to be coding here. While design points will help you in your quest for a 5 star script, it will possibly crumble around you if you do not meet the actual goal of the script.

Less Can Sometimes Be More

Remember, writing a complex 500 line script that can get you the current date and time in 5 days is not always the best method to solve a problem. Unless you feel that you need to write more lines than necessary to solve a problem (and it really needs to be a good reason), you should try to make it with the least complexity as possible (have good comments if you can’t) and keep it as short as possible. This doesn’t mean skimp out on things, just use your best judgment to get the job done.

Slower Is Faster

Remember, you have 1 week from the time an event goes live to get it done and submitted. This is plenty of time to write the script and get it submitted prior to the deadline. It is better to turn it in later in the week and know it works the way it is supposed to then to submit it the same day it goes live and only get a couple of stars due to some mistakes. Your script will get rated regardless of when you submit it, so you have nothing to worry about.

Ask Questions

The moment the event goes live, you have the opportunity to ask questions on the Event article on Hey, Scripting Guy!. Not quite sure what it might be you are looking for, just ask! While the answers will not be given to you, Ed can provide some clarification to the event in the case that something just doesn’t make sense. Another reason to not be that first person to submit a script for the event after it goes live.

Research, Research, Research!

Look at previous Hey, Scripting Guy! articles. For that matter, look online for other articles that might relate to the event you are trying to solve. I can say that one of my own functions that I uploaded to the Script Repository made a big jump in activity since the games started up. You are not being help in a closed, locked room with only a laptop and an open connection to the poshcode site. So take advantage of what you have available to better align yourself with the correct method to solve each event.

Test Your Code!

This should go without saying. Make sure your code works before submitting. Try it out in various circumstances to make sure you cover all of the angles. Doing so will (hopefully) ensure that the code does not fail by the time we look at it, causing it to become a 1 star script. I have to admit that I have had the unfortunate task of giving a 5 star script only 1 star because it fails to run for me. Sad, but true. So take the extra time to test it out before submitting so you have one less thing to worry about.

 

Once the games close out, I will post some more things that I have seen, but am avoiding talking about until after the last event closes as I don’t want to give an unfair advantage to those folks who have yet to submit a script in various events. Just remember, this is  not only a competition, but also a great learning opportunity as well as a fun time to see how you do with other awesome PowerShellers!

Good luck in your second week of the Scripting Games!

Posted in powershell, Scripting Games 2012 | Tagged , | Leave a comment

2012 Scripting Games Have Started!

image

That is right! The 2012 Scripting Games have officially kicked off! Head over here to get the first event (Beginner | Advanced) and then head to poshcode to sign in and submit your scripts for either the Beginner or Advanced event. Remember, you can only pick one category and submit one script per event. So make it count and take your time before submitting (you have a whole week from the event start time to get your script in) and good luck!

Posted in News, Scripting Games 2012 | Tagged , | Leave a comment

Re-Awarded Microsoft Community Contributor For 2012

MCC12_Social Media_Logo

I checked my email and found that I had been re-awarded the Microsoft Community Contributor (MCC) for 2012. I say re-awarded because even though I had it for 2011 and got it again for 2012, there is not an actual re-awarding process for existing members. It merely drops off at the end of the year for about a month and you get re-evaluated again for the award based on what you provide in the community forums such as PowerShell and Hey, Scripting Guy!.

Never the less, I am very humbled and happy to get this again. Thanks to everyone that put me in for this and all of those that I have helped out in the forums by answering their questions and providing feedback on issues. I look forward to this year in not only helping out others with their PowerShell questions but also on providing new and interesting PowerShell projects such as my recent project: PoshChat as well as being a judge this year and an expert commentator in the 2012 Scripting Games and future guest articles on Hey, Scripting Guy!.

Thanks again everyone!

Posted in News | Tagged , , | 4 Comments

PoshChat updated to 0.9.2

I finished a little update to PoshChat that I wanted to push out prior to the start of the Scripting Games on Monday. I made a few updates to the client UI to include text colors for specific messages and updating the font size if required.

Also included is the ability to send a direct message to a user by starting with the ‘@’ sign and then the username right after that followed by the message. This will only send the message to that user and no one else.

image

The message that you send to that individual will show up in Blue while the message they receive will show up as Orange.

Here is another image that shows it more in action with other clients.

PoshChat

Based on the type of message, it will be a specific color. Regular messages will be black, direct message received are orange, direct messages sent will be blue, users connecting and disconnecting will be green and error messages and local server disconnects will be red.

You can also change the font size in the Edit menu.

image

Lets change this to 16 Font.

image

At this size, you would definitely need to make the window a little larger.

Options for Font at this point in time are: 12,14,16 and 18

Another thing I updated was the timestamp that would appear with each message vs. having both a datetime stamp used. I figured this would add a little more space to the messaging. The date stamp will only show up at the beginning of the chat session and then only if the day changes during the current session.

I hope you enjoy the current update and I have many more coming up in the future once the Scripting Games are completed. I have updates planned for an Options menu where the font selection.username,server, port and session key for encryption/decryption. Also a more graceful way of shutting down the chat server is being worked as well (currently the only way is to shut down the server is by closing the PowerShell console window.

Posted in powershell | Tagged , | 3 Comments

Guest Blog On Hey, Scripting Guy! On Prepping For The Scripting Games

My latest article for Hey, Scripting Guy! is live and talks about what you can do to prepare for the Scripting Games, which start on April 2, 2012. Let me know what you think about it!

Tips for Preparing for the 2012 PowerShell Scripting Games

And, good luck to the scripters this year! It is going to be a fun time!

Posted in powershell, Scripting Games 2012 | Tagged , , | Leave a comment