Quantum Lock suspends sales due to developers losing access to source code
  • CodeBlooded CodeBlooded Now 96%

    So, basically, “we started learning Git and accidentally blew away the only copy of the code base we had!” 😂

    I’ve watched new developers delete 2 weeks worth of development by misunderstanding Git🤦‍♂️

    31
  • Which one???
  • CodeBlooded CodeBlooded Now 100%

    Alright stranger, let’s hear it. What is it about Fish that you love so much?

    I’ve been generally happy with bash or zsh, pretty much whatever is installed by default (and I honestly don’t know the difference between the two I just mentioned 😬).

    4
  • The 20 best open-source alternatives to popular software on Windows
  • CodeBlooded CodeBlooded Now 75%

    Gimp is all I know, I can’t compare to Photoshop, and I love it! ❤️

    2
  • Implementing RFC 3339 shouldn't really be that hard...
  • CodeBlooded CodeBlooded Now 100%

    That’s fair. The replies here have opened my narrow thoughts that I’ve had on everyone solely using UTC.

    In my defense, when discussing this with others in person, I’ve only ever been given garbage reasons to have time zones…

    Now …can we all agree to hate Daylight Saving Time?

    1
  • In Odessa, a mirage was noticed over the sea.
  • CodeBlooded CodeBlooded Now 100%

    …this feels like Dune

    6
  • This Patch Boosts Linux Gaming Performance By 50%+ (And other programs)
  • CodeBlooded CodeBlooded Now 100%

    This sounds wonderful. I played Windows games on Linux for a decade, and it was often a painful experience. I’d love to see some real life in-game comparisons to illustrate what this brings to the table!

    4
  • Implementing RFC 3339 shouldn't really be that hard...
  • CodeBlooded CodeBlooded Now 100%

    I don’t think it’s actually realistic that this would ever change at this point in the game. I do think we could have adapted to all using UTC if we never started with time zones in the first place.

    2
  • Implementing RFC 3339 shouldn't really be that hard...
  • CodeBlooded CodeBlooded Now 50%

    Yes. Many people already work shifts that have them do exactly that (show up to work on Monday, go home on Tuesday).

    My first job had me work all sorts of shifts. Anything other than the day shift, I was showing up early or late evening one day, and leaving work early or late morning the next day.

    0
  • Implementing RFC 3339 shouldn't really be that hard...
  • CodeBlooded CodeBlooded Now 70%

    Yes, this is literally what I’m proposing.

    You do not still end up with the same issues. Somebody booking a ticket for a hotel room to be available at 1300 from a different time zone than said hotel will not arrive at the hotel to learn that the check in time is different from their expectation.

    Regarding “the link between the hour of the day and the sun’s position,” I’m asserting that we should recalibrate this expectation based on time zones, rather than changing the clock to some fictitious time based on “noon” always equaling “1200.”

    who gets to decide that everyone switches over and what is the new global time?

    “Global time” in this context is already decided to be UTC. And no one gets to decide on the switch. This is a dream that will never come to fruition. 😕

    4
  • Implementing RFC 3339 shouldn't really be that hard...
  • CodeBlooded CodeBlooded Now 75%

    Who gets to have the time-zone that’s noon at noon

    I am asserting that we abandon this concept of “noon” having to be precisely when the pixels on the my clock take the form of “12:00”.

    Who cares? Just let “noon” be whatever mid-day is where you live.

    0 isn’t my midnight

    Same thing, why does it matter? Why do people cling to this? Midnight should be when you are mid-way through the night, regardless of what time a clock shows.

    It also doesn’t fix the “what time of day is it elsewhere in the world” problem, which still requires knowledge of time differences. You know. Time zones.

    I don’t have time zones memorized, so I have to look up this information when I need to know it anyway. I did say in my post that the [time] “zones” would still exist if I had my way with UTC. I do still think it’s valuable to know the operating hours for different parts of the earth- I just think we can track this without having to have the madness that is time zones. However, while answering this, I do feel what you’re saying. Perhaps we do keep time zones, but only as a way to tell time that is secondary to UTC? (As compared to today, where UTC is often an afterthought, if people even think about it at all.)

    4
  • Implementing RFC 3339 shouldn't really be that hard...
  • CodeBlooded CodeBlooded Now 80%

    Mandating UTC everywhere and eliminating the concept of time zones altogether is all a political candidate needs to do in order to earn my vote in 2024.

    Seriously, what is the point of time zones? The only explanation I’ve ever heard is “well if we didn’t have time zones, half the world would be expected to be awake when it’s dark out!” No. We could all just literally adjust the times of our business operations based around when daylight is usual for the different geographic regions as they have the sun shine on them. The physical “zones” of time zones could remain the same, and in those zones “noon” would just mean something other than “12:00.” “Noon” for one region could be 2300 while what is considered “noon” for another region could be 1800.

    (And for my next rant: why the 24 hour clock is superior to the 12 hour clock… reason number 1? There’s 24 hours in a day…)

    29
  • What are your programming hot takes?
  • CodeBlooded CodeBlooded Now 100%

    10 is working at Microsoft on the .net framework itself.

    An interesting spin. I like to imagine that you could have answered “10/10,” taken a pause, and declared that you’re leaving the interview early to apply directly to Microsoft to “work on the .net framework itself.” 🤓

    dev II position to work on a web app

    ”we want you to tell us that you’re over qualified for the role”

    1
  • What are your programming hot takes?
  • CodeBlooded CodeBlooded Now 100%

    As a hiring manager, I can understand why you didn’t get the job. I agree that it’s not a “good” question, sure, but when you’re hiring for a job where the demand is high because a lot is on the line, the last thing you’re going to do is hire someone who says their skills are “6.5/10” after almost a decade of experience. They wanted to hear how confident you were in your ability to solve problems with .NET. They didn’t want to hear “aCtUaLlY, nO oNe Is PeRfEcT.” They likely hired the person who said “gee, I feel like my skills are 10/10 after all these years of experience of problem solving. So far there hasn’t been a problem I couldn’t solve with .NET!” That gives the hiring manager way more confidence than something along the lines of “6.5/10 after almost a decade, but hire me because no one is perfect.” (I am over simplifying what you said, because this is potentially how they remembered you.)

    Unfortunately, interviews for developer jobs can be a bit of a crap shoot.

    1
  • 5 July 2024
  • CodeBlooded CodeBlooded Now 100%

    10/10

    2
  • Linux market share passes 4% for first time; macOS dominance declines
  • CodeBlooded CodeBlooded Now 100%

    Report: Linux was on 6.34 percent of computers last month if you count ChromeOS.

    What are the reasons one wouldn’t count ChromeOS? I guess I don’t know much about it, is it somehow “less Linux” than your run of the mill Ubuntu/Debian, Arch, openSUSE, etc?

    1
  • Stop use docker
  • CodeBlooded CodeBlooded Now 100%

    I was so relieved to never need VM’s again after discovering Docker.

    16
  • Senior dev be like...
  • CodeBlooded CodeBlooded Now 100%

    Hey, you are actually double booked for the nth meeting for annual “Goals” that’s coming up!

    3
  • What are some common misconceptions about programming that you'd like to debunk?
  • CodeBlooded CodeBlooded Now 100%

    The misconception that we’re the person to go to to fix your printer…

    ..I mean we probably can fix it, but it’s a waste of our time…

    23
  • Recommend me a programming language
  • CodeBlooded CodeBlooded Now 75%

    I’m not crazy about Google’s part in Go, but man, I’ve been using Go a lot and I love it. It feels like a “modern C” that lets you focus on logic instead of memory allocation. I know it violates your requirements, but I’d suggest checking it out anyway! 🤷‍♂️

    2
  • We Can’t Hire You. Developers’ Challenge
  • CodeBlooded CodeBlooded Now 100%

    I feel your pain. I once worked at a place that hired an “expert” as a senior dev who asked me on the first day, “what is this import on the first line of this code??? I’ve never seen this before. 🤔” They were unfamiliar with the concept of packages and importing them… Senior dev, hired specifically because they were an expert in a specific language…

    They’d call me upwards of 12 times a day for help with the most basic of tasks with anything technical, to include how to install the basic runtime to be able to run code in that language.

    (I’m speaking quasi cryptically on purpose.)

    4
  • github.com

    Voyager, aka ‘wefwef.app’, just hit 1.0 This is a project that makes me really interested in what I can do with a PWA. (It’s an Apollo-esque (an iOS app for Reddit) progressive web app for Lemmy, and it kicks ass so far.)

    101
    12
    github.com

    I’ve been using this to execute Go “scripts” in CI pipelines where Bash just doesn’t cut it. It’s an interpreter for Go. It can be used to treat Go code like a “script,” rather than a compiled application. It is also able to be imported into a Go program and used to load up Go code dynamically at run time (think “loading plugins” with Go!). From the readme: [![release](https://img.shields.io/github/tag-date/traefik/yaegi.svg?label=alpha)](https://github.com/traefik/yaegi/releases) [![Build Status](https://github.com/traefik/yaegi/actions/workflows/main.yml/badge.svg)](https://github.com/traefik/yaegi/actions/workflows/main.yml) [![GoDoc](https://godoc.org/github.com/traefik/yaegi?status.svg)](https://pkg.go.dev/mod/github.com/traefik/yaegi) Yaegi is Another Elegant Go Interpreter. It powers executable Go scripts and plugins, in embedded interpreters or interactive shells, on top of the Go runtime. ## Features * Complete support of [Go specification][specs] * Written in pure Go, using only the standard library * Simple interpreter API: `New()`, `Eval()`, `Use()` * Works everywhere Go works * All Go & runtime resources accessible from script (with control) * Security: `unsafe` and `syscall` packages neither used nor exported by default * Support the latest 2 major releases of Go (Go 1.19 and Go 1.20) ## Install ### Go package ```go import "github.com/traefik/yaegi/interp" ``` ### Command-line executable ```bash go install github.com/traefik/yaegi/cmd/yaegi@latest ``` Note that you can use [rlwrap](https://github.com/hanslub42/rlwrap) (install with your favorite package manager), and alias the `yaegi` command in `alias yaegi='rlwrap yaegi'` in your `~/.bashrc`, to have history and command line edition. ### CI Integration ```bash curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $GOPATH/bin v0.9.0 ``` ## Usage ### As an embedded interpreter Create an interpreter with `New()`, run Go code with `Eval()`: ```go package main import ( "github.com/traefik/yaegi/interp" "github.com/traefik/yaegi/stdlib" ) func main() { i := interp.New(interp.Options{}) i.Use(stdlib.Symbols) _, err := i.Eval(`import "fmt"`) if err != nil { panic(err) } _, err = i.Eval(`fmt.Println("Hello Yaegi")`) if err != nil { panic(err) } } ``` [Go Playground](https://play.golang.org/p/2n-EpZbMYI9) ### As a dynamic extension framework The following program is compiled ahead of time, except `bar()` which is interpreted, with the following steps: 1. use of `i.Eval(src)` to evaluate the script in the context of interpreter 2. use of `v, err := i.Eval("foo.Bar")` to get the symbol from the interpreter context, as a `reflect.Value` 3. application of `Interface()` method and type assertion to convert `v` into `bar`, as if it was compiled ```go package main import "github.com/traefik/yaegi/interp" const src = `package foo func Bar(s string) string { return s + "-Foo" }` func main() { i := interp.New(interp.Options{}) _, err := i.Eval(src) if err != nil { panic(err) } v, err := i.Eval("foo.Bar") if err != nil { panic(err) } bar := v.Interface().(func(string) string) r := bar("Kung") println(r) } ``` [Go Playground](https://play.golang.org/p/WvwH4JqrU-p) ### As a command-line interpreter The Yaegi command can run an interactive Read-Eval-Print-Loop: ```console $ yaegi > 1 + 2 3 > import "fmt" > fmt.Println("Hello World") Hello World > ``` Note that in interactive mode, all stdlib package are pre-imported, you can use them directly: ```console $ yaegi > reflect.TypeOf(time.Date) : func(int, time.Month, int, int, int, int, int, *time.Location) time.Time > ``` Or interpret Go packages, directories or files, including itself: ```console $ yaegi -syscall -unsafe -unrestricted github.com/traefik/yaegi/cmd/yaegi > ``` Or for Go scripting in the shebang line: ```console $ cat /tmp/test #!/usr/bin/env yaegi package main import "fmt" func main() { fmt.Println("test") } $ ls -la /tmp/test -rwxr-xr-x 1 dow184 dow184 93 Jan 6 13:38 /tmp/test $ /tmp/test test ``` ## Documentation Documentation about Yaegi commands and libraries can be found at usual [godoc.org][docs]. ## Limitations Beside the known [bugs] which are supposed to be fixed in the short term, there are some limitations not planned to be addressed soon: - Assembly files (`.s`) are not supported. - Calling C code is not supported (no virtual "C" package). - Directives about the compiler, the linker, or embedding files are not supported. - Interfaces to be used from the pre-compiled code can not be added dynamically, as it is required to pre-compile interface wrappers. - Representation of types by `reflect` and printing values using %T may give different results between compiled mode and interpreted mode. - Interpreting computation intensive code is likely to remain significantly slower than in compiled mode. Go modules are not supported yet. Until that, it is necessary to install the source into `$GOPATH/src/github.com/traefik/yaegi` to pass all the tests. ## Contributing [Contributing guide](CONTRIBUTING.md). ## License [Apache 2.0][License]. [specs]: https://golang.org/ref/spec [docs]: https://pkg.go.dev/github.com/traefik/yaegi [license]: https://github.com/traefik/yaegi/blob/master/LICENSE [github]: https://github.com/traefik/yaegi [bugs]: https://github.com/traefik/yaegi/issues?q=is%3Aissue+is%3Aopen+label%3Abug

    7
    2
    https://docs.orbstack.dev/

    >OrbStack is a fast, light, and simple way to run Docker containers and Linux machines on macOS. You can think of it as a supercharged WSL and Docker Desktop alternative, all in one easy-to-use app. I just caught wind of this and have yet to try it. Does anyone here have any experience with OrbStack that they can speak to? 👀

    18
    7
    CodeBlooded Now
    4 117

    CodeBlooded

    programming.dev