Click here to Skip to main content
15,881,424 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: FCC chairman plans to 'reverse the mistake' of net neutrality Pin
Matt T Heffron28-Apr-17 6:57
professionalMatt T Heffron28-Apr-17 6:57 
NewsProgramming as a way of thinking Pin
Kent Sharkey26-Apr-17 10:08
staffKent Sharkey26-Apr-17 10:08 
GeneralRe: Programming as a way of thinking Pin
Mark_Wallace26-Apr-17 11:02
Mark_Wallace26-Apr-17 11:02 
GeneralRe: Programming as a way of thinking Pin
Munchies_Matt27-Apr-17 1:00
Munchies_Matt27-Apr-17 1:00 
GeneralRe: Programming as a way of thinking Pin
Mark_Wallace27-Apr-17 3:16
Mark_Wallace27-Apr-17 3:16 
GeneralRe: Programming as a way of thinking Pin
Munchies_Matt27-Apr-17 3:18
Munchies_Matt27-Apr-17 3:18 
GeneralRe: Programming as a way of thinking Pin
Marc Clifton26-Apr-17 11:03
mvaMarc Clifton26-Apr-17 11:03 
GeneralRe: Programming as a way of thinking Pin
Matt T Heffron28-Apr-17 7:22
professionalMatt T Heffron28-Apr-17 7:22 
Marc Clifton wrote:
I have to guess at what "popleft" means with regards to a queue
Why should a queue (deque) be conceptualized as right-to-left or left-to-right?
Why not top-to-bottom (like a disposable cup dispenser on the side of the water cooler...)?
Defining it as "in left; out right" may require a mental translation from the problem space to the code space. The "impedance mismatch" between the spaces is larger than necessary, especially because the operations are not named symmetrically, as Marc noted.

Yes, the programmer could encapsulate it with naming that matches the problem space, but that adds complexity to the solution. Just naming the input and output as such ought to be sufficient (IMHO). If there are operations that bend those definitions, so be it.

(I don't see the reason for the deque class to exist. It appears to be a doubly-linked list with some LIFO queue concepts wrapped around it with the left-to-right convention.)
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G.K. Chesterton

GeneralRe: Programming as a way of thinking PinPopular
Sander Rossel26-Apr-17 11:11
professionalSander Rossel26-Apr-17 11:11 
GeneralRe: Programming as a way of thinking Pin
Munchies_Matt27-Apr-17 0:52
Munchies_Matt27-Apr-17 0:52 
GeneralOn the other hand: Pin
W Balboos, GHB27-Apr-17 4:21
W Balboos, GHB27-Apr-17 4:21 
GeneralRe: Programming as a way of thinking Pin
Joe Woodbury27-Apr-17 7:51
professionalJoe Woodbury27-Apr-17 7:51 
NewsNew human rights to protect against 'mind hacking' and brain data theft proposed Pin
Kent Sharkey26-Apr-17 10:03
staffKent Sharkey26-Apr-17 10:03 
GeneralRe: New human rights to protect against 'mind hacking' and brain data theft proposed Pin
raddevus26-Apr-17 10:22
mvaraddevus26-Apr-17 10:22 
GeneralRe: New human rights to protect against 'mind hacking' and brain data theft proposed PinPopular
Mark_Wallace26-Apr-17 11:04
Mark_Wallace26-Apr-17 11:04 
GeneralRe: New human rights to protect against 'mind hacking' and brain data theft proposed Pin
Ron Anders26-Apr-17 14:04
Ron Anders26-Apr-17 14:04 
NewsHow your company needs to train workers in cybersecurity Pin
Kent Sharkey26-Apr-17 8:52
staffKent Sharkey26-Apr-17 8:52 
GeneralRe: How your company needs to train workers in cybersecurity Pin
Mark_Wallace26-Apr-17 11:07
Mark_Wallace26-Apr-17 11:07 
GeneralRe: How your company needs to train workers in cybersecurity Pin
Nelek26-Apr-17 19:58
protectorNelek26-Apr-17 19:58 
NewsMicrosoft recommends you don't install the Windows 10 Creators Update Pin
Kent Sharkey26-Apr-17 8:47
staffKent Sharkey26-Apr-17 8:47 
GeneralRe: Microsoft can go and **** itself! Pin
Mark_Wallace26-Apr-17 11:08
Mark_Wallace26-Apr-17 11:08 
GeneralRe: Microsoft can go and **** itself! Pin
enhzflep26-Apr-17 16:24
enhzflep26-Apr-17 16:24 
GeneralRe: Microsoft recommends you don't install the Windows 10 Creators Update Pin
Richard Deeming27-Apr-17 2:03
mveRichard Deeming27-Apr-17 2:03 
GeneralRe: Microsoft recommends you don't install the Windows 10 Creators Update Pin
Dan Neely27-Apr-17 2:52
Dan Neely27-Apr-17 2:52 
GeneralRe: Microsoft recommends you don't install the Windows 10 Creators Update Pin
Nelek27-Apr-17 3:50
protectorNelek27-Apr-17 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.