Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (2 votes)
924 views

Refactoring in Java: Improving code design and maintainability for Java developers 1st Edition Anonymous instant download

The document is a promotional description of the book 'Refactoring in Java: Improving code design and maintainability for Java developers' by Stefano Violetta, which focuses on enhancing software design and maintainability through refactoring techniques. It includes contributions from experienced professionals in the software industry and covers various aspects of refactoring, clean code principles, testing, and software architecture. Additionally, it provides links to other related resources and books for further reading.

Uploaded by

towseyasfand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
924 views

Refactoring in Java: Improving code design and maintainability for Java developers 1st Edition Anonymous instant download

The document is a promotional description of the book 'Refactoring in Java: Improving code design and maintainability for Java developers' by Stefano Violetta, which focuses on enhancing software design and maintainability through refactoring techniques. It includes contributions from experienced professionals in the software industry and covers various aspects of refactoring, clean code principles, testing, and software architecture. Additionally, it provides links to other related resources and books for further reading.

Uploaded by

towseyasfand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Refactoring in Java: Improving code design and

maintainability for Java developers 1st Edition


Anonymous download

https://ebookmeta.com/product/refactoring-in-java-improving-code-
design-and-maintainability-for-java-developers-1st-edition-
anonymous/

Download more ebook from https://ebookmeta.com


We believe these products will be a great fit for you. Click
the link to download now, or visit ebookmeta.com
to discover even more!

Refactoring Improving the Design of Existing Code 2nd


Edition Martin Fowler

https://ebookmeta.com/product/refactoring-improving-the-design-
of-existing-code-2nd-edition-martin-fowler/

Java to Kotlin: A Refactoring Guidebook 1st Edition


Duncan Mcgregor

https://ebookmeta.com/product/java-to-kotlin-a-refactoring-
guidebook-1st-edition-duncan-mcgregor/

DevOps Tools for Java Developers: Best Practices from


Source Code to Production Containers 4th Edition
Stephen Chin

https://ebookmeta.com/product/devops-tools-for-java-developers-
best-practices-from-source-code-to-production-containers-4th-
edition-stephen-chin-2/

Summer in Snow Valley Snow Valley Romance Anthologies


Book 2 1st Edition Cindy Roland Anderson Lucy Mcconnell
Taylor Hart Kimberley Montpetit Cami Checketts Jeanette
Lewis
https://ebookmeta.com/product/summer-in-snow-valley-snow-valley-
romance-anthologies-book-2-1st-edition-cindy-roland-anderson-
lucy-mcconnell-taylor-hart-kimberley-montpetit-cami-checketts-
Survivors 2 A Lost World Harem 1st Edition Jack Porter

https://ebookmeta.com/product/survivors-2-a-lost-world-harem-1st-
edition-jack-porter/

Fight to Win Inside Poor People s Organizing 1st


Edition A J Withers

https://ebookmeta.com/product/fight-to-win-inside-poor-people-s-
organizing-1st-edition-a-j-withers/

Routine outcome monitoring in couple and family therapy


The empirically informed therapist Tilden Terje

https://ebookmeta.com/product/routine-outcome-monitoring-in-
couple-and-family-therapy-the-empirically-informed-therapist-
tilden-terje/

Python for Scientists (3rd Edition) John M. Stewart

https://ebookmeta.com/product/python-for-scientists-3rd-edition-
john-m-stewart/

Combat Core 1st Edition Jim Smith

https://ebookmeta.com/product/combat-core-1st-edition-jim-smith/
Principles of Pathophysiology 2nd Edition Shane Bullock

https://ebookmeta.com/product/principles-of-pathophysiology-2nd-
edition-shane-bullock/
Refactoring in Java
Copyright © 2023 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the publisher,
except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express
or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable
for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and
products mentioned in this book by the appropriate use of capitals. However, Packt Publishing
cannot guarantee the accuracy of this information.

Group Product Manager: Kunal Sawant

Publishing Product Manager: Teny Thomas

Senior Content Development Editor: Rosal Colaco

Technical Editor: Vidhisha Patidar

Copy Editor: Safis Editing

Project Manager: Prajakta Naik

Project Coordinator: Manisha Singh

Indexer: Pratik Shirodkar

Production Designer: Ponraj Dhandapani

DevRel Marketing Coordinator: Shrinidhi Manoharan

Business Development Executive: Kriti Sharma

First published: December 2023

Production reference:1081223

Published by Packt Publishing Ltd.

Grosvenor House

11 St Paul’s Square
Birmingham

B3 1RB, UK.

ISBN 978-1-80512-663-8

www.packtpub.com
I dedicate this book to Cristina, the love of my life, and my children, Alessandro and Andrea.
I believe, in life, the most important thing is to keep learning and getting better.
Thanks for showing me something new every day.
– Stefano

Contributors

About the author


Stefano Violetta is a creative backend engineer, bringing over 15 years of experience in software
development and architecture. He has worked in a diverse range of companies, spanning from
startups to industry giants like eBay. Stefano takes pride in crafting meticulously written code to
build sophisticated applications that align with their intended purpose, ensuring functionality and
meeting the precise needs of users. Or at least, he tries to! Beyond the world of software, Stefano
enjoys immersing himself in reading and watching movies during his free time.

About the reviewers


