Please help contribute to the Reddit categorization project here

    traverseda

    + friends - friends
    6,952 link karma
    16,224 comment karma
    send message redditor for

    [–] [AskJS] Why there is so much hate toward Javascript from other kind of programmer C#, Java, Php, Ruby, C++ etc ? traverseda 17 points ago in javascript

    JavaScript's makes it really easy to write bad code. A lot of the best practices seem designed to encourage writing bad code. Take a look at the left-pad debacle for example.

    As a python dev, "there should be one, and preferably only one, obvious way to do something". In JavaScript there always a lot of ways to do whatever you want, which I think makes it a lot harder to read and reason about.

    While JavaScript may not be an inherently slow language, it does get used to implement a lot of crap. Personally I think that a lot of the functionality JavaScript provides could be replaced by something like Htmx and we'd all be better off.

    [–] Learning GTK/GNOME development with Python traverseda 1 points ago in gnome

    https://medium.com/flutter/announcing-flutter-linux-alpha-with-canonical-19eb824590a9

    It fills a very similar niche. It's definitely competing on the "what language/toolkit should I use to create linux desktop apps" front.

    [–] Learning GTK/GNOME development with Python traverseda 1 points ago in gnome

    I can't see that competing with flutter/dart, but fair enough.

    I'd be more inclined to go with Nim if I wanted something that compiles to C (I've played around with nimlang a bit) or flutter/dart if I wanted a gui toolkit language.

    I suppose I'll keep an eye on vala though.

    [–] Learning GTK/GNOME development with Python traverseda 2 points ago in gnome

    I mean I'd prefer to program in python, generally.

    I'm really not sure what the justification for Vala is, unless it's just because google made Dart?

    I'm vagually aware it exists, but not sure why you're bringing it to my attention ;p

    If I was in that market I'd likely use flutter/dart instead. Where I am a python developer and have had similar questions as OP in the past, I figured I'd chime in with my experience.

    [–] Learning GTK/GNOME development with Python traverseda -3 points ago in gnome

    Maybe, we'll see how that goes. I suspect it will be more of an "embrace, extend, extinguish" thing, as libadwaita become more and more of a hard requirement for any GTK apps and traditional GTK gets sort of left behind. It could be a really positive move if it's handled well though!

    [–] Learning GTK/GNOME development with Python traverseda -5 points ago * (lasted edited 19 days ago) in gnome

    Not going to be a popular opinion around here, but consider using QT and PySide6 instead? If you want to make an explicitly Gnome app then GTK might be appropriate, but I've found QT to be a more pleasant experience and more applicable to real-life work. A lot of GTK's choices are tightly bound to the Gnome "platform", it's moving farther away from being a generic GUI toolkit. With QT it integrates pretty nicely with Gnome desktop, but you can also use it to make embedded applications, it's easier to make Windows applications or MacOs applications, and it's generally easier to get it to do non-gnome things.

    If you're just using GTK because it's the default, well I'd encourage you to look further afield! If you are willing to spend you're time building a skillset that really is mostly only going to be useful for Gnome, well I'm sure you'll get plenty of help here, and Gnome is a pretty big platform!

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 3 points ago in halifax

    If you want to stay in the right hand lane until the very end, then that seems reasonable. Maybe people will follow your example and start doing a proper zipper merge, despite that not being how the law works right now.

    But if someone isn't respecting the no passing sign I've got to assume they're just doing it for selfish reasons. That's not a proper zipper merge.

    If you want to do a proper zipper merge you need to not pass people, just set there, block the lane, move at the speed of traffic, and hope people fall in to line behind you.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 1 points ago in halifax

    That's a reasonable stance to take, and I can respect that. As long as you're not using it as an excuse to cut in line that is. If you want to stay in the right hand lane until the very end, then fine go ahead and do that. Maybe people will follow your example and start doing a proper zipper merge, despite that not being how the law works right now.

    But do you at least respect the no passing sign? Because if you don't I've got to assume you're just doing it for selfish reasons.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda -1 points ago in halifax

    It really depends on the situation, and zipper merges are used a lot where it's appropriate. Mostly it's appropriate on shorter city streets, where the line of traffic is likely to interact with side streets and intersections.

    Tell me, do you just plow past an entire line of still traffic so you can zipper merge? I'd have respect for you if you did the zipper merge but didn't try to cut in line.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 2 points ago in halifax

    That's a pretty big oversimplification. Zipper merges result in shorter lines, which can reduce congestion if the long line of traffic is causing some other intersection or ramp to back up.

    But basically, trust the traffic control people to do their job. Anyone who's doing work on a major highway needs to get government approval for their traffic control plan, including things like where to put the no passing and merge signs.

    Odds are good that you don't know better then all the people involved in putting those plans together, and they did put them together with the understanding that people would follow the directions in the drivers handbook.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 4 points ago * (lasted edited 24 days ago) in halifax

    "Using the road more efficiently" only really matters if the line of traffic is so long that it's blocking an intersection or off ramp.

    Whether the zipper merge is actually faster is very debatable, it does result in "shorter" lines since you have two lines instead of one, but there's still only so fast cars can make it through the choke point.

    If it helps, just imagine an early merge as a zipper merge that happens a bit early. Sure, the line is longer but that only matter is some circumstances and when it does matter they move the signs further up.

    Bayer's road construction? There isn't a no passing sign, so feel free to do a last minute zipper merge. The outbound 101? They want to keep a lane clear for ambulances and to keep the on-ramp from backing up, so they do have a no passing sign.

    The signs are there for a reason, and when a zipper merge makes sense they use a zipper merge. Most of the time the zipper merge does make sense, and they place the signs accordingly.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 4 points ago * (lasted edited 24 days ago) in halifax

    Nah, I'm just bored on a Saturday. Putting off taking the pool down.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 0 points ago * (lasted edited 24 days ago) in halifax

    Alternatively in only works in provinces where people aren't completely selfish assholes, and we'll just have to see how long it keep working here.

    Closing the lane further down might end up being necessary if people keep on ignoring the road signs and the drivers handbook.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 3 points ago in halifax

    Hallelujah!

    I think that's the first time that's ever happened to me in an internet argument ;p

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 1 points ago in halifax

    Depends on the cars and the drivers really, where as zipper merging a bit earlier hurts no one.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 5 points ago in halifax

    It just means no passing. This part of the drivers handbook is what tells you to clear the lane.

    But let's be honest, you're whipping past all the waiting cars anyway aren't you?

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 3 points ago * (lasted edited 24 days ago) in halifax

    I don't think you really have an understanding of how much extra work/cost closing the lane an extra 1km earlier would be. On the other hand as long as people follow the rules in the drivers handbook and the actual road signs then everything works fine.

    It's only when people act selfishly and try to get ahead that we'd need to create a bunch of extra work and close lanes way earlier. I suppose we're going to have to though, if this trend towards people selfishly zipping past all the traffic continues. Which mostly means that ambulances/police are going to have to either run over or move cones.

    Don't you find it weird that the only place you see those no passing signs is when there's no shoulder for an ambulance to drive on? Instead of following the rules you'd rather create a bunch of extra work for people, I just don't get it.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 5 points ago in halifax

    OP not gonna like the replies.

    I don't understand why you'd think you can just ignore a no passing sign? Like why do you think some construction zones have no passing signs and others don't? Do you think they put them up just for fun?

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda -3 points ago in halifax

    What happens if there's an ambulance that needs to get by? Especially on the more narrow highways with cement barricades and no real should, where there isn't really room for an ambulance to go down the middle? Particularly the outbound 101 right now?

    If people did a zipper merge at the last minute then they would block the on-ramp further down, causing it to back up, and would also block any ambulances or police from getting through. Since it's a major artery keeping it passable for emergency services is important.

    I don't see the zipper merge you're advocating for working in that situation. I think that if they maybe put cones down it would make it more clear why that lane needs to be kept clear. Since people apparently can't be respected to understand the no passing signs, I guess cones are the only option.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda 4 points ago in halifax

    Most of the places I've seen the no passing sign used, as opposed to the more traditional zipper merge, there have been concrete barriers that would have completely blocked any ambulance from getting through if not for the empty lane.

    I don't see why it's so hard for people to respect the no passing sign, it's there for a reason. If it's not there then people do use a traditional zipper merge.

    [–] Merging. Lesson 102. Don't pass when there's a no passing sign traverseda -3 points ago * (lasted edited 24 days ago) in halifax

    Zipper merge is all well and good, but the time to zipper merge is before the no passing sign. It might seem odd to zipper merge before you absolutely have to, but generally when one of these is set up a longer line isn't going to cause any issues and the empty lane/shoulder gives room for emergency services to get where they need to be.

    [–] Show articles contained in Kiwix collection traverseda 1 points ago in DataHoarder

    https://github.com/kimbauters/ZIMply/blob/master/zimply/zimply.py#L571

    This line of code is responsible for iterating through a zim file and printing the index. So if you know your way around python something like this should work:

    ```python

    This is all untested pseudocode, it doesn't actually work

    from zimple import ZIMFile

    zimfile = ZIMFile("wiki.zim","utf-8")

    for fullurl, title, index in zimfile: print(title) ```

    [–] There is no “Linux” Platform traverseda 1 points ago in linux

    I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

    Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

    There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.