Jump to content
  • 0

How To Start A Code?


Question

5 answers to this question

Recommended Posts

  • 0
Posted

Stretching fingers -> take a deep breath -> look the monitor -> put your fingers on keyboard -> AND THEN SPOWJCOWEIJGVOEWIGJFWEOIDJQWHOUDQHWOUDH23UFJ23IMOF23FKP23OFDKWEOPFKMWPEFIJWIJ

  • 0
Posted

Stretching fingers -> take a deep breath -> look the monitor -> put your fingers on keyboard -> AND THEN SPOWJCOWEIJGVOEWIGJFWEOIDJQWHOUDQHWOUDH23UFJ23IMOF23FKP23OFDKWEOPFKMWPEFIJWIJ

Pretty much this, first two steps are optional :lol:

  • 0
Posted (edited)
  • Mentally/Handwrite build the fastest approach and think about the best datatype to use, notably true if you have to load/restore data on List/Map. It will avoid you a complete erase of your work, or even a future rework.
  • In the same way, when you code a new entity (and so a class), think about all possible variables before coding it. Then code it.
  • Try to code where the code belongs. A player stuff should be coded on L2PcInstance, not L2Character. A monster only option should be coded on L2Attackable (or even L2Monster) not L2Object. Etc etc. Store code on the shortest scope, it avoids to seek it everywhere, and it avoids classes like L2Character or L2Object become "garbage" (because you can virtually code everything on it, even if not used).

 

Generally said, I'm for a "load once / save once" behavior regarding mySQL, while trusting server which isn't supposed to "downfall". So feed a Map/List on server startup, edit it on regular operations and store it only on server shutdown.

Edited by Tryskell
  • 0
Posted (edited)

Ignore IpotoniC and SweeTs, they are both noobs & low IQ. Especially SweeTs he brush his teeth 1 time per 5 days.. so as you can see he is more evil than Jurassic World effort.

What is the first thing we do when we code? Well many things..

Take example tryskell, he eat cookies and drink lots of milk, he write huge texts replies and watch family comedy series, after this he code 1-2 lines and repeat.

 

But i will show you the basic step if you want to code. Here's my guide:

 

  1. Sit down and make sure the light is not behind you or infront of you. The light must be on top and it must soft to match the enviroment.
  2. Open the computer and use a nice desktop, prefer average colors such as grey or no high contrast white to avoid your eyes get tired.
  3. Make sure a chocolate bar or a juice is next to you cause when you're thinking brain automaticaly eject toxins and glucose is required. Also stress increase and lead hunger feeling. So a snak is perfect.
  4. Make sure you have facebook (or any other shitty app that absorb your personal time and people share their useless photo from last night party while doing duckface and writting in such shitty way that takes you 10 minute to understand that what you read is no B-linear), so they can bother you with shitty chat.
  5. Make sure to have youtube on and listen to some youtuber doing stuff or a movie playing as background cause fuck silence.
  6. Think of what code you will never use but it would be cool to have.
  7. Don't bother analyze the code, just start making it, in the first time you gonna make a shitty code anyway but later you gonna fix part by part until you make it nicely. 
  8. Start checking how other codes are made and make your own with small adjustments.
  9. Ignore your mother if she yell "the food is ready", simply tell her "Bitch, AccessDenied is coming to Sin you, your life and your shitty food which contain more dead braincells than cancer itself.".
  10. Enjoy your coding !
Edited by AccessDenied

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...