Articles of the Week

Pubbies of the Week

What was the name again?

Categories: Tech, Education | Pubby Cash Received:  0

Programming is fun, but it isn't fun when you forget or confuse your variables. It’s annoying to have to remember so many similarly-named variables. “User”, “user”, “users”, all have the same spelling, but their values are different. But how do I know that? Usually, a capital letter at the start of a variable indicates that a variable is an object. Use plural nouns for lists, tuples, and dictionaries because they store multiple values. Singular nouns are used for a single value such as “5” or “Pubby”. Don’t be afraid to make your variable name long because most IDE’s have autofill. Name variables according to the type of data that it will store. For example, you would store “8” in the variable “number”, but you wouldn’t store “8” in “first_names”. Variables names must start with a letter or an underscore, and the remainder of your variable name may consist of letters, numbers, and underscores. Also, avoid using the lowercase letter "l", uppercase, "O" and uppercase ‘I’. Why? Because the "l "and the "I" look a lot like each other and number 1. And "O" looks a lot like "0". Knowing how to skillfully name and use your variables will seem like a life hack, or at least a programming hack! ...  Read more

The iPad Pro

Categories: Tech | Pubby Cash Received:  10

Are you tired of carrying a heavy computer that takes low-level pictures and is very slow? Well, the iPad Pro is the complete opposite of this. First, it is not heavy at all. After all, it is just an iPad, so of course, it is very light. Also, it takes very high-quality pictures. This is true because it uses LiDAR (Light Detection and Ranging. LiDAR is used to determine distance by measuring how long it takes light to reach an object and reflect. Finally, it is super fast. Apple says that it is so fast that most PC laptops can not catch up. Overall, the iPad Pro is a very quality iPad so you should buy it. ...  Read more

Differences between ranks and levels

Categories: Tech, Education | Pubby Cash Received:  10

People might be confused about the differences between ranks and levels. In this article, I will explain their concepts and why they need to be separated. Take academic ranks in the United States as an example. Academic ranks are the titles, relative importance and power of professors, researchers, and administrative personnel held in academia. The most common hierarchy for professors are three ranks: assistant professor, associate professor, and full professor. In some cases, chaired professor is also considered as a rank higher than regular full professor. In addition to ranks, the academia also has levels. Ranks are the titles printed on business cards to show people, while levels are different. Levels are mainly used internally for salary reference. In China, professors have 13 levels despite that the ranks are only 4. Their relationship between levels and ranks are as follows: Full Professor Level 1: Full professors who are academicians Level 2: Full professors who gain "Thousand Talent" titles and the like Level 3: Full professors who gain "Youth Thousand Talent" titles and the like Level 4: Full professors with no honorary titles Associate Professor Level 5, Level 6, Level 7 Assistant Professor Level 8, Level 9, Level 10 Technician Level 11, Level 12, Level 13 As far as I know, the base salary for a level 9 assistant professor is 5K while a level 4 full professor is 10K in China. In addition, levels sometimes can be used externally and printed on business cards. For example, a Level 2 Full Professorship is right below academicians and definitely worth bragging about. However, it will be weird if professors in lower ranks advertise their levels. Who cares an assistant professor is level 8, level 9, or level 10? The rank is what really matters. For the pubbies community, there are four ranks: member, community member, staff, and head staff. This resembles the real civilian world scenario that there is no need to introduce more ranks than needed. Otherwise, it will be hard for people to memorize and instantly see their differences. For example, military ranks are many, but how many people can tell major and captain, which rank is higher? Instead, the use of multiple levels within a certain rank is appropriate and efficient for internal promotions and salary raises. ...  Read more

Don’t You Hate It When a Little Error in Your Code Takes an Entire Day to Fix?

Categories: Tech, Education | Pubby Cash Received:  30

I know, debugging applications can sometimes be an unwelcome activity. You’re busy working under a time crunch and you just want it to work. However, at other times, you might be learning a new language feature or experimenting with a new approach and want to understand more deeply how something is working. Regardless of the situation, debugging code is a necessity, so it’s a good idea to be comfortable working in a debugger. Additionally, I have some more useful tips that can help you better debug your program.

  1. Make sure to test your program frequently. This way, any errors that occur can be easily found as there are only so many places you’ve changed in the code.
  2. When you know where the error is, try many different methods to get it to work. Most bugs are just one tiny little misspelling or logic fallacy. Sometimes, the brutal trial and error can be the best way to get something to work.
  3. Consult help when you need it. Websites like Stack Overflow and Github offer solutions to anything you could encounter. Try Googling the error that shows up in your debugger and you just might find what you’re looking for.
  4. Skillfully use the print statement. It was the first line of code I learned in Python. Place print statements throughout the code and anywhere the print statement doesn’t execute, you know there’s an error.
By knowing how to properly and skillfully debug your program, you could save hours of valuable time and effort.

...  Read more

Kingston DataTraveler 100 G3 32GB Flash Drive

Categories: Tech | Pubby Cash Received:  80

Are you tired of waiting for a very long time to back up your data? Well, the Kingston DataTraveler 100 G3 32GB flash drive is the flash drive you should buy. This flash drive is very efficient and fast. After all, this flash drive does feature a sliding cap design. In my opinion, this design is very efficient because it keeps the whole flash drive together, instead of having it with a flash drive and a cap. Also, it is very quick. I have seen my brother back up his data a lot faster than before when using his older flash drives. All in all, this flash drive is something to consider buying. ...  Read more

1 ... 23 24 25 ... 32

Daily Deals


MECHANICSBURG WEATHER