Giuseppe Bonocore is a senior IT professional, with more than 15 years of experience in the
software industry, with different roles. His competencies include cloud technologies, modern
software architectures, data, and AI. He has a master’s degree in computer science. He is passionate
about open source and the impact of digitalization on organizations and has been speaking at many
important technical conferences. In 2021, he published a book about cloud-native applications
development. His professional experiences include Salesforce, Red Hat, Accenture, and Docomo
Digital, covering many technical leadership roles and deploying huge transformation projects across
Europe.

Siddhesh Nikude is a software craftsperson who believes in improving the world’s software
development by writing better software and teaching others how to do it. He carries over 10+ years
of experience and prefers calling himself a generalist.

Siddhesh started his career as a smart card developer, where he was introduced to Clean Code and
XP. It was then he started working in an iterative and incremental approach to notice effective
results. Not only does it improve the design and safety of the software, but it also improves the lives
of the people working on it. He has worked in a variety of roles from developer to transformation
coach on a variety of projects. He has mentored teams in B/TDD, mutation and micro testing, CI/CD
pipelines, XP/Lean practices, Clean Code and SOLID principles, DORA metrics, Monte-Carlo
simulation, Scrum, Delivery Automation, Test Pyramid, User Stories/Slicing, and Chartering. As a
developer, he has worked with Java, Kotlin, Go, TypeScript, React-Native, and so on.
Table of Contents

Preface

Part 1: Introduction to Refactoring

What is Refactoring?
What do we mean by refactoring?
Refactoring and clean code
Misconceptions about refactoring
Why you should consider refactoring
Improving the design of your software
Maintainability and scalability
Understanding, avoiding, and fixing bugs
Faster development
When you should refactor
The “Rule of Three”
Preparatory refactoring for smooth feature implementation
Refactoring for bug fixing
Comprehension refactoring
The “Boy Scout Rule”
Planned refactoring
Long-term refactoring and “Branch by Abstraction”
Refactoring in a code review
What you should refactor
Impact analysis
Risk assessment
Value estimation
Prioritization matrix
Further considerations
Refactor or rewrite?
Summary
Further reading

Good Coding Habits


Characteristics of good code
Good code is readable
Good code is reliable
Good code is hard to misuse
Good code is modular
Good code is reusable
Clean Code
Why Clean Code?
Some principles of Clean Code
Write SOLID code
Single responsibility principle
Open-closed principle
Liskov substitution principle
Interface segregation principle
Dependency inversion principle
Side effects and mutability
The builder pattern
Causes of bad code
Deadlines
The Broken Window theory
No code review process
Insufficient domain or technical knowledge
Summary
Further reading

Part 2: Essence of Refactoring and Good Code


3

Code Smells
Duplicated code
Long methods
Replace temporary variables with query methods
Parameter object
Replace a function or method with a command
Decompose conditionals
Split loops
Large classes
Switches
Primitive Obsession
Middle man
Message chains
Feature envy methods
Divergent change
Shotgun Surgery
God object
Summary
Further reading

Testing
Why you should test (often)
Identifying and fixing defects
Ensuring quality and reliability
Customer satisfaction
Compliance and standards
Security
Integration and compatibility
Confidence and peace of mind
Unit testing
JUnit framework
Integration testing
Mockito
Contract testing
Be safe – checking and improving your test coverage
What is test coverage?
A Java code coverage tool – JaCoCo
Test-driven development
Advantages of TDD
Summary
Further reading

Refactoring Techniques
Writing better methods
Extract Method
Inline Method
Extract and inline variables
Combining a function into a class
Moving features between objects
Moving a method or field
Moving statements into/from methods
Hiding delegates
Removing dead code
Organizing data
Field encapsulation
Replacing primitives with objects
Replacing type code with subclasses
Simplifying conditional logic
Returning a special case instead of null
Using polymorphism instead of conditions
Removing duplicated conditions
Guard clauses
Simplifying method calls
Avoiding side effects
Removing setter methods
Using generalization
Pull up field
Push down field
Pull up method
Push down method
Template method
Using enums instead of constants
Summary
Further reading

Metaprogramming
What is metaprogramming?
Exploring compile-time metaprogramming tools
Lombok
MapStruct
Exploring runtime metaprogramming tools
Reflection
Weighing the pros and cons of metaprogramming
Summary
Further reading

Static and Dynamic Analysis


What is static analysis?
Code errors or bad practices
Security
Cyclomatic complexity
Exception (mis)handling
Automated static analysis tools
What is dynamic analysis?
Debugging
Profiling
Fuzzing
Symbolic execution
Taint tracking
Summary
Further reading

Part 3: Further Learning

Crafting Quality Every Day


Code versioning
Graph structure
Local VCSs
Centralized VCSs
Distributed VCSs
Branching strategies
Best practices
Code formatting and style
Indentation
Braces and whitespaces
Line length and wrapping
Comments and documentation
Naming conventions
Automated tools
Code reviews
Email pass-arounds
Code review automation tools
In-person (or remote) teamwork reviews
Pair programming
Advantages
Disadvantages
Styles of pair programming
Time management
Documentation
Requirements
Architecture documentation
Technical documentation
Good practices for documentation
A hard dose of reality
The importance of knowing what you’re doing
Summary
Further reading

Beyond Code – Mastering Software Architecture


