Click here to Skip to main content
15,887,135 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!

 
NewsMark Zuckerberg: Facebook will set a completely new privacy standard for tech industry Pin
Kent Sharkey24-Jul-19 9:31
staffKent Sharkey24-Jul-19 9:31 
NewsObject-Oriented Programming — The trillion dollar disaster Pin
Kent Sharkey24-Jul-19 9:16
staffKent Sharkey24-Jul-19 9:16 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
TheGreatAndPowerfulOz24-Jul-19 10:15
TheGreatAndPowerfulOz24-Jul-19 10:15 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster PinPopular
jesarg24-Jul-19 11:20
jesarg24-Jul-19 11:20 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Joe Woodbury24-Jul-19 12:02
professionalJoe Woodbury24-Jul-19 12:02 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil24-Jul-19 17:08
professionalDavid O'Neil24-Jul-19 17:08 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil24-Jul-19 17:42
professionalDavid O'Neil24-Jul-19 17:42 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Daniel Pfeffer24-Jul-19 21:13
professionalDaniel Pfeffer24-Jul-19 21:13 
David O'Neil wrote:
In other words, say you create a word processor. The functional programming explanations I've seen indicate you have a 'document' in memory that might be 2 MB. If you add a letter to the document via a keystroke, in order to keep it immutable, you need to generate an entirely new 2 MB block with the added character, which becomes the 'new' document. The program always updates to that 'new' document, in order to eliminate mutability.

One way might be to divide the document into smaller portions (e.g. paragraphs), each immutable, and a list of paragraphs. Updating a keystroke would then consist of (a) making a new copy of the paragraph, and (b) making a new copy of the list, which points to the new paragraph.

Nowhere does it say that all the data in a functional program must consist of a single block.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.

GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil25-Jul-19 5:46
professionalDavid O'Neil25-Jul-19 5:46 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Rob Grainger24-Jul-19 22:24
Rob Grainger24-Jul-19 22:24 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Nelek25-Jul-19 1:50
protectorNelek25-Jul-19 1:50 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil25-Jul-19 5:46
professionalDavid O'Neil25-Jul-19 5:46 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Amarnath S24-Jul-19 18:29
professionalAmarnath S24-Jul-19 18:29 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
PeejayAdams25-Jul-19 1:58
PeejayAdams25-Jul-19 1:58 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Chris Maunder25-Jul-19 8:13
cofounderChris Maunder25-Jul-19 8:13 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff25-Jul-19 22:31
professionalBillWoodruff25-Jul-19 22:31 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller26-Jul-19 2:36
Bernhard Hiller26-Jul-19 2:36 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 4:30
professionalBillWoodruff26-Jul-19 4:30 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller26-Jul-19 2:40
Bernhard Hiller26-Jul-19 2:40 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
jesarg26-Jul-19 4:30
jesarg26-Jul-19 4:30 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 5:08
professionalBillWoodruff26-Jul-19 5:08 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 21:03
professionalBillWoodruff26-Jul-19 21:03 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
jesarg28-Jul-19 16:05
jesarg28-Jul-19 16:05 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller28-Jul-19 21:36
Bernhard Hiller28-Jul-19 21:36 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff29-Jul-19 1:25
professionalBillWoodruff29-Jul-19 1:25 

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.