02-02-2022

514 words 3 minutes Ruby

Meta Stuff

Using plantuml, from vim, both through a browser extension using :PlantumlOpen, and I managed to get vim-slumlord working - Vim autocreates my diagrams on save using java!

I had to update the .jar file within the plugin (downloaded from the Plantuml website, moved replaces in the file) and download plantuml using apt install.

This might have merely downloaded the java dependencies required? But idk

It works! I am 10/10 Happy!!!!!! :)


Today's Foci

Focus 1

  1. Use plantuml on something!
  2. Have a working diagram

Topic

Workshop

Model - Diagram or Conceptual

  • Why diagram

  • Self referential

  • Helps work across a team ( collaboration ), and across time, and for efficient assessment ( feedback ).

  • Break down process into smaller chunks

What happens when we visit the homepage

Remember when teaching people web I must ALWAYS break down into header and body

Use the Dev Tools in the Browser - not the CLI

Teamwork

Huh - the teamwork seemeed to function! huzzah!

Why?

Every step, we asked:

  1. Clarify the goals and relevant shared resources "Are we looking at the same thing?"

  2. What is this?

  3. How does it work (complete/partial/unknown)

  4. If partial do we want to go deeper? What are our present priorities ("Is it productive to explore this rabbit hole at present?")

  5. Can we explain this small, single, step to one another?

  6. Are we all on-board?

  7. Do we have any questions or uncertainties to follow up on?

  8. Are we all ready to move forward to the next step?

  9. back to 0 - Clarify goals and relevant shared resources

  10. On end - do we all have a cohesive explanation for the system we have looked at? do we have any questions on the system level?

Continue Yesterday - No Birthday

As Yesterday, but no more birthday. I'm happy having successfully test-driven a browser app.

Next

Servers! Ooo, this looks fun

require 'socket'

server = TCPServer.new(2345)

socket = server.accept

socket.puts "What do you say?"

they_said = socket.gets.chomp

socket.puts "You said: #{they_said}. Goodbye!"

socket.close

I've forgotten what a TCP server is

a socket is an interface on a server? makes sense.

need to check for a telnet install

apt list --installed | grep 'telnet'

returns

ruby-net-telnet/unstable,now 0.1.1-2 all [installed,auto-removable]
telnet/unstable,now 0.17-44 amd64 [installed]

looks good to me!

Huh, had an issue with a typo 'sockets', but once fixed, functions as intended.

modified to act unless the user quits

require 'socket'

server = TCPServer.new(2345)

socket = server.accept

they_said = ''

while they_said != 'quit'
  socket.puts 'What do you say?'

  they_said = socket.gets.chomp

  socket.puts "You said: #{they_said}. Goodbye!"
end

socket.close

I feel there's a better way to have done that, but oh well.

Huh...

I wonder if I could make a REPL doing this?

Pairing Challenge

How do I make this better?

Look at yesterdays comments none! whoops...

What about recent comments on pairing? I'm sure there's some kind of search with Zola

regardless, last time I was too chatty - so I must watch for that

Can we use what worked earlier in the breakout rooms?

  1. How are we all feeling - where are we at mentally, emotionally, physically?

  2. clarify goals and shared resources

  3. what is the thing we're facing?

  4. can we explain it (partial/full/unknown)?

  5. if partial, is the rabbit hole productive? why?

  6. can we explain this small single step to one another?

  7. are we all aboard?

  8. are we all ready to move forward one small step?

  9. back to start