User Profile

Collapse

Profile Sidebar

Collapse
HarrySto
HarrySto
Last Activity: Jan 4 '23, 01:55 PM
Joined: Nov 22 '22
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thank you, but tell me what about the automated analysis of the code itself?
    See more | Go to post

    Leave a comment:


  • HarrySto
    started a topic How to start code refactoring?

    How to start code refactoring?

    What is the best way to start refactoring the code so as not to harm it? And is it worth doing analysis before refactoring?
    See more | Go to post

  • HarrySto
    started a topic What is the best way to start refactoring?

    What is the best way to start refactoring?

    Here is a poorly written function to change the price of a product that takes into account many different conditions. You need to refactor, since the function itself is terribly unreadable. Where to start refactoring or what methods to use to start refactoring?
    Code:
    function changePrice($this = null) {
      if ($this == null) {
          var rel_price =  $('.all_colors_preview.active#rel_colors').find('.item.active .price').attr('data-price'),
    ...
    See more | Go to post

  • By the way, a little off-topic, but it may be useful. There are good resources for code review and analysis - AppRefactoring and Code Scene
    See more | Go to post

    Leave a comment:


  • HarrySto
    replied to I can't find an error in the Java code
    in Java
    The whole part of this code does not work and is highlighted in red, the description of the error is missing...
    See more | Go to post

    Leave a comment:


  • How to set file refactoring on commits?

    How can you do code refactoring when committing to git?

    In order for the git to look at the format of writing code, that spaces are indented, not tabs, the names of variables and classes, etc...
    How can I do that?
    See more | Go to post

  • HarrySto
    started a topic Error in a variable, how to analyze the code?

    Error in a variable, how to analyze the code?

    I started creating applications for the phone, and I’m just starting to learn how to write code on my own, for this reason I take the code partly from the Internet. Now I have one theme of two applications and I looked at both codes and realized that they are more similar … Who knows how to avoid this? What would be the code for each unique?
    Looking for a solution on the Internet, I found such a service, it seems to help, but maybe someone...
    See more | Go to post

  • HarrySto
    started a topic I can't find an error in the Java code
    in Java

    I can't find an error in the Java code

    I wrote the source code for a new application on IOS, when writing there were no errors, but when I ran the code, an error appeared in this place:
    Code:
    var t = readLine()!
    var s = readLine()!
    var len_s = s.count
    var t_lis = Set(t)
    var c_s   = Counter(s)
    var c_t   = Counter(t_lis[len_s])
    var c_res = [String: String]()
    var summ  = 0
    for e in c_s{
        c_res[e] = [c_s[e], min( c_s[e], c_t[e]
    ...
    See more | Go to post

  • HarrySto
    started a topic How to analyze the code to fix its work

    How to analyze the code to fix its work

    I am writing code for the “Time Tracker” application and one of the functions does not work, namely the display of the image. What’s wrong?
    And yet, I want to analyze the entire code, maybe there are still errors that I don’t see. Is there some kind of automatic code analysis?
    Code:
    private void initPanel()
    {
    panel = new JPanel();{
    
    }
    See more | Go to post

  • It is necessary that the code displays all objects

    I wrote the code, but it displays only one object when loading, with the rest there is difficulty. Who faced similar situations, how did you solve similar situations?
    And I also want to conduct a full code analysis in order to see all the errors at once, and not when loading the application into work. Are there any services?
    Code:
    public Bean inject(Bean obj) {
            File file = new File("src/main/resources/data.properties");
    ...
    See more | Go to post
No activity results to display
Show More
Working...