Search results

  1. [)roi(]

    As a senior software dev, what's the one piece of advice that you would give to your younger self ?

    Code, no differ to art starts from a rough sketch-up and requires a lot of skill + persistence to transform it into an art... ....the magic of the refactoring brush.
  2. [)roi(]

    Microsoft Edge

    Are you dual booting on a Mac? If so why? why not just use Parallels or VMWare Fusion?
  3. [)roi(]

    As a senior software dev, what's the one piece of advice that you would give to your younger self ?

    "Pattern generally implies there is some kind of duplication. Duplication should ideally be factored out (OnceAndOnlyOnce aka DRY) so that only the differences remain. It appears to me that stronger languages can more easily remove such duplication because sometimes one has to make a kind of...
  4. [)roi(]

    YouTube just banned supremacist content, and thousands of channels are about to be removed

    The Chinese communist government has an official Great Firewall to censor free speech of it's billion+ populace. Apple, Facebook, Google, Twitter, .... has an unofficial Great Firewall to censor any views that oppose their leftist ideologies, identity politics and "political correctness". The...
  5. [)roi(]

    Functional Thread 9 - Tagged Union Types

    Implementation Here's a basic implementation of a Tagged Union type for a single union value. public sealed class Tagged<E, T1> where E : Enum { public readonly E Tag; public readonly bool HasValue; private readonly T1 UnionValue; private Tagged() { } internal Tagged(E tag, bool...
  6. [)roi(]

    Functional Thread 9 - Tagged Union Types

    Tagged Union Type Usage Examples in C# In the absence of syntactic support for a tagged union type in C#; we can create a custom Data Type to fill this space called Tagged. Let's start first with a code comparison between some code in Swift... public enum Direction { case North, South...
  7. [)roi(]

    Functional Thread 9 - Tagged Union Types

    Review of standard C# Enum type behaviour We'll start our investigation into more complex SUM types like Tagged Unions and Union types, by first reviewing the existing functionality of C# enum type in comparison with Rust and Swift. C# public enum Direction { North, South, East, West } //...
  8. [)roi(]

    Functional Thread 9 - Tagged Union Types

    SUM and PRODUCT types These types are part of a general category referred to as Algebraic Data Types; a term more commonly used in both functional programming and type theory. The two common classes of algebraic types are: product types (i.e., tuples and records) sum types (i.e., tagged or...
  9. [)roi(]

    Functional Thread 9 - Tagged Union Types

    Tagged Union Type A tagged union, also called a choice type, discriminated union, disjoint union, sum type or coproduct, are data structures that are used to represent a value that could take on several different, but statically fixed types. Only one of the types can be in use at any one time...
  10. [)roi(]

    What to use for hybrid blog/personal notes/knowledge base

    That really depends on the template and the frontend framework. Both Jekyll and Gatsby can easily provide for all of your bullet points.
  11. [)roi(]

    As a senior software dev, what's the one piece of advice that you would give to your younger self ?

    The best code is the code that is never written at all; no bugs, no maintenance, no worries.
  12. [)roi(]

    As a senior software dev, what's the one piece of advice that you would give to your younger self ?

    . . . YAGNI is not an absolute... Examples: Maximise use of generics with reusable Data types, Frameworks, ... inline with DRY. For app / feature specific features; YAGNI.
  13. [)roi(]

    Visual Studio 2019 preview

    Microsoft as of last week's Visual Studio for Mac 2019 8.1 preview release update have finally made available a few of C# 8.0's language features as part of the integrated support for .NET Core 3 Previews. Advanced tutorial on pattern matching...
  14. [)roi(]

    Where to study with poor Maths marks?

    ...or like all binary operations; the reasoning is reductive.
  15. [)roi(]

    Where to study with poor Maths marks?

    My brother had a similar arguably worse situation; flunked maths throughout primary education and dropped out of school in grade 9; joined the navy, only to find out afterwards he had stunted his career. Restarted his education and passed matric with distinctions and then subsequently completed...
  16. [)roi(]

    Where to study with poor Maths marks?

    I suggest he instead focus on redoing his mathematics; maths literacy is only going to a hinderance iro a BSc or further study. https://www.mastermaths.co.za/redo-maths-science https://www.education.gov.za/Programmes/SecondChanceProgramme.aspx
  17. [)roi(]

    Emmanuel Macron says Europe won't block Huawei

    Don't be a moron: laws always matter; plus would me asking you to "prove that it doesn't happen" be similarly proof of anything. Fact that China is a despotic dictatorship with explicit laws that compels it and mandates silence about it, and the fact that they imprison journalists, editors...
  18. [)roi(]

    Emmanuel Macron says Europe won't block Huawei

    Nope, that's your words, not mine. I said. Rubbish; there's nothing about the USA that is evidence of fascism or a dictatorship. The fact that the NSA, CIA, or any other acronym spies on people is not antithetical to free speech or liberty, e.g. nothing in US law compels any company to enable...
  19. [)roi(]

    Emmanuel Macron says Europe won't block Huawei

    Ignore the law; when the law is the problem.:rolleyes: guess you just ignore the parts that mandates silence. Why stop there there with the rhetoric, it's not as if China is a despotic dictatorship. :rolleyes: As for USA; difference which you apparently missed; is that USA is not a...
  20. [)roi(]

    Emmanuel Macron says Europe won't block Huawei

    Here's the law, translate it and read it yourself and then try to dispute it. http://www.npc.gov.cn/npc/xinwen/2017-06/27/content_2024529.htm
Top