Let's be partners

704 Words
"Hm, Here comes my chance.", Cassian Thought to himself. "Send me his account name.", Cassian asked. "Are you gonna work with him. I heard he is a c***k head.", Sam said. "No, I am gonna invite him to my company.", Cassian. "Are you gone insane. He is a viscom student. How will he come in handy in a company that will deal with software?", Andrew asked. "Don't forget, The entire course is Visual communication and Graphics. Even we want graphic designers sometimes. Moreover who said, it's gonna be a software company." "If it's not a software company, what else it's gonna be. Do you have any other plan." A small smile is Cassian's answer. That smile, especially when from him, it has numerous meaning when rise in Cassian's lips. "He is not gonna tell us." All three gave up on asking further. They have much more important works at hand like optimizing the software than waiting for an answer from him. Cassian's chat room. Happy loner(Cassian): Hey Hii, I saw that you are looking for a project partner. Can I join you. Game_Is_My_Life(Jorden): You are..? Happy loner :You know me. Not too well. Game_Is_My_Life: Why are you so secretive? Happy loner: I prefer it. This is my style. Game_Is_My_Life:  What is your major Happy loner: CS Game_Is_My_Life: Specialization? Happy loner: Software optimization, Bugging, Programming in Python, Java, JavaScript, swift, Augumented reality, Virtual reality, Mixed reality. Data mining, web development. Game_Is_My_Life: You look quite confident. Then let me check you. Happy loner: I am Ready. Game-Is_My_Life: var defaults = NSUserDefaults.standardUserDefaults() var userPref = defaults.stringForKey("userPref")! printString(userPref)  func printString(string: String) { println(string) }Where is the bug? What does this bug cause? What’s the proper way to fix it? Happy loner:  The second line uses the stringForKey method of NSUserDefaults, which returns an optional, to account for the key not being found, or for the corresponding value not being convertible to a string. During its execution, if the key is found and the corresponding value is a string, the above code works correctly. But if the key doesn’t exist, or the corresponding value is not a string, the app crashes with the following error: fatal error: unexpectedly found nil while unwrapping an Optional value The reason is that the forced unwrapping operator ! is attempting to force unwrap a value from a nil optional. The forced unwrapping operator should be used only when an optional is known to contain a non-nil value. Game_Is_My_Life: Ok, Then The following code has a compile time error. Can you spot it and explain why it happens? What are some ways you could fix it? struct Kitten { }  func showKitten(kitten: Kitten?) { guard let k = kitten else { print("There is no kitten")  } print(k) } Happy Loner: func showKitten(kitten: Kitten?) { guard let k = kitten else {  print("There is no kitten")  return  } print(k) } There are two other ways to do this... Do you want me to send it. Game_Is_My_Life: No thanks. One last task. I have a small application that needs optimization. I am sending it to you.  Can you optimize and encrypt it with AES 256-bit encryption and 4096-bit RSA. separately. I need two optimized file link attached Happy loner(online) Jorden sent a prompt. It was for optimizing. He made sure that the prompt can only be shared by him not by others. And it has a setting that it cannot be opened in other system apart from Receiver's. It prohibit the user from using the other application. Cassian was sure he  can do the  AES 256-bit encryption. But he was not sure about 4096-bit RSA. He once tried to write the optimization of his game code with it. But it consumed him more time.  So  he did with less bits. So before solving the RSA 4096-bit, He optimized the software and done the 256-bit AES. It only took 10 minutes for him to finish it of. In the middle he wrote the algorithm for the next task. After an another 10 minutes, The prompt closed automatically and Cassian received a message. GAme_Is_My_Life:, Well, Hello partner. Looking forward to work with you. Meet me in the CS Hall 135 tomorrow at  14.30.
Free reading for new users
Scan code to download app
Facebookexpand_more
  • author-avatar
    Writer
  • chap_listContents
  • likeADD