What is an architecture?
Development
Deployment
System operation
Maintenance
Architectural patterns
Layered architecture
Microservices
Event-driven architecture
Reactive architecture
Monolith to microservices
Bad smells in the microservices architecture
Shared persistence
Shared libraries
Direct communication
Summary
Further reading

Index

Other Books You May Enjoy


Exploring the Variety of Random
Documents with Different Content
The Project Gutenberg eBook of Notes on Diseases of
Swine, Sheep, Poultry and the Dog
This ebook is for the use of anyone anywhere in the United States and most
other parts of the world at no cost and with almost no restrictions whatsoever.
You may copy it, give it away or re-use it under the terms of the Project
Gutenberg License included with this ebook or online at www.gutenberg.org.
If you are not located in the United States, you will have to check the laws of
the country where you are located before using this eBook.

Title: Notes on Diseases of Swine, Sheep, Poultry and the Dog

Author: Charles James Korinek

Release date: June 2, 2019 [eBook #59663]

Language: English

Credits: Produced by The Online Distributed Proofreading Team at


http://www.pgdp.net (This file was produced from images
generously made available by The Internet Archive)

*** START OF THE PROJECT GUTENBERG EBOOK NOTES ON DISEASES OF


SWINE, SHEEP, POULTRY AND THE DOG ***
VETERINARY SCIENCE ASSOCIATION
OF AMERICA

NOTES ON
Diseases of Swine, Sheep,
Poultry and the Dog
Cause, Symptoms and
Treatments

BY
CHARLES J. KORINEK, V.S.
Graduate of the Ontario Veterinary College, in affiliation with the University
of Toronto, Canada. Hon. Member of the Ontario Veterinary Medical
Society. Ex. State Veterinarian for Oregon. Ex. President of the Oregon
State Veterinary Medical Board of Examiners. Author of “The Veterinarian”.
Principal of the Veterinary Science Association of America. Sixteen years of
Practical Experience as a Veterinary Surgeon.

PUBLISHED BY THE
VETERINARY SCIENCE ASSOCIATION
OF AMERICA
COPYRIGHT 1917
by the
VETERINARY SCIENCE ASSOCIATION
OF AMERICA
TABLE OF CONTENTS.
Chapter I. Diseases of Swine, Cause, Symptoms and Treatment 6
Chapter II. Diseases of Sheep and Goats, Cause, Symptoms and
Treatment 37
Chapter III. Diseases of Poultry, Cause, Symptoms and Treatment 60
Chapter IV. Diseases of the Dog, Cause, Symptoms and Treatment 85
TABLE OF ILLUSTRATIONS.
Points of Swine 3
Points of Sheep 35
Points of Poultry 58
Points of the Dog 83

DISEASES OF
SWINE

CAUSE, SYMPTOMS AND


TREATMENT
LOCATION OF PARTS OF SWINE.

Location of Parts of Swine

1. Mouth.
2. Nostrils.
3. Face.
4. Eyes.
5. Ears.
6. Jaws.
7. Jowl.
8. Neck.
9. Shoulder.
10. Fore flanks.
11. Chest floor.
12. Pasterns.
13. Dew claws.
14. Sheath.
15. Belly.
16. Side or ribs.
17. Heart girth.
18. Back.
19. Loin.
20. Rump.
21. Coupling.
22. Rear flanks.
23. Tail.
24. Thigh.
25. Hocks.

PREFACE
This chapter on diseases of swine has been written with the purpose of
placing in the hands of Students and the Veterinary Profession, a book of
practical worth; hence, all unnecessary technical language or terms have been
eliminated and only such language used as all may read and understand.
The treatment recommended in each disease is one I have used and found
efficient in my many years of practice as a Veterinary Surgeon.
If my readers will study the following chapter carefully, they will save much
unnecessary loss to the swine industry and be of great value to the
community in which they reside.
Charles J. Korinek, V. S.
CHAPTER I.
HOG REGULATOR AND TONIC.
Nux Vomica, one pound; Hardwood Charcoal, two pounds; Sulphur, two
pounds; Common Salt, three pounds; Sulphide of Antimony, one and one-half
pounds; Glauber Salts, two pounds; Bicarbonate of Soda, four pounds;
Hyposulphite of Soda, four pounds; Nitrate of Potash, one pound; Quassia,
one-half pound; Gentian Root, one pound; Iron Sulphate, one pound;
pulverize and mix well.
To every one hundred pounds of hog weight, give one tablespoonful in feed
or swill once or twice daily. For hogs weighing two hundred pounds, the dose
would be two tablespoonfuls; for a hog weighing fifty pounds, one-half
tablespoonful.
Hogs, like other animals, require tonics, bowel regulators and worm
expellers. For these purposes, I have prescribed under a number of the
diseases of hogs, which I cover in this chapter, the above general tonic and
regulator which I have used in my personal practice with marked success,
especially serving the purpose of aiding hogs in the convalescence from
debilitating diseases and in their recovery from a general run-down condition.
Aside from its general tonic and regulative effect, this prescription contains
nerve tonics, intestinal antiseptics, laxatives, worm expellers, and aids
digestion, etc.
If regularly given to hogs, and sanitary conditions are maintained, this tonic
and regulator will largely fortify them against contagious diseases.

