87

If you need a vertical screen, your functions are too long.

Comments
  • 32
    It's not like you're always just looking at one function
  • 28
    who needs a screen
  • 20
    If you need a horizontal screen, your functions are full of spaghetti code 💁‍♂️
  • 11
    @JoshBent pssshhht who needs a keyboard?
  • 5
    I'm so adjusted to horizontally bigger monitors that I can now look at neither smaller laptop screens nor the vertical monitors

    Code quality doesn't dictate the kind of screens we need
  • 8
    If your functions are short, and you still need a vertical screen, then your functions are too far apart.
  • 3
    I use vertical screen to stack console, and multiple files, all in natural reading order (top to bottom)
  • 9
    @Stuxnet

    "alexa, git clone github/XYZ"

    "alexa, set work remote"

    "alexa, commit to master"
  • 2
    @myss It needs to have at least some logic in it to be a successful comeback. Why would horizontal screen indicate a spaghetti code?
  • 2
    @ScriptCoded So you're only looking at adjacent functions? If you need to look at different parts of your code you'll have to scroll some anyway...
  • 2
    @NickyBones idk, maybe for the same reason why vertical screen would indicate lengthy functions? 🙃
  • 6
    I hate it when code is spread over gazillions of super small functions because it's hard to get an idea what exactly is being done. Functions up to a 100 lines are totally fine.
  • 1
    @NickyBones But if you've got a 100, or, even 150 lliner class and that can fit on your screen? Wouldn't that be nice?
  • 0
    @myss No, this has a perfectly logical explanation - when people write or debug a function, they like to see it whole in front of them without having to scroll. When functions are too lengthy, one trick is to rotate the screen vertically so you can see more lines simultaneously...pretty basic.
  • 3
    @Fast-Nop If those functions make sense and have proper names there should not be a problem. On my 21 screen I can see easily 80 lines, so for up-to-100 lines functions there is no reason for vertical arrangement.
    I'm talking about novel-length functions and classes that people write because they are lazy. When you work on ultra low power, few Kb memory devices, these monster functions (who usually have gazillion local variables) can actually choke your stack.
  • 1
    Are vertical monitors still a thing? I thought they were the realm of "look at me I'm cool and different" devs who went back to a normal setup when the attention stopped... a few years ago now.
  • 3
    If you need a screen, you clearly have not heard of tmux.
  • 3
    @AlmondSauce I use one at work. It's nice.
  • 0
    @Root but are you "cool and different" because of it?
  • 3
    @JoshBent It makes doing my work easier, so I enjoy it. Idfc what others think of it.
  • 0
    @Root I'll take that back then. You don't strike me as that type :-)
  • 3
    It's good to read manga and reddit though
  • 2
    @Chrupiter that.....had never occurred to me
  • 0
    Anyone else who codes by directly imposing magnetic flux on the hard disk, causing it to write 0s and 1s?
Add Comment