Skip to main content
Code Review

Questions tagged [clojure]

Clojure is a Lisp dialect for the Java Virtual Machine. Its main features include a software transactional memory system for coherent updates to data structures, transparent access to Java libraries, a dynamic REPL development environment, runtime polymorphism, and built-in concurrent programming constructs.

Filter by
Sorted by
Tagged with
1 vote
0 answers
43 views

There are two versions of the CSV parser. The latter seems to be more performant than the former, although the former's code is easier to read. Variant 1, which parses a string: ...
3 votes
0 answers
85 views

I am hoping to find out what you think about my implementation of tic-tac-toe. It is complete and working as expected with many tests, but the logic in the main module where I have the play-game main ...
2 votes
0 answers
71 views

I wrote a command line tic tac toe game in Clojure. I've broken this post into three sections: Feedback Requests, Gameplay, and Code Feedback Requests I'm looking for feedback on: How "idiomatic&...
2 votes
1 answer
83 views

I've been trying Advent of Code challenges to learn Clojure. I've successfully completed Day 2, but I feel like my solution is very clumsy, especially the functions for parsing text input. ...
0 votes
1 answer
68 views

I have a task which runs sequentially. If I have hundreds of thousands of tags, it is very time consuming. Can this be modified to run the task in parallel? Works fine upto 100 tags ...
1 vote
1 answer
71 views

Context I am making a system, where different clients issue queries A query is resolved by issuing a set of subqueries I have an invalidation-worker, which gets notified when subqueries go stale ...
2 votes
1 answer
211 views

This is a problem from Exercism here, the goal is to clean up badly formatted phone numbers. The rules are: If the phone number is less than 10 digits assume that it is a bad number If the phone ...
1 vote
1 answer
143 views

I'd like some help to improve this cli program. It queries a city's weather and pushes a weather report. It takes two arguments: the city to query and the apikey for OpenWeatherMap. For example ...
Pablo's user avatar
  • 95
1 vote
2 answers
154 views

Problem statement: Write a program that converts all given temperatures from a given input temperature scale to a given output temperature scale. The temperature scales to be supported are Kelvin, ...
2 votes
1 answer
112 views

My first ever lines of Clojure and while the script seems to work as expected, I'm sure it's far from idiomatic Clojure. Thank you for any suggestions. ...
1 vote
2 answers
262 views

I am a beginner to Clojure and I made a little script that prints out every prime number from 1 to 1000. Let me know if there are any improvements that I can make: ...
3 votes
1 answer
238 views

I've implemented a Game of Life in Clojure and would like to understand what I can do better, especially in terms of idiomatic Clojure (without losing readability/maintainability) of the current ...
1 vote
2 answers
226 views

Background I am doing an exercise in clojure to make a function that can determine if a number is an Armstrong Number or not. The solution I came up with us a bit more complicated than it would be if ...
Billy Moon's user avatar
1 vote
1 answer
96 views

I've started learning Clojure a few days ago and I wrote this code that factorises numbers. How do I make it better? Is there any way to avoid doing it with a loop? Is that how I am supposed to code ...
5 votes
1 answer
300 views

I'm learning Clojure and am a rank n00b at it, trying to learn from books and online tutorials (but I'm sometimes concerned that I am picking up bad habits or at least not all the good habits). For ...

15 30 50 per page
1
2 3 4 5
...
21

AltStyle によって変換されたページ (->オリジナル) /