ABORTION.
Cause.—Sows may abort at any state of pregnancy by slipping, falling,
receiving kicks, or by being caught while crawling through or under fences.
Sows may also abort when allowed to crawl into quarters where there are
other hogs. Contagious diseases, such as Cholera and Pleuropneumonia also
produce abortion. There is also a contagious form of abortion in sows, but this
is very uncommon, as the disease spreads very slowly.
Symptoms.—There is no warning given, as a rule; the sows expel their pigs
before any signs of abortion are noticed.
In other cases the sows refuse to eat, become uneasy, shivering and
trembling of the muscles, and straining or labor pains are noticed. As a rule,
when a sow aborts, she will not prepare a bed, as she would normally.
Treatment.—Preventive is the only safe and sure treatment, although when
the first signs of abortion appear, and there are no signs of the membranes
coming away, remove the sow to quiet, warm, clean quarters by herself, and
if straining, give one dram of Chloral-Hydrate in her drinking water every two
or three hours.
When a sow aborts, burn the pigs and afterbirth, and disinfect the pens
with a Coal Tar disinfectant. Keep this up for several days, and do not breed
until all discharges from the vagina have ceased flowing.

ADMINISTRATION OF MEDICINE TO HOGS.


To administer medicine to hogs may seem easy, but, nevertheless, it is a
difficult task. Never lay a hog on his back to drench him, as in so doing there
is great danger of strangling. The proper method is to stand or set him on
end, holding him up by the ears, and by the use of a bottle with a piece of
hose drawn over its neck, give the medicine very slowly, so as not to allow a
large quantity to accumulate in the mouth or throat at one time. There is
always danger of some of the liquid escaping into the lungs and causing the
hog to strangle, and thus it may produce pneumonia. However, this is the best
method of giving hogs medicine by force.
Hogs will generally take medicine in their feed or drinking water, unless they
are very sick, or the medicine is extremely disagreeable to the taste.

BAG INFLAMMATION.
Cause.—Injuries, obstructed teats, accumulation of milk in the sow’s bag
after the loss of part or all of her litter. Difficult birth, slight wounds in the bag
permit invasion of germs, which is frequently the common cause of bag
inflammation.
Symptoms.—Heat, pain and swelling in one or more teats. The general body
temperature is elevated one or two degrees above normal. The sow perhaps
refuses her feed, although she will drink water in large quantities.
Treatment.—Feed soft, sloppy food and vegetables. Give Epsom Salts, two to
four ounces, in milk or feed. It is also well to milk the sow by hand, relieving
her of the milk three or four times a day. This is very necessary. Camphorated
Oil is very soothing, and I would recommend its use freely over affected teats.

BLACK TOOTH.
Cause.—Black Tooth, so called in swine, is principally due to injuries to the
teeth received by chewing hard matter, such as bone, etc., which causes them
to decay.
Symptoms.—Toothache. Toothache in swine is similar to that exhibited by
man, in showing loss of appetite, salivation, or slobbering, hanging the head
mostly to the side which is affected, loss of fear of man, and offensive breath.
If the hogs are fed on strongly acid food for any length of time, their teeth
may become dark colored. As the teeth are not materially injured, so long as
decayed tooth substance cannot be noticed, and while the appetite and
chewing facilities of the hog do not appear to be diminished, no interference
will be necessary.
It is customary with some people to examine the teeth of hogs, and if one
tooth is found darker colored than the others, it is supposed to be the cause
of the hog not doing well, if he is in poor condition, and the tooth is
hammered off flush with the jaw, leaving the broken roots, lacerated gums
and nerves to increase the hog’s suffering. If the hog recovers, it is often
concluded that this was a case of Black Tooth.
My advice is, if you are determined to have the tooth out, extract it
properly. Do not break it off. When your hogs are not thriving, give them the
regulator and tonic prescribed on the first page of this chapter.

BLOOD POISONING.
(Pyemia Septicemia)

Cause.—Due to the toxic substance produced by germs that invade wounds,


bruises, abscesses, or womb following farrowing, if lacerated.
Symptoms.—The seat of injury becomes swollen, pus may adhere to the hair,
temperature elevated, appetite poor, hog moves about very slowly, becomes
separated from the rest of the drove, lies around in some cool, quiet place,
eventually becomes very weak and poor and dies, if good attention is not
given.
Treatment.—Separate from the other hogs and remove to a clean,
comfortable place and wash the seat of injury with some good disinfectant, as
a five per cent Carbolic Acid solution. In cases of abscess, open it low so as to
assure good drainage. Keep clean, cool water before your hogs at all times.
Give mashes made from wheat bran and hot water, or any good substantial
food that is easily digested containing regulator and tonic prescribed on the
first page of this chapter.

BRONCHITIS.
Cause.—Lung worms, poorly ventilated sleeping quarters, sleeping in straw
stacks, in manure heaps, over-heated, filthy pens, where the animals inhale
irritating gases given off the bodies of other hogs, and from filth. Smoke and
dust are very common producers of bronchitis.
Symptoms.—Breathing fast, appetite poor, slight rise in temperature and
coughing. The hog is dull and stupid, refuses food, but drinks water
frequently.
Treatment.—Preventive; avoid the above named causes, but when hogs
become affected, move them to clean, well ventilated quarters, avoiding dust
and gases, disinfect bedding and floors with some good disinfectant, as Crude
Carbolic Acid, sprayed. Also give large doses of the hog regulator and tonic as
prescribed on the first page of this chapter. Feed vegetables, or any easily
digested food, and hot wheat bran mashes.
In case the disease is due to lung worms, confine the animals in a closed
shed and permit them to inhale the steam from Turpentine and water for a
few minutes, by placing water and Turpentine in a tin receptacle holding
about two gallons, and inserting heated bricks or stones into the solution.

