[-] erogenouswarzone@lemmy.ml 15 points 1 year ago

Also, a way to never have to work again!

[-] erogenouswarzone@lemmy.ml 12 points 1 year ago* (last edited 1 year ago)

Great meme, and I'm sure op knows this, but for anyone else who is curious...

007 in theory means:

  • 00: you have already committed your code to your local code base
  • 7: When you try to merge your code with everyone else's there are 7 files that others have worked on since you last refreshed your local code base.

To resolve this, you need to go file by file and compare your changes with the changes on the remote code. You need to keep the changes others have made and incorporate your own.

You can use git diff file_name to see the differences.

If you have made small changes, it's easier to pull and force an overwrite of your local code and make changes again.

However multiple people working on the same files is usually a sign of organizational issues with management. Ie, typically you don't want multiple people working on the same files at the same time, to avoid stuff like this.

If you're not sure, ask someone that knows what they're doing before you follow any advice on Lemmy.

[-] erogenouswarzone@lemmy.ml 17 points 1 year ago

You can also do this by forgetting a WHERE clause. I know this because I ruined a production database in my early years.

Always write your where before your insert, kids.

[-] erogenouswarzone@lemmy.ml 13 points 1 year ago* (last edited 1 year ago)

In my experience, there's two ends of the developer spectrum.

At one end is uptight. They have all their shit on lockdown and the confidence that comes with that.

The other end is creative. They are developers because they enjoy creating, and development is a rare high-paying but creative outlet. They stumble through everything and get bored with reading too much documentation.

I have seen many cases of both of these, and another, underlying metric is their perception of their own intelligence.

It's unfortunate, but a lot of them grew up in an environment where they were the smartest person in the room and were rarely challenged. Now, being in an environment with many other smart people, they only feel smart by making others feel less than.

They purposely show off their knowledge and when you give an idea they shit on it and make you feel stupid.

There's also this thing where if you know a system really well, it's hard to imagine someone not having the knowledge you have. This is just how memory works because our brains abstract things away and then we can't recognize when others don't have that abstraction yet.

This is all normal. Humanity has a lot of work to do to change this, but it's embedded into how everything works, so it's not going to happen in our lifetime. You can change you, but you can't change anything else.

With that being said, here are some things I have learned, being from a similar background as you:

  1. Recognize that you are smart or you wouldn't be there.

  2. Accept that others will make you feel stupid. The best response is to act like it doesn't phase you.

  3. Don't make others feel stupid if you can help it.

  4. Be enthusiastic. Any shortcomings you may have, will be forgiven if you show up with a big smile on your face.

  5. Talk to your managers. Ask them what would make you better at your job, and ruthlessly pursue bettering yourself. This will give you a lot of confidence.

  6. You will lose touch with your old party friends. They will die young, and you will feel sad. When you do get a chance to catch up, talk to them a lot and consider journaling it. This will help a lot when you lose them.

  7. You will feel guilty because you are doing so much better than them. Accept it and move on and try not to brag about your new life.

  8. You will feel out of place because your new friends don't have the same background as you. Accept it and move on. Nobody else is worried about it.

  9. Your new friends will probably not be as interesting as your old friends, and you will feel yourself becoming less interesting. This is the price we pay for our new life. If you want to stay interesting find a way to be in touch with other creative people: musicians, teachers, English majors.

[-] erogenouswarzone@lemmy.ml 17 points 1 year ago

I've heard it's as addictive as sugar. Be careful.

[-] erogenouswarzone@lemmy.ml 13 points 1 year ago

Studies show more time spent in the store equates to more sales. They have to measure time in store and extra sales against time to reorganize. As regular time moves forward it becomes increasingly worth more to rearrange until it outweighs the time to reorganize by a certain margin.

[-] erogenouswarzone@lemmy.ml 13 points 1 year ago

My mom has a fridge that literally has meltdowns every few days. She bought it last year, it still doesn't work as intended, and it beeps so loud over were not sure.

