Skip to content
0
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
jnkrtech@social.treehouse.systemsundefined

jnkrtech

@jnkrtech@social.treehouse.systems
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • I've been musing on #OOP style.
    jnkrtech@social.treehouse.systemsundefined jnkrtech@social.treehouse.systems

    @thelastpsion my 2 cents:

    If it’s tightly coupled to the structure of the class or breaks the class’s encapsulation somehow, it goes on the class

    Otherwise, if you’re using a language that allows you to control what functions are exported separately from what class members are exported, then it depends on the tradeoff between easy testing and a clean interface.

    If it’s a private method then it’s generally best to not unit test it directly (in a perfect world). If it’s a separate function then that’s much easier to unit test.

    If there’s no way to make it clear to consumers of your module that this code is supposed to be internal, then moving it out of the class increases the chances of people depending on it when you don’t want them to, or it can make your interfaces more cluttered.

    Once you have unit tests for the thing, it will want to settle towards where you’ve put it. So if you could see this function one day becoming part of its own class, I would lean towards extracting and testing it separately early.

    Uncategorized oop pascal objectpascal

  • Things no one believes me about from movies that they think they remember well:
    jnkrtech@social.treehouse.systemsundefined jnkrtech@social.treehouse.systems

    Home Alone is nearly two hours long. Watch it as an adult with another adult who has never seen it before. It is grueling.

    Uncategorized

  • Things no one believes me about from movies that they think they remember well:
    jnkrtech@social.treehouse.systemsundefined jnkrtech@social.treehouse.systems

    Things no one believes me about from movies that they think they remember well:

    - Only like 5% of the runtime of Home Alone involves booby traps. Significantly more time is spent focusing on the mother.

    - Also the movie is anti-feminist propaganda, holding up a clearly business-coded woman as neglectful of her child, unable to use her wealth to rectify the situation, and only able to redeem herself via extensive self-sacrifice.

    - At one point in the LEGO movie the villain forces a guy to kill his own parents. Fully on-screen.

    Uncategorized

  • Of all the existential questions that plague me, this is perhaps the most thorny:
    jnkrtech@social.treehouse.systemsundefined jnkrtech@social.treehouse.systems

    @intrepidhero are you familiar with http://langsec.org/ ? The idea of “weird machines” was mindblowing for me and is what first set me into this viewpoint

    Uncategorized compsci programming philosophy

  • Of all the existential questions that plague me, this is perhaps the most thorny:
    jnkrtech@social.treehouse.systemsundefined jnkrtech@social.treehouse.systems

    @intrepidhero IMO most programs are interpreters and their inputs are languages which control their functioning when interpreted. YAML config file, video file, HTTP request body, parser CLI args… all code.

    This is just the view from where I’m standing though. From a different direction code is data, too.

    Uncategorized compsci programming philosophy
  • Login

  • Login or register to search.
  • First post
    Last post