There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

bobotron , in After 6 hours

Ahhh my favorite way to fix a broken test: just remove it!

PoolloverNathan ,

Mark it as intended-to-fail, that way if someone fixes your bug it’s their test failure.

kambusha , in After 6 hours

Working at a company with no automated tests. There’s not even a collection of regression tests or anything to follow. I was wondering if anyone could share or point me towards a good template to start building out test cases as a first step?

big_slap ,

I think this is something you’re gonna have to just jump into and start since you don’t have anything to work off of. it’s going to take a lot of work, but at least you’ll be able to work off your own ATFs once you finish. good luck…

Rentlar ,

I mean, start with trivial cases of the core functionality of what your system does. Then build upon it based on your own findings and what your clients report.

E.g. if your system loads images then put in a tiny 5x5px solid square or checkerboard pattern and see if it loads. Then try putting multiple images, different formats (webp, gif, png, tga) etc. see if that breaks anything, keep building out.

qwop ,

It probably really depends on the project, though I’d probably try and start with the tests that are easiest/nicest to write and those which will be most useful. Look for complex logic that is also quite self-contained.

That will probably help to convince others of the value of tests if they aren’t onboard already.

occams_chainsaw ,

if there are zero automated tests, things probably weren’t written with (automated) testing in mind, so there may be a lot of coupling… starting off with integration tests just to validate existing behavior is a good start. hopefully the existing applications aren’t also inextricably bound to environments that are run on pet servers and managed by other teams…

kambusha ,

Thankfully, the team has full control without external team dependencies

Acters , in My poor RAM...

People kept arguing with me that not using is a choice and wonder why it is not freedom of choice.

mihnt , in Imagine
@mihnt@kbin.social avatar

deleted_by_author

  • Loading...
  • Admin ,

    I just added clear && neofetch to my .bashrc, works great

    elouboub , in Which side are you? Javascript or Typescript
    @elouboub@kbin.social avatar

    What's happening?

    Fissionami ,
    @Fissionami@lemmy.ml avatar

    Same question

    thepianistfroggollum , in The lengths we have to go to

    And God forbid you use tabs in a document with spaces instead of tabs (or vice versa)

    radix ,
    @radix@lemm.ee avatar

    :retab is your friend!

    glad_cat , in I finally created the perfect JavaScript runtime: No-JS

    But you can’t compress or obfuscate it, that’s a downside.

    aksdb OP ,

    The runtime doesn’t need to be obfuscated. Only the code you run with it. You can still compress and obfuscate that and it will run just as well as it did before. Actually you can completely scramble your code and it would still run exactly the same.

    jadero ,

    Sweet! That means I can encrypt my code to keep prying eyes away.

    mrsnowflake , in It's routine

    Missed an exclamation mark (as in negation) would be better and happens to anyone.

    hstde ,

    Or using < instead of <= or >

    LetterboxPancake ,

    Something is either true or false, I would expect to have at least 50% of a chance to get it right on the first try. Nah, I fail to implement it three times because my brain went on vacation without telling me.

    knightry , in Who did this one

    I love interns.

    kool_newt , in Simple trick

    I use this to make MACs for my VMs and virtual NICs. The 00:16:3E prefix means it’s Xen virtualization, so change this part as needed.

    
    <span style="color:#323232;">#!/usr/bin/python
    </span><span style="color:#323232;">
    </span><span style="color:#323232;"># macgen.py script to generate a MAC address for guests on Xen
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">import random
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">def randomMAC():
    </span><span style="color:#323232;">	mac = [ 0x00, 0x16, 0x3e,
    </span><span style="color:#323232;">		random.randint(0x00, 0x7f),
    </span><span style="color:#323232;">		random.randint(0x00, 0xff),
    </span><span style="color:#323232;">		random.randint(0x00, 0xff) ]
    </span><span style="color:#323232;">	return ':'.join(map(lambda x: "%02x" % x, mac))
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">print (randomMAC())
    </span>
    

    Use

    
    <span style="color:#323232;">$ macgen.py 
    </span><span style="color:#323232;">00:16:3e:17:ed:b1
    </span>
    
    unreachable , in Not Mine; Enjoy
    @unreachable@lemmy.my.id avatar

    the clearest graphic flow than any company flowchart presentation

    018118055 , in The legend

    That’s MR root

    kucing , in Error 502:

    So is the gateway grounded?

    nyan ,

    Probably locked in its kennel for the night.

    sentient_loom , in More the merrier
    @sentient_loom@sh.itjust.works avatar

    Bosses: “write more documentation!”

    Jr. Devs: [writes documentation]

    Bosses: “not like that!”

    Sigmatics , in Would you agree?

    So you mean we would have weird useless concrete structures everywhere? I doubt it

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines