Grouping models without dictionary Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Haskell Bencoded Dictionary ParserSwift complexities with DictionaryOrdered dictionary in swift 2Grouping an array by postId and userIdTime manipulation for notification remindersNotifying view controller of changes to any of five types of modelsSimple wrapper function grouping and summarising variableGrouping array elements into batches of at most threeExtension for grouping array into two dimensional array based on element ([] -> [[]])Grouping Date Objects by year and month

Where are Serre’s lectures at Collège de France to be found?

8 Prisoners wearing hats

Generate an RGB colour grid

Is the Standard Deduction better than Itemized when both are the same amount?

What's the meaning of "fortified infraction restraint"?

How to answer "Have you ever been terminated?"

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

Using audio cues to encourage good posture

How would a mousetrap for use in space work?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

How to find all the available tools in mac terminal?

Can a party unilaterally change candidates in preparation for a General election?

Significance of Cersei's obsession with elephants?

For a new assistant professor in CS, how to build/manage a publication pipeline

Is it fair for a professor to grade us on the possession of past papers?

Extracting terms with certain heads in a function

First console to have temporary backward compatibility

Why wasn't DOSKEY integrated with COMMAND.COM?

How do I make this wiring inside cabinet safer? (Pic)

Compare a given version number in the form major.minor.build.patch and see if one is less than the other

What font is "z" in "z-score"?

When the Haste spell ends on a creature, do attackers have advantage against that creature?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?



Grouping models without dictionary



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Haskell Bencoded Dictionary ParserSwift complexities with DictionaryOrdered dictionary in swift 2Grouping an array by postId and userIdTime manipulation for notification remindersNotifying view controller of changes to any of five types of modelsSimple wrapper function grouping and summarising variableGrouping array elements into batches of at most threeExtension for grouping array into two dimensional array based on element ([] -> [[]])Grouping Date Objects by year and month



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1












$begingroup$


I want to group an array of structs only using arrays into an array of new structs. In this example I want to group the Person structs by Job and put them in new Department structs and put them in an array.



enum Job 
case developer
case programmer
case coder


struct Person
let id: Int
let job: Job


struct Department
let job: Job
var staff: [Person]

mutating func addStaff(_ person: Person)
staff.append(person)



let initial = [
Person(id: 0, job: .developer),
Person(id: 1, job: .developer),
Person(id: 2, job: .programmer),
Person(id: 3, job: .programmer),
Person(id: 4, job: .coder)
]

func combinator(accumulator: [Department], current: Person) -> [Department]
var accumulator = accumulator

if let index = accumulator.index(where: $0.job == current.job )

var department = accumulator[index]
department.staff.append(current)
accumulator[index] = department
else
accumulator.append(Department(job: current.job, staff: [current]))


return accumulator


var departments: [Department] = initial.reduce([], combinator)


I feel like the if statement in the combinator(accumulator:current:) function is a bit clunky, is there a better way to write that part or any other part of this piece of code?










share|improve this question









$endgroup$




bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.





















    1












    $begingroup$


    I want to group an array of structs only using arrays into an array of new structs. In this example I want to group the Person structs by Job and put them in new Department structs and put them in an array.



    enum Job 
    case developer
    case programmer
    case coder


    struct Person
    let id: Int
    let job: Job


    struct Department
    let job: Job
    var staff: [Person]

    mutating func addStaff(_ person: Person)
    staff.append(person)



    let initial = [
    Person(id: 0, job: .developer),
    Person(id: 1, job: .developer),
    Person(id: 2, job: .programmer),
    Person(id: 3, job: .programmer),
    Person(id: 4, job: .coder)
    ]

    func combinator(accumulator: [Department], current: Person) -> [Department]
    var accumulator = accumulator

    if let index = accumulator.index(where: $0.job == current.job )

    var department = accumulator[index]
    department.staff.append(current)
    accumulator[index] = department
    else
    accumulator.append(Department(job: current.job, staff: [current]))


    return accumulator


    var departments: [Department] = initial.reduce([], combinator)


    I feel like the if statement in the combinator(accumulator:current:) function is a bit clunky, is there a better way to write that part or any other part of this piece of code?










    share|improve this question









    $endgroup$




    bumped to the homepage by Community 13 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      1












      1








      1





      $begingroup$


      I want to group an array of structs only using arrays into an array of new structs. In this example I want to group the Person structs by Job and put them in new Department structs and put them in an array.



      enum Job 
      case developer
      case programmer
      case coder


      struct Person
      let id: Int
      let job: Job


      struct Department
      let job: Job
      var staff: [Person]

      mutating func addStaff(_ person: Person)
      staff.append(person)



      let initial = [
      Person(id: 0, job: .developer),
      Person(id: 1, job: .developer),
      Person(id: 2, job: .programmer),
      Person(id: 3, job: .programmer),
      Person(id: 4, job: .coder)
      ]

      func combinator(accumulator: [Department], current: Person) -> [Department]
      var accumulator = accumulator

      if let index = accumulator.index(where: $0.job == current.job )

      var department = accumulator[index]
      department.staff.append(current)
      accumulator[index] = department
      else
      accumulator.append(Department(job: current.job, staff: [current]))


      return accumulator


      var departments: [Department] = initial.reduce([], combinator)


      I feel like the if statement in the combinator(accumulator:current:) function is a bit clunky, is there a better way to write that part or any other part of this piece of code?










      share|improve this question









      $endgroup$




      I want to group an array of structs only using arrays into an array of new structs. In this example I want to group the Person structs by Job and put them in new Department structs and put them in an array.



      enum Job 
      case developer
      case programmer
      case coder


      struct Person
      let id: Int
      let job: Job


      struct Department
      let job: Job
      var staff: [Person]

      mutating func addStaff(_ person: Person)
      staff.append(person)



      let initial = [
      Person(id: 0, job: .developer),
      Person(id: 1, job: .developer),
      Person(id: 2, job: .programmer),
      Person(id: 3, job: .programmer),
      Person(id: 4, job: .coder)
      ]

      func combinator(accumulator: [Department], current: Person) -> [Department]
      var accumulator = accumulator

      if let index = accumulator.index(where: $0.job == current.job )

      var department = accumulator[index]
      department.staff.append(current)
      accumulator[index] = department
      else
      accumulator.append(Department(job: current.job, staff: [current]))


      return accumulator


      var departments: [Department] = initial.reduce([], combinator)


      I feel like the if statement in the combinator(accumulator:current:) function is a bit clunky, is there a better way to write that part or any other part of this piece of code?







      functional-programming swift swift3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 22 '17 at 0:51









      richyrichy

      1134




      1134





      bumped to the homepage by Community 13 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 13 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          Swift 4



          i would use the new swift 4 init(grouping:by:)



          since you create always new Departments then the following code is possible.



          if you have an existing [Department] then the code not fit your request.



          enum Job 
          case developer
          case programmer
          case coder


          struct Person
          let id: Int
          let job: Job


          struct Department
          let job: Job
          var staff: [Person]

          mutating func addStaff(_ person: Person)
          staff.append(person)



          let initial = [
          Person(id: 0, job: .developer),
          Person(id: 1, job: .developer),
          Person(id: 2, job: .programmer),
          Person(id: 3, job: .programmer),
          Person(id: 4, job: .coder)
          ]

          let grouped = Dictionary(grouping: initial, by: $0.job )
          let departments = grouped.map key, value in Department( job: key, staff: value )


          ( NOTE: i don't tested it in playground - just from head to the answer)



          Swift 3



          in Swift 3 you can use an extension to the array to resolve this grouping



          public extension Sequence 
          func group<U: Hashable>(by key: (Iterator.Element) -> U) -> [U:[Iterator.Element]]
          var categories: [U: [Iterator.Element]] = [:]
          for element in self
          let key = key(element)
          if case nil = categories[key]?.append(element)
          categories[key] = [element]


          return categories




          the extension is from here https://stackoverflow.com/a/31220067/1930509 and when you need a more performat grouping you can find it at the link






          share|improve this answer











          $endgroup$








          • 1




            $begingroup$
            This is specifically tagged swift3...
            $endgroup$
            – Mr. Xcoder
            Jun 25 '17 at 10:47










          • $begingroup$
            There existing some collection extension for grouping by for swift3 if he like my 2 lines solution.
            $endgroup$
            – muescha
            Jun 25 '17 at 15:48










          • $begingroup$
            Yeah sorry, I was looking for a Swift 3 solution
            $endgroup$
            – richy
            Jun 25 '17 at 19:08










          • $begingroup$
            @richy then you can use this extension for swift3 to have a groupby in Swift 3: stackoverflow.com/a/31220067/1930509
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53










          • $begingroup$
            with this a later upgrade to swift 4 is easy :)
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "196"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f166367%2fgrouping-models-without-dictionary%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          Swift 4



          i would use the new swift 4 init(grouping:by:)



          since you create always new Departments then the following code is possible.



          if you have an existing [Department] then the code not fit your request.



          enum Job 
          case developer
          case programmer
          case coder


          struct Person
          let id: Int
          let job: Job


          struct Department
          let job: Job
          var staff: [Person]

          mutating func addStaff(_ person: Person)
          staff.append(person)



          let initial = [
          Person(id: 0, job: .developer),
          Person(id: 1, job: .developer),
          Person(id: 2, job: .programmer),
          Person(id: 3, job: .programmer),
          Person(id: 4, job: .coder)
          ]

          let grouped = Dictionary(grouping: initial, by: $0.job )
          let departments = grouped.map key, value in Department( job: key, staff: value )


          ( NOTE: i don't tested it in playground - just from head to the answer)



          Swift 3



          in Swift 3 you can use an extension to the array to resolve this grouping



          public extension Sequence 
          func group<U: Hashable>(by key: (Iterator.Element) -> U) -> [U:[Iterator.Element]]
          var categories: [U: [Iterator.Element]] = [:]
          for element in self
          let key = key(element)
          if case nil = categories[key]?.append(element)
          categories[key] = [element]


          return categories




          the extension is from here https://stackoverflow.com/a/31220067/1930509 and when you need a more performat grouping you can find it at the link






          share|improve this answer











          $endgroup$








          • 1




            $begingroup$
            This is specifically tagged swift3...
            $endgroup$
            – Mr. Xcoder
            Jun 25 '17 at 10:47










          • $begingroup$
            There existing some collection extension for grouping by for swift3 if he like my 2 lines solution.
            $endgroup$
            – muescha
            Jun 25 '17 at 15:48










          • $begingroup$
            Yeah sorry, I was looking for a Swift 3 solution
            $endgroup$
            – richy
            Jun 25 '17 at 19:08










          • $begingroup$
            @richy then you can use this extension for swift3 to have a groupby in Swift 3: stackoverflow.com/a/31220067/1930509
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53










          • $begingroup$
            with this a later upgrade to swift 4 is easy :)
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53















          0












          $begingroup$

          Swift 4



          i would use the new swift 4 init(grouping:by:)



          since you create always new Departments then the following code is possible.



          if you have an existing [Department] then the code not fit your request.



          enum Job 
          case developer
          case programmer
          case coder


          struct Person
          let id: Int
          let job: Job


          struct Department
          let job: Job
          var staff: [Person]

          mutating func addStaff(_ person: Person)
          staff.append(person)



          let initial = [
          Person(id: 0, job: .developer),
          Person(id: 1, job: .developer),
          Person(id: 2, job: .programmer),
          Person(id: 3, job: .programmer),
          Person(id: 4, job: .coder)
          ]

          let grouped = Dictionary(grouping: initial, by: $0.job )
          let departments = grouped.map key, value in Department( job: key, staff: value )


          ( NOTE: i don't tested it in playground - just from head to the answer)



          Swift 3



          in Swift 3 you can use an extension to the array to resolve this grouping



          public extension Sequence 
          func group<U: Hashable>(by key: (Iterator.Element) -> U) -> [U:[Iterator.Element]]
          var categories: [U: [Iterator.Element]] = [:]
          for element in self
          let key = key(element)
          if case nil = categories[key]?.append(element)
          categories[key] = [element]


          return categories




          the extension is from here https://stackoverflow.com/a/31220067/1930509 and when you need a more performat grouping you can find it at the link






          share|improve this answer











          $endgroup$








          • 1




            $begingroup$
            This is specifically tagged swift3...
            $endgroup$
            – Mr. Xcoder
            Jun 25 '17 at 10:47










          • $begingroup$
            There existing some collection extension for grouping by for swift3 if he like my 2 lines solution.
            $endgroup$
            – muescha
            Jun 25 '17 at 15:48










          • $begingroup$
            Yeah sorry, I was looking for a Swift 3 solution
            $endgroup$
            – richy
            Jun 25 '17 at 19:08










          • $begingroup$
            @richy then you can use this extension for swift3 to have a groupby in Swift 3: stackoverflow.com/a/31220067/1930509
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53










          • $begingroup$
            with this a later upgrade to swift 4 is easy :)
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53













          0












          0








          0





          $begingroup$

          Swift 4



          i would use the new swift 4 init(grouping:by:)



          since you create always new Departments then the following code is possible.



          if you have an existing [Department] then the code not fit your request.



          enum Job 
          case developer
          case programmer
          case coder


          struct Person
          let id: Int
          let job: Job


          struct Department
          let job: Job
          var staff: [Person]

          mutating func addStaff(_ person: Person)
          staff.append(person)



          let initial = [
          Person(id: 0, job: .developer),
          Person(id: 1, job: .developer),
          Person(id: 2, job: .programmer),
          Person(id: 3, job: .programmer),
          Person(id: 4, job: .coder)
          ]

          let grouped = Dictionary(grouping: initial, by: $0.job )
          let departments = grouped.map key, value in Department( job: key, staff: value )


          ( NOTE: i don't tested it in playground - just from head to the answer)



          Swift 3



          in Swift 3 you can use an extension to the array to resolve this grouping



          public extension Sequence 
          func group<U: Hashable>(by key: (Iterator.Element) -> U) -> [U:[Iterator.Element]]
          var categories: [U: [Iterator.Element]] = [:]
          for element in self
          let key = key(element)
          if case nil = categories[key]?.append(element)
          categories[key] = [element]


          return categories




          the extension is from here https://stackoverflow.com/a/31220067/1930509 and when you need a more performat grouping you can find it at the link






          share|improve this answer











          $endgroup$



          Swift 4



          i would use the new swift 4 init(grouping:by:)



          since you create always new Departments then the following code is possible.



          if you have an existing [Department] then the code not fit your request.



          enum Job 
          case developer
          case programmer
          case coder


          struct Person
          let id: Int
          let job: Job


          struct Department
          let job: Job
          var staff: [Person]

          mutating func addStaff(_ person: Person)
          staff.append(person)



          let initial = [
          Person(id: 0, job: .developer),
          Person(id: 1, job: .developer),
          Person(id: 2, job: .programmer),
          Person(id: 3, job: .programmer),
          Person(id: 4, job: .coder)
          ]

          let grouped = Dictionary(grouping: initial, by: $0.job )
          let departments = grouped.map key, value in Department( job: key, staff: value )


          ( NOTE: i don't tested it in playground - just from head to the answer)



          Swift 3



          in Swift 3 you can use an extension to the array to resolve this grouping



          public extension Sequence 
          func group<U: Hashable>(by key: (Iterator.Element) -> U) -> [U:[Iterator.Element]]
          var categories: [U: [Iterator.Element]] = [:]
          for element in self
          let key = key(element)
          if case nil = categories[key]?.append(element)
          categories[key] = [element]


          return categories




          the extension is from here https://stackoverflow.com/a/31220067/1930509 and when you need a more performat grouping you can find it at the link







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 26 '17 at 16:01

























          answered Jun 22 '17 at 21:49









          mueschamuescha

          1765




          1765







          • 1




            $begingroup$
            This is specifically tagged swift3...
            $endgroup$
            – Mr. Xcoder
            Jun 25 '17 at 10:47










          • $begingroup$
            There existing some collection extension for grouping by for swift3 if he like my 2 lines solution.
            $endgroup$
            – muescha
            Jun 25 '17 at 15:48










          • $begingroup$
            Yeah sorry, I was looking for a Swift 3 solution
            $endgroup$
            – richy
            Jun 25 '17 at 19:08










          • $begingroup$
            @richy then you can use this extension for swift3 to have a groupby in Swift 3: stackoverflow.com/a/31220067/1930509
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53










          • $begingroup$
            with this a later upgrade to swift 4 is easy :)
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53












          • 1




            $begingroup$
            This is specifically tagged swift3...
            $endgroup$
            – Mr. Xcoder
            Jun 25 '17 at 10:47










          • $begingroup$
            There existing some collection extension for grouping by for swift3 if he like my 2 lines solution.
            $endgroup$
            – muescha
            Jun 25 '17 at 15:48










          • $begingroup$
            Yeah sorry, I was looking for a Swift 3 solution
            $endgroup$
            – richy
            Jun 25 '17 at 19:08










          • $begingroup$
            @richy then you can use this extension for swift3 to have a groupby in Swift 3: stackoverflow.com/a/31220067/1930509
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53










          • $begingroup$
            with this a later upgrade to swift 4 is easy :)
            $endgroup$
            – muescha
            Jun 26 '17 at 15:53







          1




          1




          $begingroup$
          This is specifically tagged swift3...
          $endgroup$
          – Mr. Xcoder
          Jun 25 '17 at 10:47




          $begingroup$
          This is specifically tagged swift3...
          $endgroup$
          – Mr. Xcoder
          Jun 25 '17 at 10:47












          $begingroup$
          There existing some collection extension for grouping by for swift3 if he like my 2 lines solution.
          $endgroup$
          – muescha
          Jun 25 '17 at 15:48




          $begingroup$
          There existing some collection extension for grouping by for swift3 if he like my 2 lines solution.
          $endgroup$
          – muescha
          Jun 25 '17 at 15:48












          $begingroup$
          Yeah sorry, I was looking for a Swift 3 solution
          $endgroup$
          – richy
          Jun 25 '17 at 19:08




          $begingroup$
          Yeah sorry, I was looking for a Swift 3 solution
          $endgroup$
          – richy
          Jun 25 '17 at 19:08












          $begingroup$
          @richy then you can use this extension for swift3 to have a groupby in Swift 3: stackoverflow.com/a/31220067/1930509
          $endgroup$
          – muescha
          Jun 26 '17 at 15:53




          $begingroup$
          @richy then you can use this extension for swift3 to have a groupby in Swift 3: stackoverflow.com/a/31220067/1930509
          $endgroup$
          – muescha
          Jun 26 '17 at 15:53












          $begingroup$
          with this a later upgrade to swift 4 is easy :)
          $endgroup$
          – muescha
          Jun 26 '17 at 15:53




          $begingroup$
          with this a later upgrade to swift 4 is easy :)
          $endgroup$
          – muescha
          Jun 26 '17 at 15:53

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Code Review Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f166367%2fgrouping-models-without-dictionary%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          名間水力發電廠 目录 沿革 設施 鄰近設施 註釋 外部連結 导航菜单23°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.7113923°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.71139計畫概要原始内容臺灣第一座BOT 模式開發的水力發電廠-名間水力電廠名間水力發電廠 水利署首件BOT案原始内容《小檔案》名間電廠 首座BOT水力發電廠原始内容名間電廠BOT - 經濟部水利署中區水資源局

          Prove that NP is closed under karp reduction?Space(n) not closed under Karp reductions - what about NTime(n)?Class P is closed under rotation?Prove or disprove that $NL$ is closed under polynomial many-one reductions$mathbfNC_2$ is closed under log-space reductionOn Karp reductionwhen can I know if a class (complexity) is closed under reduction (cook/karp)Check if class $PSPACE$ is closed under polyonomially space reductionIs NPSPACE also closed under polynomial-time reduction and under log-space reduction?Prove PSPACE is closed under complement?Prove PSPACE is closed under union?

          Is my guitar’s action too high? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Strings too stiff on a recently purchased acoustic guitar | Cort AD880CEIs the action of my guitar really high?Μy little finger is too weak to play guitarWith guitar, how long should I give my fingers to strengthen / callous?When playing a fret the guitar sounds mutedPlaying (Barre) chords up the guitar neckI think my guitar strings are wound too tight and I can't play barre chordsF barre chord on an SG guitarHow to find to the right strings of a barre chord by feel?High action on higher fret on my steel acoustic guitar