#software pattern
Explore tagged Tumblr posts
is-it-a-mainline-mario-game · 8 months ago
Text
Tumblr media
219 notes · View notes
garadinervi · 5 months ago
Text
Tumblr media
Cynthia Schira, Panel Entitled "ABC Drawn Quilt", (cotton and linen, areas of warp-float faced 7:1 satin weave; warp and weft-float faced 7:1 twill weaves; diamond and point twills; combined twill; and plain weaves with areas of paired warps or wefts and plain weaves self-patterned by main warp and ground weft floats; woven on TIS Jacquard handloom with Jacquard Computer Aided Design), 1998 [The Art Institute of Chicago, Chicago, IL. © Cynthia Schira]
Tumblr media Tumblr media
22 notes · View notes
vividviolence · 1 year ago
Text
Tumblr media
potd 35: girls night ‼‼
88 notes · View notes
agatedragongames · 8 months ago
Text
Coding tutorial: Chain-of-responsibility pattern
A peasant, knight and king walk into a software design tutorial, and are here to teach you the chain-of-responsibility pattern. Learn how to create a chain of handlers which can handle different request types.
Tumblr media
This tutorial shows you how to code the chain-of-responsibility pattern in the Visual Studio development environment, using a console application and the C++ programming language.
The chain-of-responsibility pattern passes on a request to a chain of handlers one at a time. Each handler can handle different requests. So if the first handler can’t handle the request, then it will pass it on to the next handler. Once a request is handled, the chain ends. Since there is no longer a need to pass on the request.
It is also possible that the request doesn’t get handled by any of the handlers. Since each handler can handle 0, 1 or many requests of different types.
See the full tutorial here.
Console output:
Tumblr media
20 notes · View notes
mariana-oconnor · 27 days ago
Note
How do you design your patterns for knitting?? They are so pretty! 😍
In Excel (or the spreadsheet program of your choice*). First I set the ratio of the cells so each cell is one stitch. Double knitting, like for the blanket is a 2:3 ratio, roughly, which means that every two stitches across is about the same length as three stitches upwards. So I set the width of each column to 0.3 cm and the height of each cell to 0.2 cm. (For contrast, standard colourwork is usually closer to a 4:5 ratio, so don't use double knitting diagrams for single knitting or vice versa)
(Weirdly, in Excel you only seem to be able to adjust in centimetres if you put the spreadsheet in print view first, so it looks like different pages, idk why. Excel sucks like that I guess.)
*Not Google Sheets, because last time I checked it doesn't allow background images. This may have changed since.
Then I put a thick black border around the limits of my pattern. For the baby blankets it's about 176 columns by 264 rows, though the width is subject to change a little based on the pattern (if I decide on a repeating border it has to be divisible by the right number), and if I change that, I might adjust the length as well because I want the blankets to be roughly square.
Once that's done, I decide on a theme and a rough idea of what I want it to look like. For my most recent blanket I knew I wanted mountains because my friends like to hike. I knew I wanted space because one of them is really into space stuff. And I knew I wanted chickens because the other has chickens that she loves.
When I know roughly what elements I want to include, I do an image search for silhouettes of that thing. This is one of the reasons I haven't made any of the patterns available, because copyright. I do transform the images I find, and some of the elements (borders, patterns) are entirely from my own mind, but there's a lot that's based off images I find. I don't specifically go searching for creative commons images because it's personal use and the only place I even show pictures of them is here on Tumblr. Like I said, I transform them, and it's personal use, so I'm pretty sure I'm clear just making my blankets for my friends, but any further might be questionable. Idk. Copyright is a thorny sort of a thing.
ANYWAY. I get a silhouette image (silhouettes because they're clearer, although one of the chickens on the latest blanket is from a photograph, but that's trickier to work with). Then I set it as the background of my Excel spreadsheet.
One interesting thing about Excel is that the zooming in and out doesn't affect the background image like it does the cells, so I zoom in or out until the image is about the size I want in relation to the size of the whole blanket. Then I colour in the cells on top of it. At first it's just the cells that are completely filled in in the image below, then it's the ones that are half filled in or more.
Once that's done, I remove the background image and I fuck around with what's left (essentially a pixel art version of the silhouette). This is the stage that takes a lot of time, because there's often a lot of tweaking to do to make it look good. Fine lines and curves are difficult, and sometimes things just need to be changed. For instance, the owl on my most recent blanket started out life as a long-eared owl and I changed it into a barn owl because that suited my aesthetic more. The mouse I adjusted the size of multiple times and the shape of the back and the ears and the nose... and the tail... to make it fit the space I wanted it in and also to make it look more mouse-like. Literally changing one cell can make a huge difference to how something looks, it's crazy.
For borders and decorative bits, I tend to just mess around with colouring in the cells in swirly patterns until I come up with a shape I like. Repeating patterns are a lot easier to do, but do require you to do maths to make sure they fit properly. This probably requires patience, but I find it strangely addictive and zen-like.
For the ivy on my last one, I used silhouettes for the leaves, then used the transform tools in excel to mirror the five or six different leaf silhouettes I had vertically and horizontally, then moved them around and connected them with twisting lines to create the impression of vines.
Once I've got all the separate pieces, I copy them all into the outline I have of the blanket and move them around (it's important to keep the originals separate, because when you move things in excel you can often copy over something and chop off an ear or a tail or half a bird).
But yeah, then I move stuff around until the layout works for me. Sometimes at this point I have to resize things, which is annoying.
Then, when I've got things roughly in place, I mess around with them some more until they look right. It's a lot of trial and error at this stage
For example, in the dragon and unicorn blanket I did, the dragon's tail was messed around with a lot at this point. I had it curling one way, then the other way. I made it really long. I made it really short. I had it end with spikes. I had it end with the spade.
As a final touch, I then add the more random details that don't need as much work, like the stars or the snowflakes, which are fairly easy to just design on the spot. I move those around as well, until I'm happy with them.
Then I start knitting.
The design does often evolve as I'm knitting. For instance, after seeing how the tension worked on the mouse in my most recent blanket, I realised that the planet was going to be stretched thin the way I had initially designed it, so I tweaked it to be fatter so it would appear more round in the finished product. Similarly I added some more leaves to the tree and moved the top branch down a bit for better framing.
That got kind of long, but I hope it helps.
13 notes · View notes
thisbuildinghasfeelings · 2 years ago
Text
Tumblr media
It’s love ❤️
244 notes · View notes
bees-bees-fear · 6 months ago
Text
Leliana is voiced by an actual French actress, and is just speaking: wow this sounds so fake
Characters have actual real proportions, instead of hero proportions: wow this looks so weird
Characters converse like people with facets, instead of archetypes: wow this sounds so bad
Writers interact like actual human beings who make art and are inspired by feedback: wow this is so unprofessional
9 notes · View notes
mossiestpiglet · 1 year ago
Text
Tumblr media
[ID: three cross stitch cat paws. The leftmost is pink and white with black outlines, the center is brown and orange with black outlines, and the rightmost is gray and black with white outlines. End ID]
Ignore that it took me almost a week to complete the set, but I did it!
DMC threads used: (BLANC, 603, 310), (741, 434, 310), (310, 535, BLANC)
Chart I made is below the cut, have fun and make your own if you want!
Tumblr media
[ID: a cross stitch chart of a white and pink cat paw. End ID]
45 notes · View notes
la-principessa-nuova · 3 months ago
Note
40 for the ask game
40. what’s the most interesting item you own?
hmmmmmmmm……
Ooh! Not sure if this is a good answer, but in college when I bought the cheapest used copy of the famous Go4 Design Patterns textbook I could find, I was surprised to find that it had been signed by 3 of the 4 authors!
Tumblr media
just needs Erich Gamma to complete the set!
full list for those who want to play
3 notes · View notes
greaseonmymouth · 10 months ago
Text
I’m trying to create a knitting pattern for a thing because I can’t find one that is exactly what I want and the math is killing me. I can visualise exactly what I want it to look like but the math for the pattern is ???? I’ve lost count of how many times I’ve miscalculated the increases I need
7 notes · View notes
maryse127 · 4 months ago
Text
Spend the whole day revising the pattern. Am a lot happier with it now, especially the eye.
Old version:
Tumblr media
New version:
Tumblr media
3 notes · View notes
not-a-mongoose · 2 years ago
Note
For the vintage outfit meme could i ask for Tango A4 or Grian B7 perhaps even Xornoth B4? :D
Tumblr media Tumblr media
Xornoth :D
Ask Game!!!
36 notes · View notes
proudfreakmetarusonikku · 1 year ago
Text
i hate how tech bros treat ai like fucking nfts bc like. advanced pattern recognition algorithms are actually Very Useful and Very Cool. they’re used in medicine for instance! but technbros just want it to be the new NFT. and now people are hyper paranoid about any ai even though like it’s Useful and Fine in a lot of contexts just very harmful in those that it doesn’t work in (and I’m not even talking about art, art is not the worst example of this- people tried to make ai therapists that ended up encouraging people with eating disorders to relapse, and there’s all those ai generated foraging books that give advice that’s incredibly inaccurate and tells you to eat poisonous shit like art isn't even The main problem with the nft-isation of AI it’s just the most obvious)
16 notes · View notes
agatedragongames · 9 months ago
Text
Coding tutorial: Observer pattern
Tumblr media
The observer pattern has an object named the ‘subject’ which maintains a list of ‘observers’. The subject will notify all the observers when an event occurs. The observers can then choose how they wish to respond to the event.
In this tutorial you will code a zookeeper and animals. The zookeeper represents the subject of the observer pattern. Whilst the animals represent the observers.
The zookeeper will notify the animals when he arrives, and the animals will respond in there own unique way.
To follow along to this tutorial, you can either just read it and apply the knowledge to your programming language. Or you can use Visual Studio, by creating a solution, then create a project with a console application. Then run the project to see the output in the console window.
Walkthrough and full code example on the blog:
24 notes · View notes
watchmorecinema · 2 years ago
Text
Normally I just post about movies but I'm a software engineer by trade so I've got opinions on programming too.
Apparently it's a month of code or something because my dash is filled with people trying to learn Python. And that's great, because Python is a good language with a lot of support and job opportunities. I've just got some scattered thoughts that I thought I'd write down.
Python abstracts a number of useful concepts. It makes it easier to use, but it also means that if you don't understand the concepts then things might go wrong in ways you didn't expect. Memory management and pointer logic is so damn annoying, but you need to understand them. I learned these concepts by learning C++, hopefully there's an easier way these days.
Data structures and algorithms are the bread and butter of any real work (and they're pretty much all that come up in interviews) and they're language agnostic. If you don't know how to traverse a linked list, how to use recursion, what a hash map is for, etc. then you don't really know how to program. You'll pretty much never need to implement any of them from scratch, but you should know when to use them; think of them like building blocks in a Lego set.
Learning a new language is a hell of a lot easier after your first one. Going from Python to Java is mostly just syntax differences. Even "harder" languages like C++ mostly just mean more boilerplate while doing the same things. Learning a new spoken language in is hard, but learning a new programming language is generally closer to learning some new slang or a new accent. Lists in Python are called Vectors in C++, just like how french fries are called chips in London. If you know all the underlying concepts that are common to most programming languages then it's not a huge jump to a new one, at least if you're only doing all the most common stuff. (You will get tripped up by some of the minor differences though. Popping an item off of a stack in Python returns the element, but in Java it returns nothing. You have to read it with Top first. Definitely had a program fail due to that issue).
The above is not true for new paradigms. Python, C++ and Java are all iterative languages. You move to something functional like Haskell and you need a completely different way of thinking. Javascript (not in any way related to Java) has callbacks and I still don't quite have a good handle on them. Hardware languages like VHDL are all synchronous; every line of code in a program runs at the same time! That's a new way of thinking.
Python is stereotyped as a scripting language good only for glue programming or prototypes. It's excellent at those, but I've worked at a number of (successful) startups that all were Python on the backend. Python is robust enough and fast enough to be used for basically anything at this point, except maybe for embedded programming. If you do need the fastest speed possible then you can still drop in some raw C++ for the places you need it (one place I worked at had one very important piece of code in C++ because even milliseconds mattered there, but everything else was Python). The speed differences between Python and C++ are so much smaller these days that you only need them at the scale of the really big companies. It makes sense for Google to use C++ (and they use their own version of it to boot), but any company with less than 100 engineers is probably better off with Python in almost all cases. Honestly thought the best programming language is the one you like, and the one that you're good at.
Design patterns mostly don't matter. They really were only created to make up for language failures of C++; in the original design patterns book 17 of the 23 patterns were just core features of other contemporary languages like LISP. C++ was just really popular while also being kinda bad, so they were necessary. I don't think I've ever once thought about consciously using a design pattern since even before I graduated. Object oriented design is mostly in the same place. You'll use classes because it's a useful way to structure things but multiple inheritance and polymorphism and all the other terms you've learned really don't come into play too often and when they do you use the simplest possible form of them. Code should be simple and easy to understand so make it as simple as possible. As far as inheritance the most I'm willing to do is to have a class with abstract functions (i.e. classes where some functions are empty but are expected to be filled out by the child class) but even then there are usually good alternatives to this.
Related to the above: simple is best. Simple is elegant. If you solve a problem with 4000 lines of code using a bunch of esoteric data structures and language quirks, but someone else did it in 10 then I'll pick the 10. On the other hand a one liner function that requires a lot of unpacking, like a Python function with a bunch of nested lambdas, might be easier to read if you split it up a bit more. Time to read and understand the code is the most important metric, more important than runtime or memory use. You can optimize for the other two later if you have to, but simple has to prevail for the first pass otherwise it's going to be hard for other people to understand. In fact, it'll be hard for you to understand too when you come back to it 3 months later without any context.
Note that I've cut a few things for simplicity. For example: VHDL doesn't quite require every line to run at the same time, but it's still a major paradigm of the language that isn't present in most other languages.
Ok that was a lot to read. I guess I have more to say about programming than I thought. But the core ideas are: Python is pretty good, other languages don't need to be scary, learn your data structures and algorithms and above all keep your code simple and clean.
20 notes · View notes
fellthemarvelous · 5 months ago
Text
These next few days are about to be wild as fuck.
Tumblr media
The Force will be with you, always.
2 notes · View notes