Click here to Skip to main content
14,366,620 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 10:31
staffKent Sharkey24-Jul-19 10:31 
NewsObject-Oriented Programming — The trillion dollar disaster Pin
Kent Sharkey24-Jul-19 10:16
staffKent Sharkey24-Jul-19 10:16 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
TheGreatAndPowerfulOz24-Jul-19 11:15
memberTheGreatAndPowerfulOz24-Jul-19 11:15 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
jesarg24-Jul-19 12:20
memberjesarg24-Jul-19 12:20 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Joe Woodbury24-Jul-19 13:02
professionalJoe Woodbury24-Jul-19 13:02 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil24-Jul-19 18:08
professionalDavid O'Neil24-Jul-19 18:08 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil24-Jul-19 18:42
professionalDavid O'Neil24-Jul-19 18:42 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Daniel Pfeffer24-Jul-19 22:13
professionalDaniel Pfeffer24-Jul-19 22: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 6:46
professionalDavid O'Neil25-Jul-19 6:46 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Rob Grainger24-Jul-19 23:24
memberRob Grainger24-Jul-19 23:24 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Nelek25-Jul-19 2:50
protectorNelek25-Jul-19 2:50 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil25-Jul-19 6:46
professionalDavid O'Neil25-Jul-19 6:46 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Amarnath S24-Jul-19 19:29
professionalAmarnath S24-Jul-19 19:29 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
PeejayAdams25-Jul-19 2:58
memberPeejayAdams25-Jul-19 2:58 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Chris Maunder25-Jul-19 9:13
adminChris Maunder25-Jul-19 9:13 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff25-Jul-19 23:31
mveBillWoodruff25-Jul-19 23:31 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller26-Jul-19 3:36
memberBernhard Hiller26-Jul-19 3:36 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 5:30
mveBillWoodruff26-Jul-19 5:30 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller26-Jul-19 3:40
memberBernhard Hiller26-Jul-19 3:40 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
jesarg26-Jul-19 5:30
memberjesarg26-Jul-19 5:30 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 6:08
mveBillWoodruff26-Jul-19 6:08 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 22:03
mveBillWoodruff26-Jul-19 22:03 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
jesarg28-Jul-19 17:05
memberjesarg28-Jul-19 17:05 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller28-Jul-19 22:36
memberBernhard Hiller28-Jul-19 22:36 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff29-Jul-19 2:25
mveBillWoodruff29-Jul-19 2: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.