Reputation
383
Top tag
Next privilege 500 Rep.
Access review queues
Badges
2 8
Newest
 Critic
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 16 votes cast
Jan
3
awarded  Critic
Jan
3
revised Best way to deal with two independent booleans
added 134 characters in body
Jan
3
comment Best way to deal with two independent booleans
It isn't required to make it more legible, if anything it makes it confusing. When I first saw it I took a moments pause and wondered if I had missed something. I concluded that Boolean logic has not changed in my forty five years of programming.
Jan
3
comment Best way to deal with two independent booleans
@gnat at least you are consistent. I agree that this particular piece of code is short enough not to require detailed explanation. Maybe because it is exactly what I posted.
Jan
3
revised Best way to deal with two independent booleans
added 296 characters in body
Jan
3
revised Best way to deal with two independent booleans
added 296 characters in body
Jan
3
comment Best way to deal with two independent booleans
@gnat - sometimes a hammer is just a hammer. The OP didn't ask for a framing, ball peen, tinners, etc. hammer. I'll edit my response.
Jan
3
comment Best way to deal with two independent booleans
In the first else if why is !b required? Didn't the 'a && b' take care of that?
Jan
3
comment Best way to deal with two independent booleans
@xecgr In the elifs why are the nots required? Didn't the 'a and b' take care of that?
Jan
3
answered Best way to deal with two independent booleans
Dec
12
comment Development process used for the code on Apollo 11 missions?
Here are some links that might provide an answer. The Computer Weekly article has some embedded links that are fascinating, including the entire source code for the AGC for both the CM and LEM. Computer Weekly Dr. Dobbs MIT A NASA search retur
Dec
10
answered Which programming language (or machine language) first used line numbers?
Nov
30
comment Querying large amount of data for parallel processing
Take a look at stackoverflow.com/questions/187998/row-offset-in-sql-server .
Oct
31
comment What was the first language to support convenient user-land recursion?
If we are talking compiled languages ALGOL-60 is the clear winner. I think it was '64 before there was a LISP compiler available.
Oct
31
comment What was the first language to support convenient user-land recursion?
I believe LISP-58 was first implemented in 1960. I don't know if that version supported recursion, or if it did it may have had problems. McCarthy began his work on garbage collection to address some of those problems around the same time. A lot of roads lead to and from Project MAC at MIT in the early 60's.
Oct
31
comment What was the first language to support convenient user-land recursion?
A history tag should be added to this post.
Oct
31
revised What was the first language to support convenient user-land recursion?
edited body
Oct
31
answered What was the first language to support convenient user-land recursion?
Oct
25
answered Why do negative numbers evaluate to true in PHP?
Oct
21
comment Which scenarios to use .NET Concurrent Collections effectively?
You may want to read this microsoft.com/en-us/download/details.aspx?id=19222 even though it is C#/VB it might help. Without knowing the particulars it is difficult to comment.