DEV Community

Discussion on: Help needed ;-;

Collapse
 
alvaromontoro profile image
Alvaro Montoro

I cannot help you with the code, because I don't know Swift, but here are some recommendations to improve the article, so it gets more traction and more visibility:

  1. Add a meaningful title. Change the title from Help needed ;-; to a short sentence more descriptive of the problem. Examples of titles that could match the post better:

    • Unexpectedly found nil while implicitly unwrapping an Optional value
    • Error: The UIStepper function is not connected correctly

    Note: I don't know if those match the problem. Ultimately, it is you the one that knows the problem best, and the one that can pick a meaningful title for the post.

  2. Format the code. Use three backticks and the beginning and end and specify the language to add highlights, then it will be easier to read. Something like this:

    ```java
    // the java/swift code here
    ```
    

     
    The result will look like this:

    import UIKit
    
    class ItemTableViewCell: UITableViewCell {
    
        @IBOutlet weak var stepperText: UILabel!
        @IBOutlet weak var priceLabel: UILabel!
    
        var item : Item! // this is a view controller class that have the item data .. price as a double (var price: Double! )
    
        override func awakeFromNib() {
            super.awakeFromNib()
        }
    
        // ...
    

     

  3. Add a description of the problem and the error. Right now, the comments have a small version of that but they are difficult to read. Instead, write a couple of paragraphs before the code, with what you are trying to do and the error you are getting.

    Also (and I understand this may be a personal preference), in the description, avoid sentences like send teh codez! or help plz, they make it sound like you are not being serious, and may steer people away.

Hopefully with those three changes, your post gets more visibility and someone can help you solve the problem. Goof luck!

Collapse
 
lilkiwi profile image
Kiwi

Thank you 👉🏻👈🏻💞💝💓💞💕💓💞💓💕
That actually helps me a lot cuz it’s my first time posting here