Fitness.com
Advertisement
Go Back   Sports Forum > Community > The Pub

The Pub

Grab a beer, sit back and relax.


» Current Poll
Best 5 club teams in history of Football:
Liverpool 1977-1978 - 100.00%
1 Vote
Real Madrid 1956-1960 - 0%
0 Votes
Juventus 1985 - 0%
0 Votes
Milan 1989-1990 - 100.00%
1 Vote
Ajax 1971-1973 - 0%
0 Votes
Santos 1962-1963 - 0%
0 Votes
Torinho 1940's - 100.00%
1 Vote
Ajax 1995 - 0%
0 Votes
Flamengo 1981 - 100.00%
1 Vote
Benfica 1961-1962 - 100.00%
1 Vote
Total Votes: 1
You may not vote on this poll.
» Stats
Members: 103,139
Threads: 85,026
Posts: 1,031,301
Top Poster: Karky (9,537)
Welcome to our newest member, sexyl6angel56
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.

Reply
 
LinkBack Thread Tools Display Modes
Old 04-21-2004, 06:20 AM   One of those chunks of code Post #1
Guest
 
Posts: n/a
Default One of those chunks of code

Working on some urinary bitwise junk in VB.
During the course of the day, I have jotted down several pages of notes.
I wrote the code, and made sure that it works properly.
A few minutes later, I have no idea how it works.

Code:
a$ = Mid$(txtStage1.Text, i, 1)
x = Asc(a$)
b$ = Mid$(total2$, bs, 1)
y = x Or (Asc(a$) And (2 ^ j))

If (y And (2 ^ (j - 1))) > 0 Then
b$ = Chr(Asc(b$) Or Chr(Asc(255 And (2 ^ (bp - 1)))))
Mid(total2$, bs, 1) = b$
End If
Some crucial nested logic in there.

A long time ago, when I was writing text adventures, something similiar happened.
For some reason I had to run a loop backwards in order for it work.
I couldn't tell you why, though.
At the time I understood it, but 1/2 hour later it was out of my head.

I just love melting my own brain.
  Reply With Quote
Old 04-21-2004, 04:57 PM   One of those chunks of code Post #2
Guest
 
Posts: n/a
Default One of those chunks of code

Stroker, that is why God created comments to put next to your code. You type

/*and then write down what the heck you are doing and why, then you end your comment with */

Then, not only will you know what your coding reasons and goals were, so would anyone else using your code or trying to...

That has to be the one lesson my instructors beat into everyone's head, was "Comment the heck out of every piece of code you write."

When I'm working on a PS effect, if it is something I may want to remember, I use that stupid yellow Annotation note for the same thing. Saves a lot of "I don't remember exactly how I did this..."

That way, you can save your brain melt-downs for other things... [bustagut]
  Reply With Quote
Old 04-21-2004, 07:34 PM   One of those chunks of code Post #3
Guest
 
Posts: n/a
Default One of those chunks of code

Comments in the code aren't my style.
I keep things on regular paper.
I even rip out important pages, or rewrite them, and keep them in a bigger folder.
I've been doing it this way for over 20 years.
It's what works for me.

Like I said, I have 3 pages of scribbles explaining those few lines - can't exactly add charts, diagrams, and flowcharts in comments. Even with those, it's still a brain bender to understand explicitly.

If I can get this program to work, I imagine I can compress text messages down to around 50% or so. With a proper database, even more so. Prolly be a few weeks, though.
  Reply With Quote
Old 04-24-2004, 05:34 AM   One of those chunks of code Post #4
Guest
 
Posts: n/a
Default One of those chunks of code

Holy crud. I finally got all of my code to play nice. I am very amazed at the results that I've been getting.

I'm a genius and that's all there is to it.

More details later.
  Reply With Quote
Reply

Go Back   Sports Forum > Community > The Pub

Bookmarks

Thread Tools
Display Modes


Similar threads to One of those chunks of code
Thread Thread Starter Forum Replies Last Post
Slicing an Image Into Chunks
Slicing an Image Into Chunks: Hi all, I am trying to split this map into...
grimreaper1377 General Photoshop Board 0 06-11-2007 08:22 PM
The Graphic Mega Pack - Now downloadable in bitesize chunks
The Graphic Mega Pack - Now downloadable in bitesize chunks: For all you with limits on your downloads, i've...
Captain Crash Skinning Hideout 3 02-21-2007 05:23 PM
Need a code man!
Need a code man!: Hey, im just new here so if this is not allowed i...
Josh7 General Photoshop Board 1 01-12-2007 04:56 PM
Bar code
Bar code: I was sure I saw it on this forum somewhere....
GeorgeF73 General Photoshop Board 7 10-25-2003 12:09 AM

More threads of Stroker
Thread Date Forum Replies Last Post
Silly Lil' Plug-ins Stroker-style
Silly Lil' Plug-ins Stroker-style: Burned the oil. Burned a candle at both ends and...
02-17-2005 Resources 10 02-21-2005 09:55 PM
My first public plug: Level3
My first public plug: Level3: Still dinking around with junk. Long story...
10-05-2004 Resources 11 10-11-2004 02:21 PM
Painting Reflection Maps
Painting Reflection Maps: Quick-n-sleazy even for me. Painting...
07-27-2004 General Photoshop Board 2 08-01-2004 12:00 AM
One of those chunks of code
One of those chunks of code: Working on some urinary bitwise junk in VB. ...
04-21-2004 The Pub 3 04-24-2004 05:34 AM
Borg Eye with Stroker
Borg Eye with Stroker: Borg Eye with Stroker I am definitely not...
04-11-2004 Tutorials 0 04-11-2004 04:21 PM

Other threads in forum The Pub
Thread Date Thread Starter Replies Last Post
PC to Mac, making the switch?
PC to Mac, making the switch?: I need a new laptop since I had to give my work...
11-08-2007 Meitheisman 36 11-08-2007 08:09 PM
24 season 7 Thread - the trailer is out
24 season 7 Thread - the trailer is out: click here for the trailer It looks...
10-25-2007 Colin14 57 11-08-2007 01:20 PM
Chelsea Ladies 1 Charlton Women 0
Chelsea Ladies 1 Charlton Women 0: Just come up on the Sky Sports News ticker? Are...
10-31-2007 Gav Stone 3 11-01-2007 12:08 AM
Does any one else have a greyhound
Does any one else have a greyhound: Hi, I have 2 greyhounds at home and they're great...
10-15-2007 jonahno6 35 10-18-2007 12:53 AM
FAO Razzler/Fat Bhoy Tim or anyone who has worked in the Oil & Gas industry
FAO Razzler/Fat Bhoy Tim or anyone who has worked in the Oil & Gas industry: OK, the situation is that I'm studying Petroluem...
09-16-2007 Tanman007 23 09-16-2007 01:31 PM

» Online Users: 22
1 members and 21 guests
qssvian
Most users ever online was 2,128, 07-21-2008 at 08:27 PM.

All times are GMT +1. The time now is 08:07 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Fitness.com | Weight Loss | Training & Fitness | BodyBuilding | Chinese | Spanish | French | Germany | Italian | Friend Codes |
You are viewing One of those chunks of code.