CASTRATION.
This is generally understood by every stockraiser, yet there are some points
many do not know. For instance, you should use in this operation an
antiseptic solution, as Carbolic Acid or Bichloride of Mercury. Wash thoroughly
with antiseptic your hands and knife, also the seat of operation and make
your incision as low as possible to permit the pus to drain out nicely. If this is
not practiced, the pus will become absorbed into the blood, producing blood
poison, which may produce death, or at the best will cause the hog to
become stunted, whereas, if the operation is performed properly, the hog will
thrive, regardless of the shock from the operation. I may add that it is much
better to castrate pigs or hogs when their stomachs or intestines are empty,
and it is always good practice to feed laxative and easily digested foods
sparingly after this operation.

CHOKING.
Cause.—Vegetables such as potatoes, etc., roots, as carrots, turnips and
sometimes pieces of bone or glass, lodge in the gullet. Paralysis of the
muscular fibres of the gullet is a very common cause of choking in swine.
Symptoms.—The hog is unable to swallow, producing a frothing at the mouth
and, if the obstruction cannot be dislodged, death occurs in a very short time.
Sometimes the obstruction in the gullet may be felt from the outside with the
hand.
Treatment.—The administration of small doses of Raw Linseed or Olive Oil, or
Lard, will assist in dislodging the obstruction. Also careful manipulation of the
gullet from the outside with the hand assists in either forcing it into the
stomach or bringing it out through hog’s mouth. If vomiting can be produced,
it will dislodge the obstruction. If immediate results are not obtained from the
above treatments, I would recommend butchering the hog for meat
immediately.

COLD IN THE HEAD.


(Nasal Catarrh)

Cause.—Exposure to cold; a very common condition in cold, wet weather


when hogs are allowed to sleep in manure heaps, straw stacks, or pile up
together, when they become over-heated and later chill. Nasal Catarrh may
also be due to inhaling dust or irritating gases.
Symptoms.—The animal is stupid and feverish, coughing and sneezing
frequently; appetite is poor, eyes watery and inflamed; a discharge of mucus
from the nose will terminate in yellow pus and the nose, if examined, is found
to be inflamed and ulcerated.
Treatment.—The best and safest treatment is to provide clean sleeping
quarters, avoid overcrowding in dusty, dirty sheds, especially during cold
weather. Pigs affected with cold in the head should be fed on laxative food,
such as boiled carrots, potatoes, apples, hot wheat bran mashes and steamed
rolled oats.
Medical Treatment.—Confine the affected hogs to a shed, close windows and
doors and any large cracks; then compel them to inhale steam from the
following mixture: Turpentine, eight ounces; Pine Tar, one pint; Water, two
gallons. Place in tin receptacle in center of shed and heat the above solution
by adding hot bricks or stones to the mixture occasionally. Compel the hogs to
inhale this steam for at least thirty minutes twice a day. Give chlorate of
Potash in twenty grain doses three times a day in feed or drinking water. This
treatment is very successful if the inflammation has not extended to the
lungs.

DIARRHOEA IN YOUNG PIGS.


(Scours)

Cause.—Decomposed foods, slops, etc., fed to the mothers, causing them to


give toxic milk. Poorly ventilated, filthy, cold and damp pens, insufficient
exercise, lack of sunlight, raising pigs by hand or with other sow.
Symptoms.—Frequent movement of the bowels, the passage being of a
grayish-white color and the odor very disagreeable. At this stage of the
disease, reliable remedies must be given or the pig will die very soon.
The discharge from the bowels becomes very thin, the tail and legs become
soiled, loss of appetite, the pigs become weak and dull, hair rough and it is
difficult for them to move about. In very young pigs, treatment is of little
value.
Treatment.—As Scours in pigs is a disease frequently caused by faulty food
and insanitary surroundings, a preventive treatment is of great importance,
and much better results are thus obtained than by the use of medical agents.
Medical treatment consists in first cleaning away the irritant present in the
bowels. For this purpose give one to two teaspoonfuls of Castor Oil. At the
time of farrowing all sows should receive a light diet and be kept in clean, dry
quarters. The pigs should be allowed pure air, sunshine and exercise. If the
sow appears hot and feverish, give one to three ounces of Castor Oil in milk
or swill. Avoid feeding decomposed, moldy food, or sour milk. To check the
diarrhoea in pigs, use the following after the irritant is removed or cleaned out
as above stated: Zinc Sulphocarbolates, thirty grains; Protan, two ounces;
Pulv. Gentian Root, two ounces. Make into sixty capsules or powders and give
one, three or four times a day. The sow should receive a dose about eight
times the size of that of the pigs.

HOG CHOLERA.
(Swine Fever)

