Ich gründe jetzt eine IT-Band.....

Blue screens (are made of these) (Alternative Lyrics)
I lost my Bits on Windows 66 (Nat King Cole)
Empire of the Clouds (Iron Maiden)
Breaking the Code (Judas Priest)
....And Linux for All (Metallica)
 
Zuletzt bearbeitet:
WinRAR Love (Golden Earring)
Pour Syntax Sugar on Me (Def Leppard)
Don't Thread on Me (Metallica)
Where the Streams Have No Name (U2)
 
Internet killed the video store (Buggles)
Living da Nvidia loca (Ricky Martin)
Bits in America (Kim Wilde)
You always ping the same (Red Hot Chili Peppers)
A Hard Disks Bytes (The Beatles)
 
Another Few Bytes in Rust (Queen)
Damit hast du mich wirklich gekriegt :ROFLMAO:

Ich saß gerade an einem Rust-Projekt mit maturin als ich auf tutorials.de kam und den Post gelesen habe. Konnte mal wieder genüsslich lachen, danke dafür. (Und dazu kommt ja noch, dass das Originallied ein echter Ohrwurm ist)

Als kleines Dankeschön hier eine kurze Anekdote zu einem Go-Buch, das ich vor einiger Zeit gelesen habe. Aus "The Go Programming Language" (Donovan/Kernighan, 2015, S. 187):
Our running example for sorting will be a music playlist, displayed as a table. Each track is a single row, and each column is an attribute of that track, like artist, title, and running time. Imagine that a graphical user interface presents the table, and that clicking the head of a column causes the playlist to be sorted by that attribute; clicking the same column head again reverses the order. Let's look at what might happen in response to each click.

The variable tracks below contains a playlist. (One of the authors apologizes for the other author's musical tastes.) Each element is indirect, a pointer to a Track. [...]
Sowas schonmal gelesen? Der eine Autor disst den anderen ... im gemeinsamen Buch :oops:
Ich hatte sowas vorher jedenfalls noch nicht gesehen. Wie sich übrigens herausstellt, ist der Musikgeschmack besagten Autors gar nicht so übel. Hier eine angepasste Version des ursprünglichen Codes:
C-ähnlich:
package main

import (
    "fmt"
    "os"
    "sort"
    "text/tabwriter"
    "time"
)

type Track struct {
    Title  string
    Artist string
    Album  string
    Year   int
    Length time.Duration
}

// Helper type needed for helper functions:
type byArtist []*Track

// Helper functions, so sort.Sort knows what to do:
func (x byArtist) Len() int           { return len(x) }
func (x byArtist) Less(i, j int) bool { return x[i].Artist < x[j].Artist }
func (x byArtist) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }


var tracks = []*Track {
    {"Go", "Delilah", "From the Roots Up", 2012, length("3m38s")},
    {"Go", "Moby", "Moby", 1992, length("3m38s")},
    {"Go Ahead", "Alicia Keys", "As I Am", 2007, length("3m38s")},
    {"Ready 2 Go", "Martin Solveig", "Smash", 2011, length("3m38s")},
}

func length(s string) time.Duration {
    d, err := time.ParseDuration(s)
    if err != nil {
        panic(s)
    }
    return d
}

func printTracks(tracks []*Track) {
    const format = "%v\t%v\t%v\t%v\t%v\t\n"

    tw := new(tabwriter.Writer).Init(os.Stdout, 0, 8, 2, ' ', 0)

    fmt.Fprintf(tw, format, "Title", "Artist", "Album", "Year", "Length")
    fmt.Fprintf(tw, format, "-----", "------", "-----", "----", "------")

    for _, t := range tracks {
        fmt.Fprintf(tw, format, t.Title, t.Artist, t.Album, t.Year, t.Length)
    }
    tw.Flush()
}


func main() {
    fmt.Println("One of the authors apologizes for the other author's musical tastes:")
    sort.Sort(byArtist(tracks))
    printTracks(tracks)
}
Ein kurzes $ go run main.go offenbart den vermeintlich schlechten Musikgeschmack:
Code:
One of the authors apologizes for the other author's musical tastes:
Title       Artist          Album              Year  Length 
-----       ------          -----              ----  ------ 
Go Ahead    Alicia Keys     As I Am            2007  3m38s   
Go          Delilah         From the Roots Up  2012  3m38s   
Ready 2 Go  Martin Solveig  Smash              2011  3m38s   
Go          Moby            Moby               1992  3m38s

Gruß Technipion
 
Mein Schlagzeuger hatte mir das Bild im ersten Post zugeschickt.
ich hab den Inhalt davon in einem anderen Forum gepostet, und dort nahms ein eigenes Leben an.

Bin schier umgefallen vor Lachen.

wobei….. „….. Windows 66“ ist schon gruseliger Gedanke
 
wobei….. „….. Windows 66“ ist schon gruseliger Gedanke
Fürwahr, wobei ich persönlich mir da keine Sorgen machen würde, schließlich hat Microsoft selbst ja verkündet, dass mit Windows 10 Schluss sein wird. Man möchte sich ja auch gerne an diesem neuartigen SaaS beteiligen, das Google, Amazon, und Co. so großzügig die Taschen füllt.

Dem Konzern kannste echt nix glauben.
So und jetzt schnell abschicken, ehe ein Update den PC runterfährt und mein ganzer Fortschritt verloren geht!

Ah halt, passiert mir ja gar nicht, bin ja auf Fedora :giggle:
 
Album name: Hot Sockets

It's compilation album of the greatest Rebooters to ever work a data center!


Come On Boolean - Dexy Midnight Routers

Wake Me Up Before You Download - George Micro

I'm Gonna Need (500 Files) - The Programmers

When Drives Die - Prince and the Rev... Um... Norton Solutions

Everybody wants to Rule the World Wide Web - Tiers for Peers

(I've Had) the MIME of My Life - Data Dancing

Fast Ca-che - Tracy Chatman
 

Neue Beiträge

Zurück