Search found 44 matches

by sancho2
Fri Jun 26, 2015 8:02 am
Forum: Off Topic
Topic: Authoritative Viewpoints on OOP
Replies: 88
Views: 34202

Re: OOP is designed for non-programmer control of software.

If you had actually put links in that post you might not look the fool right now. Did you edit them out for some reason?
We clowns are laughing.
Here it is:
quote="TI-994A"]Some light reading for the i Object-Happy /i folks... i you know who you are: /i :wink:


@sancho2: URL links don't show up ...
by sancho2
Fri Jun 26, 2015 3:14 am
Forum: Off Topic
Topic: Authoritative Viewpoints on OOP
Replies: 88
Views: 34202

Re: OOP is designed for non-programmer control of software.

If you clowns had bothered to read the original post, you'd have found the original articles linked in their respective titles (except for the book, which only links to a single page - buy the book if you want to read it) .

If you had actually put links in that post you might not look the fool ...
by sancho2
Thu Jun 25, 2015 7:46 am
Forum: Coding Questions
Topic: Find a point between two points
Replies: 19
Views: 4841

Re: Find a point between two points

I am not %100 sure what want this code to do or what any error is, but I did notice that:
1. 'interval' is set at 30 and never changes
2. 'Distance' is the distance the mouse travels
3. As soon as distance is greater than or equal to interval you do a calculation distance/ interval
Doesn't that mean ...
by sancho2
Thu Jun 25, 2015 3:39 am
Forum: Off Topic
Topic: Authoritative Viewpoints on OOP
Replies: 88
Views: 34202

Re: Authoritative Viewpoints on OOP

vindicating the Fantaisie Team's decision not to implement it as a sound and practical one.
An excerpt from a blog post by Eric Lippert, Principal Developer of Microsoft C# What I sometimes see when I interview people and review code is symptoms of a disease I call Object Happiness. Object Happy ...
by sancho2
Tue Jun 23, 2015 7:52 am
Forum: Off Topic
Topic: Thank You
Replies: 63
Views: 24001

Re: Thank You

Sounds a lot like somebody we know. :lol:

Paul Graham also wrote:

"Our hypothetical Blub programmer wouldn't use either [Cobol or assembly]. Of course he wouldn't program in machine language. That's what compilers are for. And as for Cobol, he doesn't know how anyone can get anything done with ...
by sancho2
Tue Jun 23, 2015 3:15 am
Forum: Off Topic
Topic: Thank You
Replies: 63
Views: 24001

Re: Thank You

That will lead to nothing.
If you're looking for big changes then you might be right. However I learn lots about PB and the other languages in these discussion threads. When the pro and con camps clash, there is lots of good info coming out about a language that I may not have otherwise known.
I ...
by sancho2
Sun Jun 21, 2015 1:33 am
Forum: General Discussion
Topic: Prime Numbers formula !!
Replies: 9
Views: 11111

Re: Prime Numbers formula !!

I did some initial formula comparison. There might be a problem right off:

; first equation looks right
;(k+2) (1 -
; [wz + h + j - q]^2 -
(k + 2) * (1 - (w*z + h + j - q)^2 -

; second equation looks right
; [(gk + 2g + k + 1)(h + j) + h - z]^2 -
((g*k + 2*g + k + 1)*(h + j) + h - z)^2 ...
by sancho2
Sat Jun 20, 2015 2:49 am
Forum: General Discussion
Topic: Prime Numbers formula !!
Replies: 9
Views: 11111

Re: Prime Numbers formula !!

2 is a prime number.
However every number this formula as implemented by applePi is a negative number which are not prime numbers:
Prime number is a positive natural number that has only two positive natural number divisors - one and itself.
It looks like this forumla is comprised of this set ...
by sancho2
Thu Jun 18, 2015 10:42 pm
Forum: Game Programming
Topic: Soduku
Replies: 2
Views: 4348

Re: Soduku

I can't run your code because of the demo version limitations. However I did take a quick look and saw this line here at the beginning. It will trip up anyone who wants to try it:
LoadImage(0,"sudoku.jpg")
If its just a splash screen its no big deal.
by sancho2
Wed Jun 17, 2015 3:35 am
Forum: Coding Questions
Topic: PureBasic and GRAPHS Active X Control
Replies: 11
Views: 4749

Re: PureBasic and GRAPHS Active X Control

I think Kiffi wanted a link to the Graphs Activex control. I think.
by sancho2
Mon Jun 08, 2015 4:25 am
Forum: Coding Questions
Topic: Base64 decoding and blobs issue
Replies: 16
Views: 3982

Re: Base64 decoding and blobs issue

If you think there could be corruption/hidden chars in the XML file, make a copy of the file (backup) and then load it into a text editor (like UltraEdit or NotePad++). With the file now displayed as text rather than XML, it should be easy to spot a fault.
And/or make a known special character ...
by sancho2
Sun Jun 07, 2015 12:00 am
Forum: Coding Questions
Topic: Base64 decoding and blobs issue
Replies: 16
Views: 3982

Re: Base64 decoding and blobs issue

Databasehandle is most likely the culprit as databaseupdate problem would return zero from the function.
(edit) Maybe put IsDatabase() before the if statement to see if you really got what you think you got.

But a question: Why after they are declared are you continuing to use the .i and .s on ...
by sancho2
Sat Jun 06, 2015 6:22 am
Forum: Off Topic
Topic: Good way to remove grey background from (scanned) pictures?
Replies: 10
Views: 5162

Re: Good way to remove grey background from (scanned) pictur

I think a decent smart phone camera will do a better job of "scanning" the photocopy you had. If you have to scan then a color scanner will be better than a black and white, as it won't try to shade non-white areas.
by sancho2
Thu Jun 04, 2015 6:47 am
Forum: Coding Questions
Topic: Slow Speed When Adding Items to ComboGadget
Replies: 13
Views: 5258

Re: Slow Speed When Adding Items to ComboGadget

Its near instantaneous on my XP as well, and in debug mode. I don't know why its slow for you.
This is just a tip:
Inside out your nested ifs and you can remove 100's of unnecessary calls to setgadgetstate

;For i = 0 To 77
; For j = 0 To 7
; AddGadgetItem(j, -1, "ComboBox entry"+i) ; add new item ...
by sancho2
Tue Jun 02, 2015 2:10 am
Forum: Coding Questions
Topic: How does PureBasic parse files?
Replies: 45
Views: 12324

Re: How does PureBasic parse files?

Zebuddi123 wrote:Hi mao. A Regular Expression example, no need for checking the separator.
Great idea.