Click here to Skip to main content
15,879,535 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: Using a Framework will harm the maintenance of your software Pin
englebart15-Oct-22 8:18
professionalenglebart15-Oct-22 8:18 
NewsUS Army soldiers felt ill while testing Microsoft’s HoloLens-based headset Pin
Kent Sharkey13-Oct-22 8:01
staffKent Sharkey13-Oct-22 8:01 
GeneralRe: US Army soldiers felt ill while testing Microsoft’s HoloLens-based headset Pin
MarkTJohnson14-Oct-22 3:52
professionalMarkTJohnson14-Oct-22 3:52 
GeneralRe: US Army soldiers felt ill while testing Microsoft’s HoloLens-based headset Pin
charlieg15-Oct-22 6:00
charlieg15-Oct-22 6:00 
NewsFunctional programming in C#—A brief consideration Pin
Kent Sharkey13-Oct-22 7:16
staffKent Sharkey13-Oct-22 7:16 
GeneralRe: Functional programming in C#—A brief consideration Pin
obermd13-Oct-22 8:17
obermd13-Oct-22 8:17 
GeneralRe: Functional programming in C#—A brief consideration Pin
Marc Clifton13-Oct-22 10:37
mvaMarc Clifton13-Oct-22 10:37 
GeneralRe: Functional programming in C#—A brief consideration Pin
David O'Neil13-Oct-22 12:50
professionalDavid O'Neil13-Oct-22 12:50 
Quote:
...Something I’ve noticed is that many developers, based on their experiences and taking advantage of the possibilities of OOP, have created totally empirical code, full of endless “if” and “else” statements...
Then it must not be very good OOP code, if it even warrants that title.
Quote:
The use of immutable values and recursion can generate more memory consumption ... but compared to the overhead of imperative programming, pure functions require much less overhead
Self-contradictory.
namespace FPExampleApp;
public class Order
{
    public int UnitPrice { get; set; }
    public int Discount { get; set; }

    public void SpecialCustomer(int unitPrice, int discount)
    {
        UnitPrice = unitPrice;
        Discount += discount;
    }
}
The article uses constructors to simplify code in the Immutable version, but no Order(UnitPrice up, int discount) { } to simplify the imperative case. Roll eyes | :rolleyes: Roll eyes | :rolleyes: Roll eyes | :rolleyes: D'Oh! | :doh: D'Oh! | :doh: D'Oh! | :doh:
They can be made practically identical. I stick by my first statement.

GeneralRe: Functional programming in C#—A brief consideration Pin
englebart15-Oct-22 8:29
professionalenglebart15-Oct-22 8:29 
GeneralRe: Functional programming in C#—A brief consideration Pin
David O'Neil15-Oct-22 15:26
professionalDavid O'Neil15-Oct-22 15:26 
GeneralRe: Functional programming in C#—A brief consideration Pin
obermd17-Oct-22 4:13
obermd17-Oct-22 4:13 
NewsBack to the office? Don't expect to be more productive when you get there Pin
Kent Sharkey13-Oct-22 7:16
staffKent Sharkey13-Oct-22 7:16 
NewsMicrosoft shows Windows 11 with floating taskbar and notification area on top Pin
Kent Sharkey13-Oct-22 7:16
staffKent Sharkey13-Oct-22 7:16 
NewsThis Danish political party Is led by an AI Pin
Kent Sharkey13-Oct-22 7:16
staffKent Sharkey13-Oct-22 7:16 
GeneralRe: This Danish political party Is led by an AI Pin
obermd13-Oct-22 8:20
obermd13-Oct-22 8:20 
GeneralRe: This Danish political party Is led by an AI Pin
Daniel Pfeffer13-Oct-22 11:03
professionalDaniel Pfeffer13-Oct-22 11:03 
GeneralRe: This Danish political party Is led by an AI PinPopular
Dan Neely14-Oct-22 3:46
Dan Neely14-Oct-22 3:46 
GeneralRe: This Danish political party Is led by an AI Pin
Kent Sharkey14-Oct-22 3:48
staffKent Sharkey14-Oct-22 3:48 
GeneralRe: This Danish political party Is led by an AI Pin
Dan Neely14-Oct-22 3:55
Dan Neely14-Oct-22 3:55 
NewsMicrosoft Office will become Microsoft 365 in major brand overhaul Pin
Kent Sharkey13-Oct-22 4:31
staffKent Sharkey13-Oct-22 4:31 
GeneralRe: Microsoft Office will become Microsoft 365 in major brand overhaul Pin
obermd13-Oct-22 8:18
obermd13-Oct-22 8:18 
GeneralRe: Microsoft Office will become Microsoft 365 in major brand overhaul Pin
Kent Sharkey13-Oct-22 8:29
staffKent Sharkey13-Oct-22 8:29 
NewsBetter call Korben Dallas - it's starting! Pin
David O'Neil12-Oct-22 14:23
professionalDavid O'Neil12-Oct-22 14:23 
GeneralRe: Better call Korben Dallas - it's starting! Pin
den2k8812-Oct-22 21:24
professionalden2k8812-Oct-22 21:24 
GeneralRe: Better call Korben Dallas - it's starting! Pin
Marc Clifton13-Oct-22 2:44
mvaMarc Clifton13-Oct-22 2:44 

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.