Cause.—By the Bacillus Sius; contaminated food, stagnant water, filth, etc.,
all have a tendency to aid its progress. I have seen farms, although located in
sections where Cholera was prevalent, not in the least troubled with the
malady, perhaps due to careful feeding of clean foods, care in watering,
cleanliness about the pens and sheds and disinfecting occasionally, but no
doubt a better explanation is that those hogs received tonics, containing
worm expellers, at least four times a year. Many a case of supposed Hog
Cholera is due to worms irritating and producing inflammation of the
intestines, followed by diarrhoea. A person not familiar with the disease calls
this “hog cholera.” In other cases, hogs which are fed swills from restaurants,
hotels, etc., containing soap, washing powders, small particles of glass, etc.,
will die with symptoms leading a person to think they had Hog Cholera, but if
a thorough investigation is made the true cause of death can easily be
discovered.
Symptoms.—In true Hog Cholera, the temperature will be elevated two to
four degrees above normal. There will be a loss of appetite, vomiting,
diarrhoea, although there may be constipation when the hog is first affected.
The hog wanders off by itself to some cool, quiet place and lies down. When
it walks it will stagger and show great stiffness in its hind parts, due to
soreness of the intestines. The hair will have a roughened appearance, the
back arched, the eyes inflamed and discharging pus, red blotches will show
themselves back of the ears, inside the legs and on the abdomen. At this
stage the diarrhoea is watery, dark and tinged with blood, and very offensive
in odor, breathing is very fast and labored. The hog grows very weak and
dies.
Treatment.—Prevention must always be borne in mind. Do not feed filthy
food. Always feed good, wholesome food, and give clean water to drink.
Watch the condition of hog’s bowels and regulate them by feeding. Burn
manure and bedding and disinfect carefully. Do not permit your hogs to drink
out of running streams of water, especially if Hog Cholera is in your
neighborhood. When buying hogs, it is well to keep them off by themselves
for two or three weeks, as they may be diseased. Do not permit neighbors,
their stock or dogs on premises when Hog Cholera is raging, as the infection
of Hog Cholera can be spread very rapidly by matter from the affected hogs
adhering to the shoes of man, to the feet of stock and hogs, etc.
I am positive that if this method were properly practiced by all hog raisers
and feeders, Hog Cholera would be a very rare disease.
Serum Treatment.—This is successful in some cases, and in others
unsuccessful. The latter perhaps is due to poor serums, or the disease being
so far advanced in its progress that the hogs are beyond recovery. Serum
treatment is very expensive and, as it requires a strictly septic operation of
injecting the serum, the average hog raiser or grower is not qualified to
administer the treatment properly. An additional and necessary expense is the
services of a Veterinary Surgeon. Therefore, I strongly urge adoption of
preventive measures as stated. Use some good disinfectant, such as Crude
Carbolic Acid, which destroys the Bacillus of Hog Cholera. Also administer hog
regulator and tonic as prescribed on first page of this chapter. This will expel
worms, tone the system, regulate the bowels and fortify your hogs against
Hog Cholera.

INDIGESTION.
Cause.—Worms are perhaps one of the most common causes.
Unwholesome, irritating food or swill containing soap or washing powder have
a tendency to derange the process of digestion.
Symptoms.—Abdominal pain, vomiting, back arched, breathing rapid and
temperature elevated from two to three degrees. There may be diarrhoea or
the animal may be constipated. Vomiting, as a rule, relieves acute attacks by
expelling the irritant from the bowels. When it takes a chronic form, the hogs
become stunted.
Treatment.—Endeavor to find out the cause and remove it. If constipated,
give Calomel, fifteen to twenty grains, or, if diarrhoea appears, give hog
regulator and tonic as prescribed on first page of this chapter. Feed with hot
wheat bran mashes. This will expel all worms and aid digestion.

JAUNDICE.
(Yellows)

Cause.—Liver flukes, intestinal worms, gall stones, lack of exercise,


overfeeding, or a stoppage of the bile duct.
Symptoms.—The white portions of the eyes take on a yellow color, as do the
membranes of the mouth, back arched, hair looks rough, vomiting,
temperature elevated, constipation, although diarrhoea is sometimes noticed.
The urine is passed frequently, and is of a dark amber color.
Treatment.—This disease requires careful feeding and plenty of exercise.
Give Calomel, ten to twenty grains, then follow with large doses of regulator
and tonic as prescribed on first page of this chapter. It is important in this
disease, especially if due to worms. Feed clean swill and vegetables. Give
hogs all the pure water they will drink.

KIDNEY CONGESTION.
Cause.—Hogs are subject to various injuries about the kidneys, due to a
large number of hogs piling up, exposure to cold, wet rains, etc.
Symptoms.—Small quantities of dark colored urine are passed frequently,
appetite poor, no energy to move about. Hogs lie around a great deal; at
times they may be paralyzed and drag their hind quarters.
Treatment.—Apply cloths or blankets wrung out of hot water over the loin;
also give Potassium Acetate in twenty grain doses four or five times a day in
drinking water. Feed soft, sloppy food, containing regulator and tonic as
prescribed on the first page of this chapter. It contains nerve stimulants, just
what is required in paralysis.