No option to turn off the sound. I want to mcguyer in there and tear the speaker out, but I don't want to voided the warranty before they actually fix it.

[-] erogenouswarzone@lemmy.ml 15 points 1 year ago* (last edited 1 year ago)

Does anyone have any good advice on variable naming? Here's some of my rules I try to live by:

  • camelCase
  • use prefixes
  • prefixes should be one word followed by an underscore.
  • 10 character limit or 3 word limit, not counting the prefix
  • functions should be prefixed with the file in which they're defined, ie utils_FooBar
  • file names should be one word
  • Start Bools with is
  • Don't use not in bool names.
    • This has farther-reaching implications that will keep you from making confusing code most of the time (I'm sure this will be controversial, but it works no matter what they say)
  • start output with _
  • Globals should be g_VARIABLENAME
  • use the least amount of words possible
  • but being too verbose can draw attention - use this to aide in readability
    • calc_ImportantValueThatWillDecideTheUsersView is better than calc_SumYears if the variable is more important than the others.
  • Even the greatest variable names are not replacements for documentation
  • Even the most readable code is not replacement for documentation.
    • Force yourself to love documentation.

Edit: I realize I was speaking about function-naming with the prefix stuff.

For variables, I still use prefixes, but for variable type. Even if you define the variables as types, it's still incredibly useful. For instance,

a string is s_MyName,

enumerable is e_MyType,

A number is int or double or whatever i_MyAge or d_MyWeight

This might be obvious for custom objects, but I'd still do it like this p_Person or per_Person.

Seriously it does make a huge difference

62

1917

1917 was a monumental year in the shaping of the world thereafter, and Poland especially (which wasn't its own country at that point). It saw the US enter The Great War against Germany, and the Russian monarchy falling to Socialist Rebels after 2 separate rebellions in February and October.

Poland, positioned between Austria-Hungary, the German Empire and the Russian Empire, made it a site of great human loss. However, each of these suitors, believing an alliance would give an advantage, wooed the regions leaders.

Art Nouveau being in vogue at the time influenced the animal shapes. What at first appears to be butterfly wings and random decor, is actually serpents biting and killing each other.

Here's some info about the art period and artist:

Młoda Polska

Młoda Polska was a modernist period in Polish visual arts, music and literature, which spanned the period from 1890 to 1918.

According to the organisers, the end of the 19th century was a time when “the concepts of freedom and hope were important themes in Polish culture and art. Elements of symbolism, neo romanticism and early modernism created a unique and expressive atmosphere and art movement, with Kraków and Warsaw as important cultural centres.”

Art Nouveau

An international style of art, architecture, and applied art, especially the decorative arts. It was often inspired by natural forms such as the sinuous curves of plants and flowers.[1] Other characteristics of Art Nouveau were a sense of dynamism and movement, often given by asymmetry or whiplash lines, and the use of modern materials, particularly iron, glass, ceramics and later concrete, to create unusual forms and larger open spaces.[2] It was popular between 1890 and 1910 during the Belle Époque period,[3] and was a reaction against the academic art, eclecticism and historicism of 19th century architecture and decoration.

The Artist

Okuń was born in 1872 to a noble family and was orphaned early. He grew up with his grandparents on the maternal side. After inheriting a large fortune, he soon began drawing lessons with great painters. In 1891 he studied at the Warsaw School of Drawing. From 1891 to 1893 he studied under the direction of Isidore Jablonski and Jan Matejko at the Jan Matejko Academy of Fine Arts. He continued his studies in Munich and Paris. In 1897 Okuń went to study with Simon Hollósy who founded the Nagybánya artists' colony. For the next 20 years he lived in Rome and also traveled to Sorrento, Amalfi, Capri, Venice, Padua, Ravenna, Florence and Siena. He participated in the life of the Polish art colony in Rome, and was co-founder of the Masonic lodge "Polonia".[citation needed]

Okuń returned to Poland in 1921 and settled in Warsaw. From 1925 he was a professor in the School of Fine Arts. He was a member of the Society of Polish Artists. Together with his friends founded a Masonic lodge called "Copernicus". He was vice-president of the Society for the Encouragement of Fine Arts. During the annual opening of the Salon Incentives he witnessed the assassination of the first president of Poland, Gabriel Narutowicz, by Eligiusz Niewiadomski. He helped apprehend Niewiadomski, along with one of the president's aides.

During World War II he lived in Warsaw. After the Warsaw Uprising Okuń moved to Skierniewice, where he was killed by stray bullet in January 1945.

https://en.wikipedia.org/wiki/Art_Nouveau

https://en.wikipedia.org/wiki/Edward_Oku%C5%84

165
submitted 1 year ago* (last edited 1 year ago) by erogenouswarzone@lemmy.ml to c/artporn@lemm.ee

Aside

For an extra boost to your enjoyment, consider listening to (Rimsky-Korsakov 2nd Symphony, Antar, movement 1: Vengeance)[https://youtu.be/Qd80g7wJWuQ?si=aZoRQ8PcU3_9OR_c]. This was the music that the artist listened to as he created the piece.

Ivan the Terrible and his son

A very sad piece indeed. Ivan the terrible's mental illness came to a horrible climax one night when he saw his son's pregnant wife walk by in a nightgown that exposed her under garments. Blind with rage, he struck his son in the head fataly.

The painting depicts Ivan the Terrible, stricken with grief and anguish as his son dies. The son, in tears, forgiving his father in some cosmic understanding as he lay dying.

On the surface, an example of how mental illness, left to take more and more control, can result in horrible consequences.

However, looking at the dates; the event occurred about 300 years before the painting was created. Why?

The political environment

The painting is an allegory of the assassination of Alexander II. Or rather the atrocity of the action itself and the consequences.

A group of far-left terrorists, bent on removing the autocratic tsarist government, killed A2 with a bomb in 1881; influenced by "Propaganda by the Deed," hoping it would spark a revolution.

The painter not only witnessed the assassination, but also the hanging a few months later of the men who committed the act. He was horrified by the violence, he called them horrors of the contemporary world.

Aftermath

The act of terrorism failed and it would not be for another nearly 40 years, when things had gotten so bad and the tsars so weak that the Bolsheviks were able to succeed and establish a Soviet Republic, but only after killing basically everyone that knew how to do anything: Doctors, Lawyers, Farmers, etc. Leaving the country in tatters and the government free to be run by one person, who would go on to commit awful such atrocities that it made the whole history of the tsars look like childs play in comparison.

72
St Paul's and Ludgate Hill - William Logsdail (1887) (visualelsewhere.files.wordpress.com)

Logsdail didn't fit in a camp of his time. He painted en plain air like the Impressionists, but was dedicated to picture-perfect renderings, something that was possible because of emerging technologies of the industrial age. It's so precise I would guess it was projection-aided, but I'm not sure if that was available at the time.

52

Sonja Ingrid Bata was a Swiss Canadian businesswoman, philanthropist, collector and museum founder, who initially trained as an architect.

https://en.wikipedia.org/wiki/Sonja_Bata

35

Oil on cardboard; 31.5 x 21.5 cm.

Annigoni was born in Milan. He studied at the Accademia delle Belle Arti in Florence, taking classes in painting, sculpture and engraving. Basing his style on the Italian old masters he studied their techniques, learning the art of 'oil tempera' under the Russian painter, Nikolai Lokoff.

Initially Annigoni's success was limited to Italy where his sharply evocative landscapes were very popular. In 1947 along with Gregory Sciltian, the brothers Antonio and Xavier Bueno, and others, he signed the manifesto of the 'Modern Realist Painters', coming out in open opposition to abstract art.

Alone among the signatories Annigoni remained true, both aesthetically and ethically to the doctrines of the manifesto. His art was brought to the attention of the British public when, in March 1949, the Royal Academy accepted some of his works for the annual exhibition and the move from relative obscurity to instant recognition came in 1954 when he received a commission to paint the young Queen Elizabeth II.

The commission from the Worshipful Company of Fishmongers brought instant fame. Crowds flocked to see the painting when it was exhibited at the Royal Academy in London and a limited-edition print published by The Times was fully subscribed. Sir Alfred Munnings, former President of the Royal Academy, declared Annigoni to be 'the greatest painter of the age'.

https://sk.pinterest.com/pin/9922061652538144/

38

Dominique Lang (1874-1919) was born in 1874 (the year of the first Impressionist exhibition in Paris) and is considered today to be Luxembourg's most important Impressionist painter.

Lang adopted Impressionism from 1906 onwards, moving away from his earlier work in Symbolist and Pre-Raphaelite modes. The bold colours and vivid brushstrokes of Le Barrage, 1913, place Lang firmly in the tradition of Monet, Pissarro and Renoir. Largely unrecognised in his lifetime, Lang was unable to earn a reliable income from selling his work and he worked as art teacher to support his family.

https://www.europeana.eu/da/exhibitions/the-inspiration-of-nature/impressionism-and-beyond

28

Nikola Petrov was a Bulgarian landscape painter and graphic artist; also known for his portrait sketches and watercolors.

He displayed a talent for drawing while still in elementary school. When he was old enough, he went to Sofia and, in 1899, became part of the second group of students accepted for the newly organized State Drawing School (now the National Academy of Arts). He studied with the sculptor Marin Vasilev and Jaroslav Věšín, a Czech battle painter. Despite these influences, he chose to concentrate on landscape painting.

In 1903, he joined the Society of Modern Art, a group devoted to promoting currents trends such as Impressionism, Symbolism and Art Nouveau. That same year, he was able to spend some time studying in Rome, thanks to a state scholarship.

He continued to pursue his own styles, however, and spent much of his time painting en plein air; a habit to which he had been introduced by Věšín. He was also one of the first Bulgarian painters to do cityscapes and is often referred to as the "Xудожника на София" (Painter of Sofia)“. Following his first showing in 1904, he participated in numerous exhibitions at home and abroad, including London (1907), Munich and Venice (1910), Belgrade (1912) and Berlin (1916).

In addition to his paintings, he helped decorate Alexander Nevsky Cathedral, provided drawings for children's magazines and illustrated a book of poems by Pencho Slaveykov.

He died of tuberculosis, aged only thirty-five. In 1961, the Nikola Petrov Gallery was opened in his hometown of Vidin. It contains over 1,300 works by Petrov and other notable Bulgarian artists. Several postage stamps featuring his works were issued in his honor on the centenary of his birth.

https://en.wikipedia.org/wiki/Nikola_Petrov_(painter)

59

Part of the Hyperrealistic Art Movement beginning in the 1970s in America and Britain, this sculpture is on display at the Saatchi Gallery of London.

Hyperrealism is an off-shoot of pop art, which emphasized the banal or kitschy elements of any culture, most often through the use of irony.

Here however, the work seems to be a more sincere endeavor - Hanson painstakingly creating a realistic lonely, elderly man. Perhaps the irony being in our interaction with the art: in many pictures the figure is roped off while a swarm of gawkers crowd around and take pictures. They are unable to interact with him through any other means.

Historically, the 70's were a decade of great change. The economic boom after WWII gave way to stagnation, causing upheavals and civil wars around the globe. Movements of the 60's, such as civil and women's' rights, began to become more concrete. Production enhancements began speeding up productivity and women working meant a new class of child - those that took care of themselves or had limited supervision. The birth of the personal computers and in-home video games allowed for the birth of disconnection from society on a mass scale, something that has increased tremendously in our modern age.

And this man sits on a bench by himself. Holding a package. Hanson's other works have a certain tongue-in-cheek quality of irony, and perhaps this does too, but I like to think it is sincere.

21

Kenny Scharf (born November 23, 1958) is an American painter known for his participation in New York City's interdisciplinary East Village art scene during the 1980s, alongside Jean-Michel Basquiat and Keith Haring. Scharf's do-it-yourself practice spanned painting, sculpture, fashion, video, performance art, and street art. Growing up in post-World War II Southern California, Scharf was fascinated by television and the futuristic promise of modern design. His works often includes pop culture icons, such as the Flintstones and the Jetsons, or caricatures of middle-class Americans in an apocalyptic science fiction setting.

33
128

It was at the age of 25 when Joseph’s love for the craft blossomed. As a creative and struggling actor in Los Angeles, he found art as a way to express himself freely. Painting became his way of being creative in a buzzing city and being grounded and mentally refreshed. After a year of trial and error and honing his technical skills, Joseph began developing his own style of painting and has since then become a successful artist in his own right.

https://www.minus37.com/2019/01/28/joseph-lee-artist-abstract-portraits/

28

At the Salon of 1804, Gros debuted his painting Bonaparte Visiting the Plague Victims of Jaffa. The painting launched his career as a successful painter. It depicts Bonaparte in Jaffa visiting soldiers infected with the bubonic plague. He is portrayed reaching out to one of the sick, unfazed by the illness. According to P. Jill Morse, Napoleon commissioned Gros to paint the scene to neutralize British propaganda. The propaganda focused on two episodes of the Egyptian campaign (1798-1800). First when he ordered the massacre of Turkish prisoners. Second, when he ordered the death by poison of French soldiers suffering from the plague. The painting showed a compassionate Napoleon visiting the sick at the plague hospital. Morse adds that Gros was probably using the disease as a metaphor for the vanity of Napoleon and his First Empire.[12]

While Bonaparte did actually visit the pesthouse, later, as his army prepared to withdraw from Syria, he ordered the poisoning (with laudanum) of about fifty of his plague-infected men.[13]

https://en.wikipedia.org/wiki/Antoine-Jean_Gros#Salon_of_1804

Further reading: https://en.wikipedia.org/wiki/Bonaparte_Visiting_the_Plague_Victims_of_Jaffa

[-] erogenouswarzone@lemmy.ml 15 points 1 year ago

I really want to like DuckDuckGo, but the results are never right. I always end up going back to Google. But I'm a professional programmer, so it might be different for me.

[-] erogenouswarzone@lemmy.ml 17 points 1 year ago

You said it brother - it's a beautiful feeling being here. The last few years of reddit have been absolute shit. And everybody keeps saying how all the memes are reposts, but I've never seen most of them, and the ones I have seen take me back and bring me joy. Thanks for the reminder that the internet can still be not entirely terrible.

[-] erogenouswarzone@lemmy.ml 13 points 1 year ago

It was always going to go that way. Any social media site is going to go that way.

Even Lemmy will one day go that way.

Here's the program:

  1. Build a platform that people like using.
  2. As more people use it, the creators will need more money to keep it up.
  3. Realize there's much monies to be had.
  4. Hire marketing and sales people
  5. The platform becomes a company, sell to the highest bidder.
  6. The platform implements algorithms that make them more money.
  7. The algorithms make people hate the site.
  8. Do many unpopular things to kick out the real content creators that once made the platform thrive.
  9. The company is left with casual users that don't know anything about the platform, they're just there to find out what burger joint to go to in San Antonio or which caulk is best to use for an outdoor shower.
  10. The company is very successful because they can push anything to the casual user and they will accept it as advice instead of what it really is - ads or algorithms to enrage them (because thats where the real money is - social media platforms keep you online longer if they piss you off)
  11. Make huge profits for a while then become a latter-day digg
[-] erogenouswarzone@lemmy.ml 17 points 1 year ago

Well, it looks like you've come to the right place for another internet addiction.

view more: ‹ prev next ›

erogenouswarzone

joined 1 year ago
MODERATOR OF