Programmer Humor

43707 readers
2 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 7 years ago
MODERATORS
1
 
 
2
3
 
 
4
 
 
5
6
 
 

Trying to figure out how to best add text to an SVG, I thought maybe it doesn't show up because it's black-on-black, so I gave it stroke="white" before realizing I need to zoom out. Well, and stroke means the outline in SVG, so on the white background, it just makes the font look really thin.

This is the whole code:

<svg viewBox="0 -5 40 10" xmlns="http://www.w3.org/2000/svg">
  <text stroke="white">hello</text>
  <circle id="myCircle" cx="5" cy="5" r="4" />
  <use href="#myCircle" x="10" fill="blue" />
  <use href="#myCircle" x="20" fill="white" stroke="red" />
</svg>

And most of that is just this MDN example: https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/use#example

It does use my default font, which is Fira Sans. Will look different on other systems.

7
8
9
10
 
 

Alt text: Image macro: The world if the IESG had the same authority as the ISO. The background shows a futuristic landscape featuring green gras, glass towers, and flying cars and buses.

11
12
 
 
13
14
 
 
15
16
 
 

I was just editing my Dockerfile and suddenly IntelliJ showed me the message "No" without any context.

17
18
 
 
19
20
21
22
23
24
67
98.css (jdan.github.io)
submitted 2 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml
25
 
 

Hey Boss, look here!

I made a magical X-ray app that displays our code as wiring.

Here is the shiny, neat program that Bob wrote 15 years ago, right before he left us:

And here is what it is today, after Tom took it from Bob, and Jane from Tom, and Mick from Jane, and me from him, porting it to roughly four new platforms, and adding about 240 features from customer requests (150 of which were urgent):

view more: next ›