KIDNEY WORM.
Cause.—Damp, filthy surroundings seem to favor the growth of embryos of
this worm. They are taken into the digestive canal with the food and
eventually pass to the region of the kidneys, where they find conditions
favorable in which to multiply.
Symptoms.—May produce paralysis of the hind quarters, in which case the
animal would not exhibit such marked tenderness on being pressed over the
loins with the fingers as it would if the weakness of the hind quarters was due
to a sprain or to rheumatism of the loins. Occasionally hogs may suffer from
the presence of one or more worms in the kidneys; but the ailment is rarely
fatal, becoming so only after a long time of suffering resulting in a
degeneration of one or both kidneys. It is almost impossible to diagnose the
presence of worms in the kidneys of hogs, except by chance through a
microscopic examination of the urine. If worms are found in the kidneys of a
hog that has died or has been slaughtered for food it may then be reasonably
supposed that other hogs of the same herd not acting normal are infected
with worms of the same species.
Treatment.—Teaspoonful doses of Turpentine in milk three times a week is
the only treatment I could recommend. Preventive measures is the only
practical method of treating a disease of this nature. Give your hogs pure
water and food. Disinfect pens occasionally and keep them clean.

LICE ON HOGS.
Dip, spray or scrub your hogs with some good Coal Tar disinfectant, but
whatever remedy is used it should be applied more than once which, of
course, causes considerable work where there is a large number of hogs
infested, unless dipped, which is more quickly done. The reason for repeated
applications being necessary is that although the lice which hogs pick up from
the ground, bedding and rubbing places, may be killed by first application, it
often does not affect the nits, which remain intact and hatch within a week or
ten days. A new crop of Lice appears on the hog from this source. Remove all
manure and bedding from pens and sheds and burn it. Disinfect floors and
spray sides of shed, pens and rubbing places with disinfectants, one part to
seventy-two parts of water, once a month and you will be handsomely repaid
for your labor.

LUNG FEVER.
(Inflammation of the Lungs)

Cause.—Sudden changes, exposure to storms, piling up of hogs during cold


nights, or sleeping in manure heaps, old straw stacks, etc.
Symptoms.—Pig or hog is taken with shivering spells, is stupid, his back is
arched, loss of appetite, temperature elevated two to four degrees above
normal, short hurried breathing, generally accompanied with cough, which is
deep and hoarse. As a rule the hog is constipated.
Treatment.—Place in good, clean, warm, well ventilated quarters, free from
drafts. Keep water before them at all times, adding Saltpeter, one teaspoonful
to every gallon of water. If constipated, do not give physics; give injections of
soap and warm water; also administer about one-half teaspoonful of Pine Tar
on the tongue with a wooden paddle. This adheres to the tongue and
gradually dissolves and gives excellent results, as it is very soothing to the
organs of breathing. During the convalescent stage, give hog regulator and
tonic as prescribed on first page of this chapter.

LUNG WORMS.
Cause.—By thread-like worms varying in length from one-half to one and
one-half inches and of brownish-white color. They are found in the windpipe
and tubes leading into the lungs. The adult worms in the lungs produce large
quantities of eggs, which are coughed up with mucus and become scattered
over premises where other hogs are permitted to walk. The hogs inhale the
dust containing the eggs into their lungs, where the eggs find moisture
sufficient for their development.
Symptoms.—Severe coughing spells. Large quantities of mucus will escape
from the nose and mouth. The hog becomes stunted, although he may eat
fairly well, but if not relieved, the worms collect in the Bronchi and produce
sudden death due to suffocation. The worms may set up an inflammation of
the lining membranes of the lungs, which is sometimes taken for Swine
Plague, or Cholera. This disease is not uncommon, especially in old, filthy,
poorly drained hog houses and pastures.
Treatment.—Confine the affected hogs to a shed; close the windows and
doors and any large cracks, then compel the hogs to inhale steam from the
following mixture: Turpentine, eight ounces; Pine Tar, one pint; Water, two
gallons. Place in tin receptacle in center of the shed and heat the above
solution by adding hot bricks or stones to the mixture occasionally. Compel
them to inhale this steam for at least thirty minutes twice a day. Feed
wholesome food to which add hog tonic as prescribed on first page of this
chapter. A strong, vigorous hog may have worms, but it retains its vitality so
long as it is well fed.

MANGE.
Cause.—By the Sarcoptes Scabei. This parasite burrows under the outer
surface of the skin.
Symptoms.—The parasite usually manifests itself on the skin under the
armpits, thighs and inside of the fore legs. At first small red blotches or
pimples appear, and these gradually spread as the parasites multiply and
burrow under the skin.
Treatment.—There is no other way of curing this disease, or of preventing it,
than by killing the parasites and their eggs; not only on the pigs themselves,
but also on the sides of the pens, sheds, rubbing-posts, or anything that an
affected hog rubs against.
When treating this disease, the real aim must be to kill the parasite by the
prompt and continuous use of external remedies, such as washing or dipping,
which is better done with some good disinfectant, one part to seventy parts
water. Repeat this every ten days until cured. Two dippings are generally
sufficient. It is well to feed cooling foods, such as clean slops and vegetables,
containing regulator and tonic as prescribed on first page of this chapter.

NAVEL RUPTURE.
(Navel or Umbilical)

Cause.—Injuries. Pigs crowding through narrow doorways or openings in


fences, small pigs sleeping with large pigs, and allowed to pile up, or being
thrown about feed troughs when feeding. Weakness and constipation also
predisposes them to Navel or Umbilical Rupture.
Symptoms.—A soft, puffy swelling about the navel or umbilicus, varying in
size from a hazelnut to that of an ostrich egg. When a pig is placed on its
back the intestines will gravitate into the abdominal cavity, providing the
intestines have not adhered to the walls of the rupture.
Treatment.—This is more difficult than the Scrotal or Inguinal Rupture
operation, as often times the intestines will adhere to the inner surface of the
rupture and, unless the operation is carefully performed, there is great
danger. Great care must be exercised in preparing the pig by fasting it for
twenty-four hours. After this is accomplished, prepare an antiseptic solution,
Carbolic Acid, five per cent, or Bichloride of Mercury, one in one-thousandths;
also have a needle and absorbent silk or cat-gut ready. Place the pig on its
back, with its head downward. Now, wash the seat of operation with either
antiseptic solution. Then make an incision through the skin carefully; as stated
before, intestines sometimes adhere to the inner surface of the rupture. If
such is the case, wash the hands in the antiseptic solution and with the
fingers carefully break the adhesions or separate the intestines from their
adhesions. After this is accomplished, sew the inner lining of the abdominal
cavity with absorbent silk or cat-gut. Then sew the outer skin with cotton or
linen cord and your operation is complete. Feed the hog sparingly for a few
days following the operation on easily digested, laxative foods.
NETTLE RASH.
(Urticaira)

Cause.—Irritations of the skin produced by sprinkling hogs with irritating


solutions and powders, or from irritating dips when treating for lice, etc.
Feeding highly nitrogenous food predisposes hogs to this disease; also filth,
poorly drained sheds and pens; is especially common in young pigs. Nettle
Rash is not contagious, but what produces it in one hog may produce it in
several at the same time.
Symptoms.—Red, swollen blotches appear on the skin very suddenly,
especially about the ears and the inside of the thighs, perhaps due to the skin
being thin and deprived of hair. The hog rubs account of the intense itching,
and he will not thrive when in this condition. In most cases there is a fluid
oozing from the blotches, causing dirt and filth to adhere to the hair. However,
if the disease is properly treated, a recovery is sure to follow in about two
weeks.
Treatment.—Prevention against this disease is most important, and it
consists in keeping shoats and pigs in clean, well ventilated sheds and pens.
Do not sprinkle them with irritating solutions or powders, or irritating dips, but
when the disease once shows itself give each pig or hog affected a dose of
Epsom Salts, one ounce to every twenty-five pounds of hog weight, in feed,
swill or drinking water. If the weather is hot, keep them in a clean, cool place,
also purify their blood by feeding regulator and tonic as prescribed on first
page of this chapter.
Apply some good Coal Tar disinfectant, one part to one hundred parts of
water. This is non-irritating, and will destroy hog lice, and will heal the
pustules of nettle rash. Apply twice ten days apart. It also must be borne in
mind that pens and sleeping quarters must be disinfected; the old bedding
and manure burned and replaced with good, clean straw or hay. Feed easily
digested food, slops, etc.

PARALYSIS OF THE HIND QUARTERS.


Cause.—There are a great many things that may produce paralysis of the
hind quarters. For instance, shipping hogs in crates; fractions of thigh bones;
Rickets, due to feeding food that is deficient in mineral matter; hogs piling up;
kicks or injuries to the back; frequently seen in sows nursing a litter of pigs
and in a run-down condition. Constipation and indigestion also produce
paralysis of the hind quarters. Some think it is caused by worms in the
kidneys; this is not always the case. It is true that the presence of a parasite
around the kidneys may cause irritation of the nerves of the spinal column
and result in paralysis. Yet, it is more often the result of weakness and loss of
nervous power of the hind parts.
Symptoms.—Regardless of the cause, the symptoms in either case, for they
cannot be distinguished, are weakness of the back, wriggling of the hind
parts, and finally the hogs sit down on their haunches. After some effort, they
get up and run in a straight line quite fast, but swing to one side for a while
and then go over to the other side, and finally get down so that they cannot
rise, but drag themselves about. The appetite is good until a day or two
before they die.
Treatment.—Place the hog in clean, comfortable quarters, with plenty of
fresh water to drink. Give sour milk, fruit or vegetables, containing regulator
and tonic as prescribed on first page of this chapter. It contains nerve
stimulants and blood purifiers. If the hog is constipated, add two to four
ounces of Epsom Salts to its feed.
Treatment of all such cases requires perseverance, recovery being slow and
not always certain.

PILES.
(Prolapse of the Anus)

Cause.—Although the pig may look well, he has a weakness of the circular
fibres of the intestines, due to irritating foods that either constipate or
produce diarrhoea.
Symptoms.—Very plain. A protrusion of the rectum all the way from two to
four inches. The pig irritates the protrusion by rubbing it against the sides of
pens, etc.; it cracks, bleeds and in warm weather will become fly-blown and
maggots accumulate in large quantities.
Treatment.—In the first stages of this disease, wash the protruded parts with
an antiseptic solution of Carbolic Acid, one teaspoonful to a pint of water. Give
rectal injections of Soap and Warm Water or Sweet Oil, give about two ounces
of Castor Oil internally and feed soft, sloppy food. In chronic cases of long
standing, remove the exposed portion of the intestine after washing nicely
with the antiseptic solution. Remove the protrusion with a sharp knife and
stitch the cut end of intestine edges to the anus. Feed easily digested food,

You might also like